Ok this is a real n00b questions that has been killing me for the last few weeks.
Im trying to setup the check_snmp_netint.pl script. I have a 2950 that I am trying to monitor but when I run the /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg I get "ERROR: Could not find any servicegroup matching ‘snmp’ (config file ‘/usr/local.nagios/etc/objects/switch.cfg’ starting line 123)
I pretty sure tha the problem is with the servicegroup but dont understand how to make it work.
This is line 123
define service{
use generic-service ; inherit values from a temple
servicegroup snmp,netstatistics
host_name Test_2950
#hostgroup_name switches
service_description GI0/1
check_command check_snmp_network_initerface_cisco2950!“GigabitEthernet0/1$”!0,0,0,0,0,0,!0,0,0,0,0,0
}
The goal is to monitor all the switches in my network using this setup to monitor if an interface dies and the backup port kicks in.and to monitor bandwidth of the ports.
I understand that servicegroup is to be setup like
servicegroup host1 snmp host1 netstatatistics
Is there abetter way to do this?