have to kill nagios 2x to kill it.
Andreas Ericsson
ae at op5.se
Wed Apr 6 10:32:55 CEST 2005
This issue has to do with threads being stuck in uninterruptable IO
(waiting for input from IPC pipes). The proper way to handle it is to do
something like this
send_term_to_nagios
seconds=0
while [ nagios_still_running ]; do
seconds=$((seconds+1))
[ $seconds -ge 10 ] && break
done
[ $seconds -ge 10 ] && send_kill_to_nagios
jeff vier wrote:
> On Tue, 2005-04-05 at 16:42 -0500, Drew Kollasch wrote:
>
>>I have been seeing the same issue on my gentoo Linux server w/ nagios
>>2.0b2. I just added the line 'pkill nagios && ps -e | grep nagios' to
>>the init script, to ensure that its dead, but would think that this is
>>an issue...
>
>
> I found that nagios will *eventually* die over 95% or so of the time.
>
> in my restart case, I put:
>
> while [ $(pgrep -s $NAGPID | wc -l) -gt 1 ]; do
> sleep 1
> echo -n "."
> done
>
> between the 'stop' and 'start'. it hangs permanently (meaning, it waits
> more than, say, a minute) very very rarely.
>
> now that I'm looking at it, I should probably move that to the 'stop'
> case, then I get the benefit on a 'stop' as well as a 'restart'.
>
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> 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
>
--
Andreas Ericsson andreas.ericsson at op5.se
OP5 AB www.op5.se
Lead Developer
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
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