<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<STYLE>@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
COLOR: purple; TEXT-DECORATION: underline
}
P {
FONT-SIZE: 12pt; MARGIN-LEFT: 0in; MARGIN-RIGHT: 0in; FONT-FAMILY: "Times New Roman"
}
SPAN.EmailStyle17 {
COLOR: windowtext; FONT-FAMILY: Arial
}
DIV.Section1 {
page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=purple link=blue>
<DIV><SPAN class=113523702-20082004><FONT face=Arial color=#0000ff
size=2>Dale:</FONT></SPAN></DIV>
<DIV><SPAN class=113523702-20082004><FONT face=Arial color=#0000ff size=2>I
believe what you are looking for is a parent-child relationship, rather than a
host-dependency.</FONT></SPAN></DIV>
<DIV><SPAN class=113523702-20082004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=113523702-20082004><FONT face=Arial color=#0000ff size=2>Given
the following network (forgive the ASCII art ;-) ):</FONT></SPAN></DIV>
<DIV><SPAN class=113523702-20082004><FONT face=Arial color=#0000ff
size=2>
Nagios<BR>
|<BR>
Firewall<BR>
|<BR>
*-------*-------*<BR>
| |
|<BR> A
B C<BR></FONT></SPAN></DIV>
<DIV><SPAN class=113523702-20082004><FONT face=Arial color=#0000ff size=2>I
would set this up as:</FONT></SPAN></DIV>
<DIV><SPAN class=113523702-20082004></SPAN><SPAN class=113523702-20082004><FONT
face=Arial color=#0000ff size=2>
define
host{<BR>
host_name
A<BR>
parent
Firewall<BR> }</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=113523702-20082004><FONT face=Arial color=#0000ff
size=2> define
host{<BR>
host_name
B<BR>
parent
Firewall<BR> }</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=113523702-20082004><FONT face=Arial color=#0000ff
size=2> define
host{<BR>
host_name
C<BR>
parent
Firewall<BR> }</FONT></SPAN></DIV>
<DIV><SPAN class=113523702-20082004><FONT face=Arial color=#0000ff
size=2><BR> define
host{<BR>
host_name
Firewall<BR> }<BR></DIV></FONT></SPAN>
<DIV><SPAN class=113523702-20082004><FONT face=Arial color=#0000ff size=2>You
will note that there is no parent defined for 'Firewall'. This is
because 'Firewall' is local to Nagios (meaning, no the same
network/subnet).</FONT></SPAN></DIV>
<DIV><SPAN class=113523702-20082004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=113523702-20082004><FONT face=Arial color=#0000ff size=2>In
this case, if any of 'A','B', or 'C' goes down, Nagios will check
'Firewall'. If 'Firewall' is down, Nagios will tell you about it, but NOT
about 'A', 'B', or 'C' ('Firewall's children). This will show up in the
web interface as a 'network outage', instead of a simple 'host'
outage.</FONT></SPAN></DIV>
<DIV><SPAN class=113523702-20082004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=113523702-20082004><FONT face=Arial color=#0000ff size=2>I do
not use host dependencies personally, so I could not comment as to a scenario in
which they would be useful.</FONT></SPAN></DIV>
<DIV><SPAN class=113523702-20082004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=113523702-20082004><FONT face=Arial color=#0000ff
size=2>Important note however, if you want 'Firewall' to be checked ONLY when
any of it's children are down, do not define any services for this host.
If, however, you want Nagios to "active" check this device, setup a simple
'check_ping' service for it. I have not completely tested this out, but I
do believe that having an "active" check on firewall in this configuration will
allow Nagios to pick up a failure on that device quicker (this may not be the
case thought).</FONT></SPAN></DIV>
<DIV><SPAN class=113523702-20082004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=113523702-20082004><FONT face=Arial color=#0000ff size=2>I hope
that helps.</FONT></SPAN></DIV>
<DIV><SPAN class=113523702-20082004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=113523702-20082004><FONT face=Arial color=#0000ff
size=2>-Darren</FONT></SPAN></DIV>
<DIV><SPAN class=113523702-20082004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><FONT face=Tahoma size=2>-----Original Message-----<BR><B>From:</B>
nagios-users-admin@lists.sourceforge.net
[mailto:nagios-users-admin@lists.sourceforge.net]<B>On Behalf Of </B>Dale
Hobbs<BR><B>Sent:</B> Thursday, August 19, 2004 11:14 AM<BR><B>To:</B>
nagios-users@lists.sourceforge.net<BR><B>Subject:</B> [Nagios-users] Question
regarding Dependencies<BR><BR></FONT></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=Section1>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">For give me if this question has
been asked before. I have read the docs in regards to dependencies but am
still a bit unclear as to the internal workings.</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">If I have 3 servers (www1, www2,
www3) on the outside of my firewall with the following dependencies set up for
each of the 3 servers:</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">define
hostdependency{</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">
host_name
www1</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">
dependent_host_name
firewall</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">
notification_failure_criteria d,u</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">
}</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">If my firewall goes down,
obviously it will notify me that the firewall is down but will it also notify
me that it can’t contact each of the 3 servers as well? Also if one of the
servers goes down is Nagios smart enough to check the firewall first to make
sure that it is still available before notifying me that the server is down in
case that it can’t contact the server because the firewall is
down?</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P><B><FONT face=Arial size=1><SPAN
style="FONT-WEIGHT: bold; FONT-SIZE: 7.5pt; FONT-FAMILY: Arial">Dale
Hobbs</SPAN></FONT></B> <BR><FONT face=Arial size=1><SPAN
style="FONT-SIZE: 7.5pt; FONT-FAMILY: Arial">End User Support</SPAN></FONT>
<BR><FONT face=Arial size=1><SPAN
style="FONT-SIZE: 7.5pt; FONT-FAMILY: Arial">Chancery Software -- The Right
Partner. The Right Solution.</SPAN></FONT> <BR><FONT face=Arial size=1><SPAN
style="FONT-SIZE: 7.5pt; FONT-FAMILY: Arial">Tel: 604-294-1233
Ext.4744</SPAN></FONT> <BR><FONT face=Arial size=1><SPAN
style="FONT-SIZE: 7.5pt; FONT-FAMILY: Arial">Fax: 604-294-2225</SPAN></FONT>
<BR><FONT face=Arial size=1><SPAN
style="FONT-SIZE: 7.5pt; FONT-FAMILY: Arial">Email:<U> <FONT color=blue><SPAN
style="COLOR: blue">dhobbs@chancery.com</SPAN></FONT></U></SPAN></FONT>
<BR><U><FONT face=Arial color=blue size=1><SPAN
style="FONT-SIZE: 7.5pt; COLOR: blue; FONT-FAMILY: Arial"><A
href="http://www.chancery.com/"
target=_blank>http://www.chancery.com</A></SPAN></FONT></U> </P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"></SPAN></FONT> </P>
<P><I><FONT face=Arial color=black size=1><SPAN
style="FONT-SIZE: 7.5pt; COLOR: black; FONT-STYLE: italic; FONT-FAMILY: Arial">This
electronic email transmission contains confidential information intended only
for the named person(s). Any use, distribution, copying or disclosure by any
other person is strictly prohibited. If you received this transmission in
error, please notify the sender immediately so that we may correct our
internal records. Please then delete the original message. Thank
You.</SPAN></FONT></I></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"></SPAN></FONT> </P></DIV></BLOCKQUOTE></BODY></HTML>
<PRE>******************************************************************************************
The information contained in this message, including attachments, may contain
privileged or confidential information that is intended to be delivered only to the
person identified above. If you are not the intended recipient, or the person
responsible for delivering this message to the intended recipient, ALLTEL requests
that you immediately notify the sender and asks that you do not read the message or its
attachments, and that you delete them without copying or sending them to anyone else.
</PRE>