<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=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Monotype Corsiva";
        panose-1:3 1 1 1 1 2 1 1 1 1;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p
        {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";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I would like to add a separate group within Nagios for my
virtual machines.  I created a file called virtual.cfg and changed the
HOST GROUP DEFINITION to the following:<o:p></o:p></span></font></p>

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

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>            hostgroup_name            virtual-servers
; the name of the hostgroup<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>            alias                             Virtual
Servers ; long name of the group<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'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>For each host definition, the ‘use’ statement is
as follows:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Use      virtual-servers ; Inherit
default values from a template<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'>In the nagios.cfg file, I have added the following
statement:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Cfg_file=/usr/local/nagios/etc/objects/virtual.cfg<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'>When I verify the configuration files, I get the following
error:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Error: Template ‘virtual-servers’ specified in
host definition could not be not found (config file ‘/usr/local/nagios/etc/objects/virtual.cfg’.
starting on line 39<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'>I think I am missing a step or two to include this new cfg
file.  Any help would be appreciated.<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'>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'>Mike<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><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Mike
Egan<br>
Enterprise Network Engineer</span></font> <br>
<font size=2 color=black face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:black'>Capital Safety</span></font> <br>
<font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>3833
Sala Way</span></font> <br>
<font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Red
Wing, MN 55066</span></font> <br>
<font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>651-385-6254
Office</span></font> <br>
<font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>651-247-5719
Cell</span></font> <br>
<font size=5 face="Monotype Corsiva"><span style='font-size:18.0pt;font-family:
"Monotype Corsiva"'><a href="blocked::mailto:michaele@capitalsafety.com"
title="mailto:michaele@capitalsafety.com"><font size=2 face=Arial
title="mailto:michaele@capitalsafety.com"><span style='font-size:10.0pt;
font-family:Arial'><span title="mailto:michaele@capitalsafety.com">michaele@capitalsafety.com</span></span></font></a></span></font>
<o:p></o:p></p>

<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Home
of DBI-Sala and Protecta Brands.  Visit us on the web at <a
href="blocked::http://www.capitalsafety.com/"
title="http://www.capitalsafety.com/">www.capitalsafety.com</a></span></font> <o:p></o:p></p>

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

</div>

</body>

</html>