Re: nagios service stops unepxectedly
Posted: Mon Sep 21, 2015 9:19 am
I have some preliminary results I'd like to get your feedback on if you recognize anything.
I have a script that updates the IP address of amazon ELB hosts in Nagios and preforms a restart. With a short sample of only 3 days, one nagios server with a script that calls /etc/init.d/nagios restart no longer demonstrates this undesirable behavior. Another server (the failover server) running everything the same except for notification disabled and the same script that restarts nagios with "service nagios restart" (that entry in sudo) still shows the undesirable behavior.
The difference between calling init.d and service seems to be the environment variables invoked during the call, primarily the working directory.
I want to run this a few more days before I declare this difference to be the deciding factor.
I have a script that updates the IP address of amazon ELB hosts in Nagios and preforms a restart. With a short sample of only 3 days, one nagios server with a script that calls /etc/init.d/nagios restart no longer demonstrates this undesirable behavior. Another server (the failover server) running everything the same except for notification disabled and the same script that restarts nagios with "service nagios restart" (that entry in sudo) still shows the undesirable behavior.
The difference between calling init.d and service seems to be the environment variables invoked during the call, primarily the working directory.
I want to run this a few more days before I declare this difference to be the deciding factor.