Monitoring agent starts automatically after being stopped
Posted: Fri Aug 31, 2018 9:40 am
I am having an issue with a secondary nagiosxi server for high availability. My goal is to turn off the monitoring agent until the primary server goes offline. Once the primary is offline, the floating ip switches to the secondary and is set as the source address and then it will turn on the monitoring agent off for the primary (if possible) and flip it on for the secondary. The problem is that the monitoring agent randomly decides to start back up even after stopping it manually. Are there any suggestions to fix this? I am controlling the stop and start of the nagios monitoring agent using systemd commands. The logs don't show anything for nagios.log. I can't seem to find what log might show something trying to restart the monitoring agent. I am assuming that it is being restarted by one of the systemd nagios sessions.
Thanks for the help ahead of time.
Code: Select all
[1535724278] Caught SIGTERM, shutting down...
[1535724278] Caught SIGTERM, shutting down...
[1535724278] Caught SIGTERM, shutting down...
[1535724278] Successfully shutdown... (PID=43427)
[1535724278] ndomod: Shutdown complete.
[1535724278] Event broker module '/usr/local/nagios/bin/ndomod.o' deinitialized successfully.
[1535724368] Nagios 4.4.2 starting... (PID=62743)
[1535724368] Local time is Fri Aug 31 09:06:08 CDT 2018
[1535724368] LOG VERSION: 2.0
[1535724368] qh: Socket '/usr/local/nagios/var/rw/nagios.qh' successfully initialized
[1535724368] qh: core query handler registered
[1535724368] qh: echo service query handler registered
[1535724368] qh: help for the query handler registered