<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
tt
{mso-style-priority:99;
font-family:"Courier New";}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Verdana","sans-serif";
font-variant:normal !important;
color:#17365D;
text-transform:none;
text-shadow:none;
font-weight:normal;
font-style:normal;
text-decoration:none none;
vertical-align:baseline;}
.MsoChpDefault
{mso-style-type:export-only;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";
color:#17365D'>So you have ServerA ServerB and ServerC as part of Hostgroup1.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";
color:#17365D'>You have services defined for the Hostgroup, but you want to
exclude ServerC from that one service.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";
color:#17365D'>In the service command, exclude ServerC by putting a ! in front
of it.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";
color:#17365D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";
color:#17365D'>Example:<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";
color:#17365D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";
color:#17365D'>define service{<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";
color:#17365D'> use local-service
<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";
color:#17365D'> hostgroup_name Hostgroup1<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";
color:#17365D'> host_name !ServerC<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";
color:#17365D'> service_description SSH<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";
color:#17365D'> check_command check_ssh<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";
color:#17365D'> max_check_attempts 2<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";
color:#17365D'> check_interval 10<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";
color:#17365D'> retry_interval 5<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";
color:#17365D'> check_period 24x7<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";
color:#17365D'> notification_interval 60<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";
color:#17365D'> first_notification_delay 0<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";
color:#17365D'> notification_period 24x7<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";
color:#17365D'> contacts nagiosadmin<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";
color:#17365D'> notification_options c,w,r<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";
color:#17365D'> }<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";
color:#17365D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";
color:#17365D'>All hosts in Hostgroup1 get checked for ssh except ServerC.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";
color:#17365D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";
color:#17365D'><o:p> </o:p></span></p>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Arnar Þórarinsson
[mailto:art@flugstodir.is] <br>
<b>Sent:</b> Friday, December 12, 2008 12:51 PM<br>
<b>To:</b> nagios-users@lists.sourceforge.net<br>
<b>Subject:</b> [Nagios-users] question about hostgroups<o:p></o:p></span></p>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><br>
<span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>hi all,</span> <br>
<span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Say I have a
hostgroup defined that has serveral services attached to it, like a typical
linux server so its easy to add a server, just assigned it to this hostgroup
and all the basic stuff come in automaticly.</span> <br>
<span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Now lets say
that I'm adding a new host and I want him to have all the same services as
every other linux server except for one services, can I somehow tell nagios not
to apply that services check to this host ?</span> <br>
<br>
<tt><span style='font-size:10.0pt'>Thanks in advance for any help you may
provide.</span></tt><span style='font-size:10.0pt;font-family:"Courier New"'><br>
<br>
<tt>Cheers</tt></span> <br>
<br>
<span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Arnar</span> <o:p></o:p></p>
<p>Thessi tolvupostur og vidhengi hans geta innihaldid <br>
trunadarupplysingar og er eingongu aetladur theim sem hann er <br>
stiladur a. <br>
Oheimil medferd tolvuposts thessa og vidhengja hans getur <br>
vardad <br>
skadabota- og refsiabyrgd samkvaemt logum um fjarskipti. Efni <br>
tolvupostsins og vidhengja er a abyrgd sendanda ef thad tengist <br>
ekki starfsemi Flugstoda ohf. Ef Thu ert ekki skradur <br>
mottakandi og hefur fengid skeytid vegna mistaka, vinsamlegast <br>
hafdu strax samband vid sendanda. <br>
<br>
------------<br>
<br>
<br>
This e-mail and its attachments is intended only for the person or<br>
entity to which it is addressed and may contain confidential <br>
and/or privileged material. Any review, retransmission, <br>
dissemination or other use of, or taking of any action in <br>
reliance upon, this information by persons or entities other than <br>
the intended recipient is prohibited. <br>
If you received this in error, please contact the sender and <br>
delete the material from any computer.<o:p></o:p></p>
</div>
</body>
</html>