Service dependences

shacky shacky83 at gmail.com
Sat Aug 22 10:29:11 CEST 2009


Hi.

I'm using NRPE to monitor services on the remote servers.
I wish to make the checks made by NRPE dependent with the NRPE service itself.
I create a service to check the availability of the NRPE daemon on the
remote host:

define service{
        use                     remote-service
        host_name               my.server.hostname
        service_description     NRPE
        check_command           check_tcp!5666
        }

Now I wish to specify the dependency for all the checks made by NRPE,
so if the NRPE daemon isn't available on the remote host, these checks
will not executed at all (and the related notifications are not sent).
I read on the Nagios documentation that this could be done with the
following configuration:

define service{
        use                     remote-service
        host_name               my.server.hostname
        service_description     NRPE
        check_command           check_tcp!5666
        dependent_service_description
nrpeservice1,nrpeservice2,nrpeservice3,nrpeservice4
        execution_failure_criteria     w,c
        }

With this configuration, if the NRPE service is on warning or
critical, the services "nrpeservice1, nrpeservice2, nrpeservice3,
nrpeservice4" are not checked and their problems are not notificated.
This is ok, but I wish to make a "vice versa" configuration.
I think it would be more simple to specify the dependence between the
"NRPE" service and the "nrpeserviceX" in the "nrpeserviceX" stanzas
and not in the "NRPE" service one.
This because it will more fast to add new services, without modify the
"NRPE" stanza.

Is there a way to make this?

Thank you very much!
Bye.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
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