Multiple hosts in services.cfg?

Andreas Ericsson ae at op5.se
Thu Sep 30 14:05:43 CEST 2004


Ryan McCain wrote:
> Can I put multiple hosts for the Hostname variable in services.cfg? 
> The reason I am looking to do this is because I have around 50 servers
> that I am looking to monitor the same port with?
> 

Yes. You can also have hostgroup_name in the service definition. They 
are not mutually exclusive.

Remember that the list should be comma-separated and contain no spaces 
what so ever.

In the future, you might want to test things like this first, since it's 
pretty easy to do and will keep some traffic off the list. nagios -v 
will tell you what you've done wrong, if anything, with some details.

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Lead Developer


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Nagios-users mailing list
Nagios-users at 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





More information about the Users mailing list