<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16481" name=GENERATOR><!--[if !mso]>
<STYLE>v\:* {
BEHAVIOR: url(#default#VML)
}
o\:* {
BEHAVIOR: url(#default#VML)
}
w\:* {
BEHAVIOR: url(#default#VML)
}
.shape {
BEHAVIOR: url(#default#VML)
}
</STYLE>
<![endif]-->
<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
}
SPAN.EmailStyle17 {
COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: personal-compose
}
DIV.Section1 {
page: Section1
}
</STYLE>
</HEAD>
<BODY vlink=purple link=blue>
<DIV align=left><SPAN class=936343102-19072007><FONT face=Arial color=#0000ff size=2>I'm pretty sure, using hostgroups in service dependancies
equates to :</FONT></SPAN></DIV>
<DIV align=left><SPAN class=936343102-19072007><FONT face=Arial color=#0000ff size=2> This service on all these hosts depends on this
service on all *these* hosts.</FONT></SPAN></DIV>
<DIV align=left><SPAN class=936343102-19072007><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV align=left><SPAN class=936343102-19072007><FONT face=Arial color=#0000ff size=2>I'd prefer to have - This service on these hosts depend on
this service on any of these host.</FONT></SPAN></DIV>
<DIV align=left><SPAN class=936343102-19072007><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV align=left><SPAN class=936343102-19072007><FONT face=Arial color=#0000ff size=2>If I'm wrong, please report back, I've always found service
dendancies irksome to implement.</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV align=left><STRONG><FONT face=Verdana size=2>Matthew Joyce</FONT></STRONG>
<BR><FONT face=Verdana color=#808080 size=1>02 9382 0051</FONT><B> <FONT face=Verdana color=#808080 size=1>|</FONT></B><FONT face=Verdana color=#808080 size=1> IT Manager</FONT><B> <FONT face=Verdana color=#808080 size=1>|</FONT></B><FONT face=Verdana color=#808080 size=1> Children's Cancer
Institute Australia for Medical Research</FONT> </DIV>
<DIV> </DIV><BR>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader align=left>
<HR>
<FONT face=Tahoma size=2><B>From:</B>
nagios-users-bounces@lists.sourceforge.net
[mailto:nagios-users-bounces@lists.sourceforge.net] <B>On Behalf Of </B>Jeff
Chapin<BR><B>Sent:</B> Thursday, 19 July 2007 8:08 AM<BR><B>To:</B>
nagios-users@lists.sourceforge.net<BR><B>Subject:</B> [Nagios-users] service
depenency templates<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV class=Section1>
<P class=MsoNormal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hello,</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I have inherited a small, but
messy Nagios installation. I have spent a lot of time cleaning it up, and
templating out a bunch of things. For instance, to create a new host,
you simply add 2 lines in a new file – the template to use, and the
hostname. Based on the template you use, it is assigned hostgroups and
based on the hostgroups, it is assigned service checks. It works great for
us. A little example:</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 host{</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">
use
generic-host-ssl</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">
host_name
www.ssldomain.com</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">This assigned the host <A href="http://www.ssldomain.com/">www.ssldomain.com</A> to the hostgroup
SSLDomains, along with the defaults for that domain.</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">SSLDomains get tested for “HTTP by
NAME” and “SSL Cert” – the former is obvious, and the second checks for
existence off a SSL cert, and Crits if it is expired or will expire soon,
warns if it expires in the next month, and says OK
otherwise.</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">What I would like to do, is setup
a service dependency so that I am not warned about a missing SSL cert, if HTTP
is down. Looking through the docs, it appears that the following MAY
work:</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
servicedependency{</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">
hostgroup_name
SSLDomain</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">
service_description
HTTP by NAME </SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">
dependent_hostgroup_name
SSLDomain</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">
dependent_service_description SSL Cert</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">
execution_failure_criteria n</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">
notification_failure_criteria c,w,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">Looking at the documentation,
though, this might not work….</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">It appears that in this case the
SSL Cert warnings will not go down if ANY of the HTTP by NAMES are down…. Is
this the case? </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">Any easy ways to accomplish
this?</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">Thanks,</SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"></SPAN></FONT> </P>
<TABLE class=MsoNormalTable style="WIDTH: 274.5pt" cellpadding=0 width=366 border=0>
<TBODY>
<TR style="HEIGHT: 33.75pt" height=45>
<TD style="PADDING-RIGHT: 0in; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; WIDTH: 45pt; PADDING-TOP: 0in; HEIGHT: 33.75pt" valign=top width=60 height=45>
<P class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"><IMG id=_x0000_i1025 height=42 src="cid:936343102@19072007-087D" width=43 border=0></SPAN></FONT></P></TD>
<TD style="PADDING-RIGHT: 0in; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; WIDTH: 225pt; PADDING-TOP: 0in; HEIGHT: 33.75pt" nowrap width=300 height=45>
<P class=MsoNormal><FONT face=Arial color=#0080b8 size=2><SPAN style="FONT-SIZE: 10pt; COLOR: #0080b8; FONT-FAMILY: Arial">JEFF CHAPIN
<BR></SPAN></FONT><FONT face=Arial color=#666666 size=1><SPAN style="FONT-SIZE: 7.5pt; COLOR: #666666; FONT-FAMILY: Arial">SYSTEM
ADMINISTRATOR </SPAN></FONT></P></TD></TR>
<TR style="HEIGHT: 10.5pt" height=14>
<TD style="PADDING-RIGHT: 0in; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; WIDTH: 271.5pt; PADDING-TOP: 0in; HEIGHT: 10.5pt" nowrap width=362 colspan=2 height=14>
<P class=MsoNormal style="LINE-HEIGHT: 10.5pt"><FONT face=Arial color=#666666 size=1><SPAN style="FONT-SIZE: 7.5pt; COLOR: #666666; FONT-FAMILY: Arial">T8DESIGN.COM
| P 319.266.7574 - x267 | 877.T8IDEAS | F
888.290.4675</SPAN></FONT></P></TD></TR></TBODY></TABLE>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"><BR></SPAN></FONT><FONT face=Arial color=#b0b0b0 size=1><SPAN style="FONT-SIZE: 7.5pt; COLOR: #b0b0b0; FONT-FAMILY: Arial">This
e-mail, including attachments, is covered by the Electronic Communications
Privacy Act, 18 U.S.C. 2510-2521, is confidential, and may be legally
privileged. If you are not the intended recipient, you are hereby notified
that any retention, dissemination, distribution, or copying of this
communication is strictly prohibited. Please reply to the sender that you have
received the message in error, and then please delete it. Thank
you.</SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"></SPAN></FONT> </P></DIV></BLOCKQUOTE></BODY></HTML>