nagiosbounce.sh
Rob Nelson
rob at capband.net
Tue Jun 24 13:43:55 CEST 2003
> > Hehe. I've just been noticing that about once a week there are extra
> > Nagios processes still running after I stop Nagios. I could probably
> > just run the script once a week, or just manually when I make config
> > changes and restart it, but I just hate getting multiple "Host UP"
> > pages in the middle of the night due to rogue Nagios processes :-)
>
>Maybe add the contents of the script to /etc/init.d/nagios so you can be
>sure all processes are dead when you stop nagios. Then it would only run
>when you need it.
>
>(though I must note that the init script starts and stops nagios just
>fine for me, without modification - if it does not work for you, perhaps
>we should find out why, log it as a bug, and fix it).
For me, the fix was renaming the init script to "nagiosd" instead of just
"nagios". I was running a "nagios restart" at midnight every night because
of similar problems (multiple host UP's, etc.) and the restart command
seemed to die sometimes. Changing the name of the script stopped it. I
assumed it was because any call to kill nagios might kill the script
itself, but I never went back to check.
Of course, I may have changed something else entirely and this is all just
coincidental, but since all my init scripts had a 'd' at the end of them
except the one for nagios, I left the change in place.
Rob Nelson
Network Administrator, Capitol Broadband
C: 919-369-1874
rob at capband.net
-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list