<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>Setting up service dependencies</TITLE>
<META content="MSHTML 5.50.4611.1300" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=245083718-07012003><FONT face="Comic Sans MS" color=#000080
size=2>I'm not sure why you're taking this approach. Out of the box,
Nagios will behave as you wish it to.</FONT></SPAN></DIV>
<DIV><SPAN class=245083718-07012003><FONT face="Comic Sans MS" color=#000080
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=245083718-07012003><FONT face="Comic Sans MS" color=#000080
size=2>If a service check fails, then a host check is made. If the host
check fails, it's flagged as down and, depending on your particular
configuration, you'll receive the notification for the host being down, not for
the N services you're monitoring on that host. If the host check passes,
then you'll get an alert on the service.</FONT></SPAN></DIV>
<DIV><SPAN class=245083718-07012003><FONT face="Comic Sans MS" color=#000080
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=245083718-07012003><FONT face="Comic Sans MS" color=#000080
size=2>jc</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000080 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Jeff Boulter
[mailto:jboulter@yahoo-inc.com]<BR><B>Sent:</B> Monday, January 06, 2003 6:37
PM<BR><B>To:</B> Nagios-users@lists.sourceforge.net<BR><B>Subject:</B>
[Nagios-users] Setting up service dependencies<BR><BR></FONT></DIV><!-- Converted from text/rtf format --><BR>
<P><FONT face=Arial size=2>Hello all,</FONT> </P>
<P><FONT face=Arial size=2>I'm trying to set up service dependencies in
Nagios. For example, I don't want alerts about an HTTP service being down on a
host if the host isn't pingable.</FONT></P>
<P><FONT face=Arial size=2>So far, the only way I've found to do this is to
set it up for each host individually. That would be difficult with the
hundreds of hosts that my nagios is currently monitoring.</FONT></P>
<P><FONT face=Arial size=2>I tried creating a servicedependency object with a
hostgroup_name and a dependent_hostgroup_name. This seems to make each host in
hostgroup_name dependent on EVERY host in dependent_hostgroup_name. For
example, if my hostgroup has 7 hosts in it, it seems it's making each of those
7 hosts dependent on each other, making 7x7=49 dependencies. (Stragely, Nagios
reports 98 dependencies. Why 2x?) </FONT></P>
<P><FONT face=Arial size=2>Any suggestions on how to make a service
dependencies local to each host and not a group of hosts without lots and lots
of dependency objects?</FONT></P>
<P><FONT face=Arial size=2>Jeff</FONT> </P></BLOCKQUOTE></BODY></HTML>