Since I want to see the value of an OID I use check_snmp to retrieve those information.
When I manually run the command, I see what I want to see so the OID does excist. I then use the following command:
Code: Select all
check_snmp -H asr01 -C something -o .1.3.6.1.4.1.9.10.56.1.2.1.1.6.2.1" -csomething" -P 2c
Code: Select all
External command error: .1.3.6.1.4.1.9.10.56.1.2.1.1.6.2.1": Unknown Object Identifier (Sub-id not found: enterprises -> 1")
Code: Select all
define command{
command_name check_snmp
command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C something -o $ARG1$\" -csomething\" -P 2c -w $ARG2$ -c $ARG3$
}
The service is specified as following
Code: Select all
check_command check_snmp!.1.3.6.1.4.1.9.10.56.1.2.1.1.6.2.1!8!10