<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.26.3">
</HEAD>
<BODY>
On Thu, 2009-08-06 at 09:08 -0700, Mirza Dedic wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
Hello,

I plan to use Host Check Dependency on my services... can someone please confirm that the below will do the following scenario: If Ping fails to the host machine (van-sql01) that is being monitored, Nagios will suppress the services listed in the dependent_service_description portion of the configuration...

define servicedependency{
        host_name                       van-sql01
        service_description             Ping
        dependent_host_name             van-sql01
        dependent_service_description   NSClient Version, Uptime, C - Disk Space, D - Disk Space, CPU Over 25min, Memory
        execution_failure_criteria      w,u,c
        notification_failure_criteria   w,u,c
}

Will this setup achieve that?

What if Nagios does not check PING first? Or will the setup above force for a ping check initially before checking these services? (If ping is still pending, will it wait until It gets the status of PING before checking these services and suppressing them incase PING has failed??)

Thanks.

</PRE>
</BLOCKQUOTE>
Yes, what you have looks fine. I have the same situation with checking linux servers over ssh, and my service dependency list is quite similar to yours -<BR>
<BR>
  define servicedependency{<BR>
        host_name                                                        linux_server_1<BR>
        service_description                                          ssh<BR>
        dependent_host_name                                   linux_server_1<BR>
        dependent_service_description                     var partition,total processes,current load,swap usage<BR>
        notification_failure_criteria                               c,u,w<BR>
        execution_failure_criteria                                 c,u,w<BR>
        }<BR>
<BR>
I don't know about scheduling well enough to say if the non-dependent service is checked first, or if simply the notices/event handlers/whatever else you have happening/ are delayed on the key service, but you won't see any action taken by nagios until the dependent service state is established.<BR>
<BR>
<BR>
</BODY>
</HTML>