SNMP Classification
Posted: Mon Nov 14, 2011 10:33 am
Hi,
My solution includes a linux machine with Nagios core installed on it and a network switch. The network switch is set to send SNMP traps to the linux machine. The Nagios sees the SNMP traps since check_snmp plugin is installed fine and working.
So basically, I want to monitor a network switch. This switch has the capability to send SNMP traps. Now, for checking the SNMP traps, the Nagios Documentation shows the following:
define service{
use generic-service ; Inherit values from a template
host_name linksys-srw224p
service_description Uptime
check_command check_snmp!-C public -o sysUpTime.0
}
In the check_command directive of the service definition above, the "-C public" tells the plugin that the
SNMP community name to be used is "public" and the "-o sysUpTime.0" indicates which OID should be
checked.
Now, the OID I want to check is .1.3.6.1.4.1.15397.2.1.104.21.3.
I tried replacing the "-o sysUpTime.0" with the OID above but it is not working.
The error I get is No OIDs specified. Am I missing something?
Secondly, what significance does the use generic-service hold?
My solution includes a linux machine with Nagios core installed on it and a network switch. The network switch is set to send SNMP traps to the linux machine. The Nagios sees the SNMP traps since check_snmp plugin is installed fine and working.
So basically, I want to monitor a network switch. This switch has the capability to send SNMP traps. Now, for checking the SNMP traps, the Nagios Documentation shows the following:
define service{
use generic-service ; Inherit values from a template
host_name linksys-srw224p
service_description Uptime
check_command check_snmp!-C public -o sysUpTime.0
}
In the check_command directive of the service definition above, the "-C public" tells the plugin that the
SNMP community name to be used is "public" and the "-o sysUpTime.0" indicates which OID should be
checked.
Now, the OID I want to check is .1.3.6.1.4.1.15397.2.1.104.21.3.
I tried replacing the "-o sysUpTime.0" with the OID above but it is not working.
The error I get is No OIDs specified. Am I missing something?
Secondly, what significance does the use generic-service hold?