service dependencies

Rudy Setiawan rudys at spry.com
Tue Apr 3 17:44:12 CEST 2007


Hi All,

 

I have a little bit problem with service dependency syntax


Let's say I have the following host

 

Host 1 with SSH and PING being monitored by nagios.

 

If nagios check that if PING does not reply, then do not check the rest
of the services (SSH,SMTP and WEB).

 

The current config:

 

define service{

        use                             host-generic-service

        host_name                       newton.domain.com

        service_description             PING NEWTON

        check_command                   check_ping!100.0,20%!500.0,60%

}

 

define service{

        use                             host-generic-service

        host_name                       newton.domain.com

        service_description             SSH NEWTON

        check_command                   check_ssh

}

 

define servicedependency{

        host_name                       newton.domain.com

        service_description             SSH NEWTON

        dependent_host_name             newton.domain.com

        dependent_service_description   PING NEWTON

        execution_failure_criteria      w

        notification_failure_criteria   u

}

 

Will this do it? Or am I missing something?

 

Thank you.


Rudy

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20070403/b8cbddaa/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
-------------- 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