<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 10">
<meta name=Originator content="Microsoft Word 10">
<link rel=File-List href="cid:filelist.xml@01C30B3E.A5570F90">
<!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:SpellingState>Clean</w:SpellingState>
  <w:GrammarState>Clean</w:GrammarState>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:EnvelopeVis/>
  <w:Compatibility>
   <w:BreakWrappedTables/>
   <w:SnapToGridInCell/>
   <w:WrapTextWithPunct/>
   <w:UseAsianBreakRules/>
  </w:Compatibility>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]-->
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {mso-style-parent:"";
        margin:0in;
        margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:12.0pt;
        font-family:"Times New Roman";
        mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;
        text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;
        text-underline:single;}
pre
        {margin:0in;
        margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:10.0pt;
        font-family:"Courier New";
        mso-fareast-font-family:"Times New Roman";
        color:black;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        mso-style-noshow:yes;
        mso-ansi-font-size:10.0pt;
        mso-bidi-font-size:10.0pt;
        font-family:Arial;
        mso-ascii-font-family:Arial;
        mso-hansi-font-family:Arial;
        mso-bidi-font-family:Arial;
        color:windowtext;}
span.SpellE
        {mso-style-name:"";
        mso-spl-e:yes;}
span.GramE
        {mso-style-name:"";
        mso-gram-e:yes;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;
        mso-header-margin:.5in;
        mso-footer-margin:.5in;
        mso-paper-source:0;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */ 
 table.MsoNormalTable
        {mso-style-name:"Table Normal";
        mso-tstyle-rowband-size:0;
        mso-tstyle-colband-size:0;
        mso-style-noshow:yes;
        mso-style-parent:"";
        mso-padding-alt:0in 5.4pt 0in 5.4pt;
        mso-para-margin:0in;
        mso-para-margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:10.0pt;
        font-family:"Times New Roman";}
</style>
<![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple style='tab-interval:.5in'>

<div class=Section1>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I have a group of hosts that are <span class=SpellE>webservers</span>.<span
style='mso-spacerun:yes'>  </span>I want to run the <span class=SpellE>check_http</span>
command against multiple hosts.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>This is an example from the documentation of multiple <span
class=GramE>hosts</span> service entry:<o:p></o:p></span></font></p>

<pre><font size=2 color=black face="Courier New"><span style='font-size:10.0pt'><span
style='mso-tab-count:1'>        </span><span
class=GramE>define</span> <i><span style='font-style:italic'>service</span></i>{<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><span
style='mso-tab-count:2'>               </span></span></font><span
class=SpellE><font color=red><span style='color:red'>host_name</span></font></span><font
color=red><span style='color:red'><span style='mso-tab-count:2'>              </span><i><span
style='font-style:italic'>HOST1<span class=GramE>,HOST2,HOST3</span>,...,HOSTN</span></i></span></font><o:p></o:p></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><span
style='mso-tab-count:2'>               </span></span></font><span
class=SpellE><span class=GramE><font color=red><span style='color:red'>service_description</span></font></span></span><font
color=red><span style='color:red'><span style='mso-tab-count:1'>    </span><i><span
style='font-style:italic'>SOMESERVICE</span></i></span></font><o:p></o:p></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><span
style='mso-tab-count:2'>               </span><span
class=GramE><i><span style='font-style:italic'>other</span></i></span><i><span
style='font-style:italic'> service directives</span></i> ...<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><span
style='mso-tab-count:2'>               </span>}<o:p></o:p></span></font></pre>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Many commands like <span class=SpellE>check_http</span> have
a $HOSTADDRESS$ variable.<span style='mso-spacerun:yes'>  </span>Is that
somehow pulled from the host definition entry?<span
style='mso-spacerun:yes'>  </span>If so then the example below will
work.<span style='mso-spacerun:yes'>  </span>If not then I have to make a
service entry for every host because <span class=SpellE>hostaddress</span> is
different for every host.<o:p></o:p></span></font></p>

<pre><font size=2 color=black face="Courier New"><span style='font-size:10.0pt'><span
style='mso-tab-count:1'>        </span><span
class=GramE>define</span> <i><span style='font-style:italic'>service</span></i>{<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><span
style='mso-tab-count:2'>               </span></span></font><span
class=SpellE><font color=red><span style='color:red'>host_name</span></font></span><font
color=red><span style='color:red'><span style='mso-tab-count:2'>              </span><i><span
style='font-style:italic'>HOST1<span class=GramE>,HOST2,HOST3</span>,...,HOSTN</span></i></span></font><o:p></o:p></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><span
style='mso-tab-count:2'>               </span></span></font><span
class=SpellE><span class=GramE><font color=red><span style='color:red'>service_description</span></font></span></span><font
color=red><span style='color:red'><span style='mso-tab-count:1'>    </span>HTTP<o:p></o:p></span></font></pre><pre><font
size=2 color=red face="Courier New"><span style='font-size:10.0pt;color:red'><span
style='mso-tab-count:2'>               </span><span
class=SpellE>check_command</span><span style='mso-tab-count:2'>          </span><span
class=SpellE>check_http</span></span></font><o:p></o:p></pre><pre><font size=2
color=black face="Courier New"><span style='font-size:10.0pt'><span
style='mso-tab-count:2'>               </span><span
class=GramE><i><span style='font-style:italic'>other</span></i></span><i><span
style='font-style:italic'> service directives</span></i> ...<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><span
style='mso-tab-count:2'>               </span>}<o:p></o:p></span></font></pre>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Do I have to make a different service definition for each
host because the <span class=SpellE>hostaddress</span> is different?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Thanks<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>--<span class=SpellE><span class=GramE>aaron</span></span><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

</div>

</body>

</html>