Gonna take a stab at this for you. Newer Nagios guy here as well. Here is a 
basic start....


You use a hostgroup.cfg file to create a group 

i.e   

define hostgroup{

        hostgroup_name          Remote_Hosts

        alias                           Remote Hosts

        members                 list names of all the windows servers here 
seperated by commas

        }

Now in your service.cfg or command.cfg file, where it says host_name, you 
replace the entire host_name line with the following :

#      host_name                              some windows server name

        hostgroup_name                  Remote_Hosts

Make sure your nagios.cfg file shows the path top the hostgroup.cfg file

Verify the config & restart/reload nagios.

Now the check you do will run against the hostgroup instead of a rambling list 
of hosts.

Hope this helps,

Steve




From: shane.kill...@irishjobs.ie
To: nagios-users@lists.sourceforge.net
Date: Tue, 17 Aug 2010 16:13:32 +0100
Subject: [Nagios-users] Host Groups / Definitions



Hi guys,  I’m monitoring a number of Windows servers and so far I am using only 
the templates provided. I would like to split my servers up using host groups 
so I will have each site and then the datacentre.I’m not sure how to go about 
this… although I have read the documentation I’m not understanding. Could 
someone please briefly outline this?   Thanks for your help! Kind Regards,  
Shane  
E-mail Disclaimer:



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



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.


------------------------------------------------------------------------------
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
_______________________________________________
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          
                          
------------------------------------------------------------------------------
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 
_______________________________________________
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

Reply via email to