Re: [Nagios-devel] Re: Soft states skipped in reports

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] Re: Soft states skipped in reports

Post by Guest »

On 5 Jan 2005 at 14:22, Strickland, Kristian wrote:

> Hi to all, and Happy New Year.
>
> On 2004-12-13 22:26, Ethan Galstad wrote:
>
> > I"ll check into modifying the code to do this during the 2.0 beta
> > process, but I"m not convinced I want to muddle with the CGIs much
> > anymore unless there are real bugs.
>
> On the nagios-users list, there's a thread that points out a bug that
> affects the "Service State Trends". From a post by Eric Bollengier:
>
> ----------------- quote
>
> [1099042385] SERVICE ALERT: test;ssh;CRITICAL;SOFT;1;Connection
> refused [1099042445] SERVICE ALERT: test;ssh;CRITICAL;SOFT;2;Socket
> timeout [1099042525] SERVICE ALERT: test;ssh;CRITICAL;HARD;3;Socket
> timeout [1099042715] HOST ALERT: test;DOWN;SOFT;1;CRITICAL
> [1099042725] HOST ALERT: test;DOWN;SOFT;2;CRITICAL [1099042735] HOST
> ALERT: test;DOWN;SOFT;3;CRITICAL [1099042745] HOST ALERT:
> test;DOWN;SOFT;4;CRITICAL [1099042755] HOST ALERT:
> test;DOWN;HARD;5;CRITICAL [1099042755] SERVICE ALERT:
> test;ping;CRITICAL;HARD;1;CRITICAL [1099042935] HOST ALERT:
> test;UP;HARD;1;PING OK [1099042935] SERVICE ALERT:
> test;ping;OK;HARD;1;PING OK [1099042945] SERVICE ALERT:
> test;ssh;CRITICAL;SOFT;1;Socket timeout [1099043005] SERVICE ALERT:
> test;ssh;OK;SOFT;2;TCP OK
>
> ====> BUG ssh is in CRITICAL HARD STATE, but OK is SOFT !!
>
> ----------------- end quote
>
> I've had this same thing happen to me, though with a different
> service. The result is a 5 day 8 hour block of "critical" in my
> report unless I edit the proper log file and change the SOFT to HARD.
>
> Either fixing the real problem OR including SOFT states in reporting
> would show the correct states.
>

This problem should be fixed in CVS for the daemon now (my commit two
days back). I also added the option to include soft states in the
trends and availability CGIs. Please let me know if the CVS patches
don't fix the logging issue, as I haven't had a lot of time to test
them.



Ethan Galstad,
Nagios Developer
---
Email: [email protected]
Website: http://www.nagios.org






This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked