<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Gonna take a stab at this for you. Newer Nagios guy here as well. Here is a basic start....<br><br><br>You use a hostgroup.cfg file to create a group <br><br>i.e <br><br>define hostgroup{<br><br> hostgroup_name Remote_Hosts<br><br> alias Remote Hosts<br><br> members list names of all the windows servers here seperated by commas<br><br> }<br><br>Now in your service.cfg or command.cfg file, where it says host_name, you replace the entire host_name line with the following :<br><br># host_name some windows server name<br><br> hostgroup_name Remote_Hosts<br><br>Make sure your nagios.cfg file shows the path top the hostgroup.cfg file<br><br>Verify the config & restart/reload nagios.<br><br>Now the check you do will run against the hostgroup instead of a rambling list of hosts.<br><br>Hope this helps,<br><br>Steve<br><br><br><br><br><hr id="stopSpelling">From: shane.killian@irishjobs.ie<br>To: nagios-users@lists.sourceforge.net<br>Date: Tue, 17 Aug 2010 16:13:32 +0100<br>Subject: [Nagios-users] Host Groups / Definitions<br><br>
<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML"><style>
.ExternalClass p.ecxMsoNormal, .ExternalClass li.ecxMsoNormal, .ExternalClass div.ecxMsoNormal
{margin-bottom:.0001pt;font-size:11.0pt;font-family:'Calibri','sans-serif';}
.ExternalClass a:link, .ExternalClass span.ecxMsoHyperlink
{color:blue;text-decoration:underline;}
.ExternalClass a:visited, .ExternalClass span.ecxMsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
.ExternalClass span.ecxEmailStyle17
{font-family:'Calibri','sans-serif';color:windowtext;}
.ExternalClass .ecxMsoChpDefault
{font-family:'Calibri','sans-serif';}
@page WordSection1
{size:612.0pt 792.0pt;}
.ExternalClass div.ecxWordSection1
{page:WordSection1;}
</style><div class="ecxWordSection1"><p class="ecxMsoNormal">Hi guys, </p><p class="ecxMsoNormal"> </p><p class="ecxMsoNormal">I’m monitoring a number of Windows servers and so far I am using only the templates provided.</p><p class="ecxMsoNormal"> </p><p class="ecxMsoNormal">I would like to split my servers up using host groups so I will have each site and then the datacentre.</p><p class="ecxMsoNormal">I’m not sure how to go about this… although I have read the documentation I’m not understanding.</p><p class="ecxMsoNormal"> </p><p class="ecxMsoNormal">Could someone please briefly outline this?</p><p class="ecxMsoNormal"> </p><p class="ecxMsoNormal"> </p><p class="ecxMsoNormal"> </p><p class="ecxMsoNormal">Thanks for your help!</p><p class="ecxMsoNormal"> </p><p class="ecxMsoNormal"><span style="">Kind Regards, </span></p><p class="ecxMsoNormal"><span style=""> </span></p><p class="ecxMsoNormal"><span style="">Shane </span></p><p class="ecxMsoNormal"> </p></div><br>E-mail Disclaimer:<br>
<br>
The information contained in this message is confidential and is intended for the addressee only. If you have received this message in error or there are any problems please notify the originator immediately. The unauthorized use, disclosure, copying or alteration of this message is strictly forbidden. This mail and any attachments have been scanned for viruses prior to leaving the network of saongroup.com<br>
<br>
saongroup.com will not be liable for direct, special, indirect or consequential damages arising from alteration of the contents of this message by a third party or as a result of any virus being passed on. saongroup.com reserves the right to monitor and record e-mail messages sent to and from this address for the purposes of investigating or detecting any unauthorized use of its system and ensuring its effective operation.<br>
<br>------------------------------------------------------------------------------
This SF.net email is sponsored by
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev<br>_______________________________________________
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null </body>
</html>