Problem logging criticals after host down

Ricardo José Maraschini ricardo.maraschini at opservices.com.br
Tue May 22 23:10:19 CEST 2007


Hi Thomas,

Try to generate an Availability report for affected services ignoring 
SOFT STATES and you will see where problem is.
The service will becomes OK in avail just when the Nagios logs an HARD 
OK for the service in log files.

Regards,
Ricardo.


Thomas Guyot-Sionnest wrote:
>> -----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
>   
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> 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/
> ------------------------------------------------------------------------
>
> _______________________________________________
> Nagios-devel mailing list
> Nagios-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-devel
>   


-------------------------------------------------------------------------
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/




More information about the Developers mailing list