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

<p>"External command error: No log handling enabled - turning on stderr<br>
logging<br>
snmpget: No securityName specified"</p>

<p>This patch fixes the issue by always providing the security name when<br>
noAuthNoPriv is specified.</p>

<p>See also:<br>
https:://bugs.op5.com/view.php?id=8385.</p>

<p>Signed-off-by: Anton Lofgren <a href="mailto:alofgren@op5.com">alofgren@op5.com</a></p>

<hr>

<h4>You can merge this Pull Request by running</h4>
<pre>  git pull https://github.com/catharsis/nagios-plugins check-snmp-noauthnopriv</pre>
<p>Or view, comment on, or merge it at:</p>
<p>  <a href='https://github.com/monitoring-plugins/monitoring-plugins/pull/1245'>https://github.com/monitoring-plugins/monitoring-plugins/pull/1245</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>check_snmp: Handle SNMPv3 noAuthNoPriv properly</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/monitoring-plugins/monitoring-plugins/pull/1245/files#diff-0">plugins/check_snmp.c</a>
    (10)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/monitoring-plugins/monitoring-plugins/pull/1245/files#diff-1">plugins/t/check_snmp.t</a>
    (11)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/monitoring-plugins/monitoring-plugins/pull/1245.patch'>https://github.com/monitoring-plugins/monitoring-plugins/pull/1245.patch</a></li>
  <li><a href='https://github.com/monitoring-plugins/monitoring-plugins/pull/1245.diff'>https://github.com/monitoring-plugins/monitoring-plugins/pull/1245.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br><a href='https://github.com/monitoring-plugins/monitoring-plugins/pull/1245'>Reply to this email on GitHub</a>.<img src='https://github.com/notifications/beacon/5514713__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcxMDE1MzQ5NCwiZGF0YSI6eyJpZCI6Mjc0MDkyNzh9fQ==--80df4d278f28bdd539d354ecd18450734aa1dd33.gif' height='1' width='1'></p>