# Some generic hostgroup definitions # A simple wildcard hostgroup define hostgroup { hostgroup_name all alias All Servers members * } # A list of your Debian GNU/Linux servers define hostgroup { hostgroup_name debian-servers alias Debian GNU/Linux Servers members localhost,pc1,pc3,pc4,pc5,pc6,pc7,pc8,pc9,pc10,pc33,pc34,pc35,pc36,pc37,pc38,pc39,pc40,pc41,pc42,pc65,pc66,pc67,pc68,pc69,pc70,pc97,pc98,pc99,pc100,pc101,pc102,pc103,pc129,pc130,pc131,pc132,pc133,pc134,pc135,pc136 } # A list of switches define hostgroup { hostgroup_name switches alias All switches members bb-sw,grp1-sw,grp2-sw,grp3-sw,grp4-sw,grp5-sw } #A list of routers define hostgroup { hostgroup_name routers alias All routers members bb-gw,bb-rtr1,bb-rtr2,bb-rtr3,bb-rtr4,bb-rtr5 } # A list of your web servers define hostgroup { hostgroup_name http-servers alias HTTP servers members localhost } # A list of your ssh-accessible servers define hostgroup { hostgroup_name ssh-servers alias SSH servers members localhost } # nagios doesn't like monitoring hosts without services, so this is # a group for devices that have no other "services" monitorable # (like routers w/out snmp for example) define hostgroup { hostgroup_name ping-servers alias Pingable servers members gateway }