check_snmp: Handle SNMPv3 noAuthNoPriv properly (#1245)

Anton Löfgren notifications at github.com
Tue Mar 11 11:38:14 CET 2014


The SNMPv3 noAuthNoPriv security level, somewhat unintuitively, requires
a security name to be passed along together with the request. Check_snmp
previously did not do this, causing snmpget to throw an error:

"External command error: No log handling enabled - turning on stderr
logging
snmpget: No securityName specified"

This patch fixes the issue by always providing the security name when
noAuthNoPriv is specified.

See also:
https:://bugs.op5.com/view.php?id=8385.

Signed-off-by: Anton Lofgren <alofgren at op5.com>
You can merge this Pull Request by running:

  git pull https://github.com/catharsis/nagios-plugins
  check-snmp-noauthnopriv

Or you can view, comment on it, or merge it online at:

  https://github.com/monitoring-plugins/monitoring-plugins/pull/1245

-- Commit Summary --

  * check_snmp: Handle SNMPv3 noAuthNoPriv properly

-- File Changes --

    M plugins/check_snmp.c (10)
    M plugins/t/check_snmp.t (11)

-- Patch Links --

https://github.com/monitoring-plugins/monitoring-plugins/pull/1245.patch
https://github.com/monitoring-plugins/monitoring-plugins/pull/1245.diff

-- 
Reply to this email on GitHub:
https://github.com/monitoring-plugins/monitoring-plugins/pull/1245
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/devel/attachments/20140311/38236fcb/attachment.html>


More information about the Devel mailing list