Define multiple serves per host(s)

Andreas Ericsson ae at op5.se
Tue Dec 11 14:01:54 CET 2007


Andrei-Florian Staicu wrote:
> Hello,
> 
> I saw in the Nagios docs, in the Time-Saving Tricks For Object 
> Definitions page, how to use regular expressions for defining identical 
> services for multiple hosts.
> Is there a "shortcut" for defining similar multiple services for 
> multiple hosts?
> The actual case here is to monitor the link status on all ports on 
> several identical switches.
> I hope to bypass creating a huge config file from the command prompt.
> 

Make a hostgroup of all your switches and define your service like this:

define service{
	service_description yada yada
	hostgroup_name      all-the-routers
	check_command       more yada yada
	yada                and more yada
}

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
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