Servicedependicy problem

Mueller, Karl KMueller at netsuite.com
Wed Jun 16 15:49:09 CEST 2004


(You didnt send the full email, which in this case is OK, but in future emails, send more :) )

(Free hint) Try setting switch1 and switch2 as having a 'parent' of router (in the host definitions) instead of a host dependency.  That's separate from your problem, though.

The problem is: you need notification_failure_criteria set to 'c,u,w', not 'n'.

>From the documentation:

If you specify n (none) as an option, the notification dependency will never fail and notifications for the dependent service will always be sent out. 

Karl



-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of MiikaT
Sent: Wednesday, June 16, 2004 1:12 AM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Servicedependicy problem



Hi,

I've set following dependencies to a few hosts:

define servicedependency{
        host_name                       router
        service_description             PING
        dependent_host_name             switch1,switch2
        dependent_service_description   *
        execution_failure_criteria      w,u,c   ; These are the criteria for 
which check execution will be supressed
        notification_failure_criteria   n       ; These are the criteria for 
which notifications will be supressed
        }

define hostdependency{
        host_name                       router
        dependent_host_name             switch1,switch2
        notification_failure_criteria   d,u
        }

The goal is that I don't want to get any alerts from hosts switch1 and 
switch2, if router is down or critical. With this configuration, if router is 
critical, I get this alert:

State: CRITICAL 
Date/Time: Wed Jun 16 10:58:15 EEST 2004 
Additional Info: CRITICAL - Plugin timed out after 10 seconds

and the same alert for both switch1 and switch2. Have I missed something in 
the depency configuration?

-MiikaT




-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
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


-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
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