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.
nagios service stops unepxectedly
-
kendallchenoweth
- Posts: 195
- Joined: Fri Sep 13, 2013 10:43 am
-
jdalrymple
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: nagios service stops unepxectedly
Is there any difference between the 2 scripts?
/etc/init.d/nagios
Our restart can be finnicky if it's waiting for results. I could imagine some differences between the 2 scripts being the difference.
/etc/init.d/nagios
Our restart can be finnicky if it's waiting for results. I could imagine some differences between the 2 scripts being the difference.