How to query Nagios raw results for external filtering ?

Toussaint OTTAVI t.ottavi at medi.fr
Wed Jan 21 11:45:45 CET 2009


Hi,

Sorry for late answer, very busy and not so much time to play around 
with Nagios :-)

Anthony Montibello a écrit:
>  
> as for the personal filtering CAN/SHOULD that be done through setting 
> up  a user login that for the Nagios CGI
> then configure NagStamon with that user ID?
>  
> you could triple check nagios excange for something more similar to 
> your needs.

Here's my problem. When a host is unreachable (f/ex due to wan failure), 
Nagios continues to do the service checks on that host. This produces a 
lot of service check failure, warning or unknown (depending on how the 
individual plugin behaves when the destination host does not answer at 
all). Service dependency helps a bit. But service checks that are 
scheduled after the wan failure, but before the 'dependant' service 
check, still display inappropriate results.

What I would like to filter in the display is what Nagios already can 
do, but only for notifications :
- display only 'hard' states, and not 'soft' states
- don't display service checks results if the corresponding host is 
'unreachable'

I've been investigating this for a while. This problem has already been 
discussed on this list. It seems there's no solution, it's by design. 
Parent/child/unreachable logic is for hosts only, there's no such 
relationship between hosts and services, or between services.

Maybe a smarter solution would have been to develop some event handlers 
and scripts, to automatically set the status of all service checks to 
'unknown' if the host becomes 'unreachable', or if the 'dependant' 
service fails. But I don't have the Linux programming skills to do that. 
That's why I'm thinking about doing it under Windows.

If something already exists to do that filtering, this would avoid 
re-inventing the wheel just for displaying results the way I need them

Thank you for answer. Kind regards
-- 

*Toussaint OTTAVI*

*MEDI INFORMATIQUE*
***Mail:* t.ottavi at medi.fr

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20090121/c08ca160/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
-------------- next part --------------
_______________________________________________
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