Approach 1: First install latest Nagios core server,configure and make it working and then install Groundwork community edition and integrate it with pre-existing nagios.
- Install and configure the latest version of nagios core on Cent-OS/RHEL/Fedora systems by following the below link
http://nagios.sourceforge.net/docs/3_0/quickstart-fedora.html
By default this installs nagios and plugins into /usr/local/nagios folder.
- Download Groundwork Community edition software from the below link and install
(64 bit) http://sourceforge.net/projects/gwmos/files/GW%20Monitor%20Community%20Edition/6.0.1%20%28stable%29/groundwork-6.0.1-br124-gw502-linux-64-installer.bin
(32 bit) http://sourceforge.net/projects/gwmos/files/GW%20Monitor%20Community%20Edition/6.0.1%20%28stable%29/groundwork-6.0.1-br124-gw449-linux-32-installer.bin
- Load the standalone Nagios server configurations into the Groundwork database by following the below link.
http://proddoc.groundworkopensource.com/Bookshelf_RoboHelp/GroundWork_Monitor_Applications/CONFIGURATION/Control_Options/Loading_Nagios_Configuration.htm
Approach 2: First install Groundwork Community edition and then update it's nagios binary to the latest version
- Download Groundwork Community edition software from below link and install
(64 bit) http://sourceforge.net/projects/gwmos/files/GW%20Monitor%20Community%20Edition/6.0.1%20%28stable%29/groundwork-6.0.1-br124-gw502-linux-64-installer.bin
(32 bit) http://sourceforge.net/projects/gwmos/files/GW%20Monitor%20Community%20Edition/6.0.1%20%28stable%29/groundwork-6.0.1-br124-gw449-linux-32-installer.bin
By default Groundwork is installed in /usr/local/groundwork folder - Download the latest version of nagios core software from the below link
http://nagios.sourceforge.net/docs/3_0/quickstart-fedora.html - Build Nagios by assigning Groundwork's nagios and Apache paths to prefix and httpd-conf options respectively and install as shown below
./configure --prefix=/usr/local/groundwork/nagios --with-httpd-conf=/usr/local/groundwork/apache2/conf
make all
sudo make install - Restart Nagios and Apache services to run the updated version of nagios
sudo /etc/init.d/groundwork restart nagios
sudo /etc/init.d/groundwork restart apache
Note: On CentOS 6 64-bit got “ld-linux.so.2: bad ELF interpreter: No such file or directory” error while starting Network Service Agent
To fix this issue install glibc.i686 as shown below
#sudo yum install glibc.i686
Thanks for providing these instructions. I used approach #2. Upgrading from the embedded nagios version 3.0.6 to 3.5.1 worked. But after using the same steps to upgrade to nagios 4.x (I tried 4.0.8 and 4.1.1) nagios does not start up. I get this in the nagios log
ReplyDeleteError: Could not load module '/usr/local/groundwork/common/lib/libbronx.so' -> /usr/local/groundwork/common/lib/libbronx.so: undefined symbol: external_command_buffer_slots
Any thoughts on how to fix? Thanks.