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 [EMAIL PROTECTED] 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@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