Nagios Update from 3.x to 4.x for Tetra's Nagios Server
Nagios Update from 3.x to 4.x
Reference - https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/4/en/upgrading.html#nagios3x
Download Nagios version 4.x from https://assets.nagios.com/downloads/nagioscore/releases/nagios-4.1.1.tar.gz
Backup the current Nagios after stopping the Nagios Service .
tar zcvf ./nagios-backup.tgz -C / usr/local/nagios
Follow https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/4/en/upgrading.html#nagios3x for futher installation .
Issues -
1. livestatus failed ( livestatus integration is required for check_mk web Gui to work )
Nagios log shows the error
[1443800648] Error: Could not load module '/usr/lib/check_mk/livestatus.o' -> /usr/lib/check_mk/livestatus.o: undefined symbol: last_command_check [1443800648] Error: Failed to load module '/usr/lib/check_mk/livestatus.o'. [1443800648] Error: Module loading failed. Aborting.
Issue is related to support of livestatus version with Nagios version 4.
So
1. Downloaded - http://mathias-kettner.com/download/check_mk-1.2.7i2p4.tar.gz ( current Version ) 2. Extracted 3. As root executed: ./configure --with-nagios4 4. Added (without quotes): "broker_module=/usr/local/lib/mk-livestatus/livestatus.o /usr/local/nagios/var/rw/live" in /usr/local/nagios/etc/nagios.cfg 5. Restarted nagios!! /etc/init.d/nagios restart
Rectification - https://support.nagios.com/forum/viewtopic.php?f=7&t=30485
2. pnp4nagios failed ( Graph Update fails )
Nagios log shows the error
[1443806436] wproc: SERVICE PERFDATA job 861 from worker Core Worker 5968 is a non-check helper but exited with return code 2 [1443806436] wproc: early_timeout=0; exited_ok=1; wait_status=512; error_code=0;
Rectification - http://www.monitoring-portal.org/wbb/index.php?page=Thread&threadID=29625