Problem logging criticals after host down

Thomas Guyot-Sionnest Thomas at zango.com
Tue May 22 22:05:57 CEST 2007


> -----Original Message-----
> From: nagios-devel-bounces at lists.sourceforge.net [mailto:nagios-devel-
> bounces at lists.sourceforge.net] On Behalf Of Ricardo José Maraschini
> Sent: May 21, 2007 13:54
> To: Nagios Developers List
> Subject: [Nagios-devel] Problem logging criticals after host down
> 
> I will try to explain a problem that we see here.
> Actually we are using Nagios 2.5, and I try to search in ChangeLog if
> this problem was solved without success.
> When a host comes down, nagios log services of this host as CRITICAL in
> HARDSTATE. When the host comes up, Nagios try to check the services
> again. If a service of this host remains CRITICAL, Nagios log it as
> CRITICAL in SOFTSTATE!
> Try to figure out what happen if in a third try Nagios find the service
> in a OK state. Nagios will log it as... OK SOFTSTATE because the last
> register is a CRITICAL SOFTSTATE.
> The service will turn OK in HARDSTATE only at midnight, when the
> logrotate occours.

I'm not totally sure but I believe that's actually a feature to avoid all
services notifying OKs when the host goes back up. Why is that a problem?

If you're trying to figure out the status of service by parsing the logs,
then a better way of doing it would be to use the Nagios::StatusLog Perl
module to parse information from the Nagios status log.

Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3076 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20070522/64f13381/attachment.bin>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel


More information about the Developers mailing list