SNMPv3 & check_snmp w/NoAuthNoPriv fails?
Posted: Sun Sep 07, 2014 10:31 am
We have several (about 6) Cisco RV220w,RV120W routers configured to use SNMPv3
They mostly seem to work OK.
They are also being monitored with NagiosCore [Nagios® Core⢠4.0.7]
{ here (below) is 'evidence' that SNMPv3 is working OK from Centos}
{Linux nag35-B22 2.6.32-431.20.3.el6.x86_64 #1 SMP Thu Jun 19 21:14:45 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux}
[root@nag35-B22 libexec]# snmpwalk -v 3 -m ALL -u guest -l NoAuthNoPriv <<RV220W IP address>> SysLocation
SNMPv2-MIB::sysLocation.0 = STRING: HadeCRG
[root@nag35-B22 libexec]#
Note that the snmpwalk properly returns with the SysLocation when queried.
Next however, from the same system, a test of the Nagios "check_snmp" seems to do something odd?
[root@nag35-B22 libexec]# ./check_snmp -H <<RV220W IP address>> -m ALL -P 3 -U guest -L noAuthNoPriv -o sysLocation -v
/usr/bin/snmpget -t 1 -r 5 -m ALL -v 3 [authpriv] <<RV220W IP address>>:161 sysLocation
External command error: No log handling enabled - turning on stderr logging
snmpget: No securityName specified (Sub-id not found: (top) -> sysLocation)
[root@nag35-B22 libexec]#
Note the 'translation' of "... -L noAuthNoPriv..." seems to have yielded "... No securityName specified..." even though clearly we also see "... -U guest ..." in the invocation of check_snmp. Is this a syntax error on my part or possibly something in the check_snmp plugin?
[root@nag35-B22 libexec]# ./check_snmp -V
check_snmp v1.4.16 (nagios-plugins 1.4.16)
[root@nag35-B22 libexec]#
ADVthanksANCE,
michael grimes
They mostly seem to work OK.
They are also being monitored with NagiosCore [Nagios® Core⢠4.0.7]
{ here (below) is 'evidence' that SNMPv3 is working OK from Centos}
{Linux nag35-B22 2.6.32-431.20.3.el6.x86_64 #1 SMP Thu Jun 19 21:14:45 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux}
[root@nag35-B22 libexec]# snmpwalk -v 3 -m ALL -u guest -l NoAuthNoPriv <<RV220W IP address>> SysLocation
SNMPv2-MIB::sysLocation.0 = STRING: HadeCRG
[root@nag35-B22 libexec]#
Note that the snmpwalk properly returns with the SysLocation when queried.
Next however, from the same system, a test of the Nagios "check_snmp" seems to do something odd?
[root@nag35-B22 libexec]# ./check_snmp -H <<RV220W IP address>> -m ALL -P 3 -U guest -L noAuthNoPriv -o sysLocation -v
/usr/bin/snmpget -t 1 -r 5 -m ALL -v 3 [authpriv] <<RV220W IP address>>:161 sysLocation
External command error: No log handling enabled - turning on stderr logging
snmpget: No securityName specified (Sub-id not found: (top) -> sysLocation)
[root@nag35-B22 libexec]#
Note the 'translation' of "... -L noAuthNoPriv..." seems to have yielded "... No securityName specified..." even though clearly we also see "... -U guest ..." in the invocation of check_snmp. Is this a syntax error on my part or possibly something in the check_snmp plugin?
[root@nag35-B22 libexec]# ./check_snmp -V
check_snmp v1.4.16 (nagios-plugins 1.4.16)
[root@nag35-B22 libexec]#
ADVthanksANCE,
michael grimes