<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Toussaint OTTAVI a écrit:
<blockquote cite="mid:493E57F3.10903@medi.fr" type="cite"> <font
 face="Arial"></font><font face="Arial"><br>
Following this idea, I will investigate the following :<br>
- Hosts associated themselves with parent/child relationship according
to WAN topology (already working)<br>
- For each host, I will create a "parent" service with only a
check_alive command<br>
- Every other service will be a child of this parent service<br>
  </font></blockquote>
<font face="Arial"><br>
Answer to myself... After some investigations and doc readings :-) it
seems I made a little confusion between "parent/child" and "dependency"
:<br>
<br>
- Parent/Child relationship is for hosts only, and should map network
topology. When a host is DOWN, all the children are set to UNREACHABLE.
But this parent/child relationship does not exist for services.<br>
<br>
- Dependency can be either for hosts or services. When a dependant
object is down, the "depended upon" object is not checked. But no
assumption is made to the "depended upon" object status. Thus, it is
not set to UNREACHABLE or UNKNOWN, such as for parent/child
relationship.<br>
<br>
<br>
Here's the actual situation :<br>
<br>
- Creating a dependancy solves my problem of not checking services when
hosts are unreachable due to WAN failure. This is a smarter solution
than my previous attempt using event_handlers and
DISABLE_ALL_SVC_CHECKS external command. Using wildcards, I just have
to declare one dependency for all services on several hosts like this :<br>
<br>
<font face="Courier New, Courier, monospace">  define servicedependency{<br>
    host_name                          Remote_WAN_Router               
     <br>
    service_description                Remote WAN router ping test<br>
    dependent_host_name                REMOTE_HOST1, REMOTE_HOST2, ...,
REMOTE_HOSTn<br>
    dependent_service_description      *<br>
    inherits_parent                    1<br>
    execution_failure_criteria         w,u,c</font><br>
      }<br>
<br>
- Doing that, when the WAN fails, the checks are not executed, and they
keep their previous status. That's a good thing. But I would have
prefered they get the status UNKNOWN or UNREACHABLE. In fact, I would
like to have the same parent/child behavior that exists for hosts, but
for services.<br>
<br>
- I'm not sure it will solve the "latency" problem : if a service check
attempt on remote_host occurs before the remote_wan_router is declared
DOWN and the dependency does its job, then I'll still get critical
failures for those services. The console will display a mix of FAILED
services (those executed before the WAN router check) and some OK
services (Previous state of services that will not be checked due to
dependency). This display would be completely wrong ! <br>
<br>
Again, in such a situation, I think the right display for services
whose status could not be determined should be "UNKNOWN". Same as hosts
that are "UNREACHABLE"<br>
<br>
Comments and ideas welcome.<br>
<br>
Kind regards,</font><br>
<div class="moz-signature">-- <br>
<title>Signature</title>
<meta http-equiv="Content-Type" content="text/html; ">
<style type="text/css">
<!--
.stylesig {
        font-family: Arial, Helvetica, sans-serif; 
        font-size: 12px;
        color: #000066;
}
-->
</style>
<p class="stylesig"><strong>Toussaint OTTAVI</strong><br>
<strong>MEDI INFORMATIQUE</strong><br>
<strong></strong><strong>Mail:</strong> <a class="moz-txt-link-abbreviated" href="mailto:t.ottavi@medi.fr">t.ottavi@medi.fr</a></p>
</div>
</body>
</html>