On Fri, Jul 16, 2010 at 9:56 PM, Jeremy Gibbs <jlgi...@utica.edu> wrote: > Hi. > This is a default check nagios has in it's config file for checking link > status on a switch. > define service{ > use generic-service > host_name DC-6509 > service_description Port 1 Link Status > check_command check_snmp!-C onsite -o ifOperStatus.1 -r 1 -m > RFC1213-MIB > } > > It works fine > > Where it says hostname, I would generally have to do this > > host_name DC-6509, Switch-1, Switch-2, Switch-3, Switch-4, > switch-5 > Now, as you can imagine, if I have multiple services I want to monitor, I > would rather have a group with all these hosts, Then I could do something > like... > hostgroups switches > Then I wouldn't have so much work to do. > Is this passable?
hostgroup_name: This directive is used to specify the short name(s) of the hostgroup(s) that the service "runs" on or is associated with. Multiple hostgroups should be separated by commas. The hostgroup_name may be used instead of, or in addition to, the host_name directive. Source: http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#service Regards Martin Melin ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ 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