title: Nagios SNMP v3 on HP Procurve 2910
body: <p>I'm having trouble getting the check_snmp plugin to connect and return values. I'm running CentOS7, Nagios 4.0.8, check_snmp 2.0.3. While can snmpget and snmpwalk from the command line, check_snmp fails. Here are some examples...</p>
  
  <p><strong>snmpget:</strong></p>
  
  <pre><code># snmpget -v 3 -u myuser -x aes -X mypasswd -a md5 -A mypasswd -c Public -l AuthPriv 111.222.333.111 sysUpTime.0
  </code></pre>
  
  <p>...returns...</p>
  
  <pre><code>DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (10475998) 1 day, 5:05:59.98
  </code></pre>
  
  <p><strong>snmpwalk:</strong></p>
  
  <pre><code># snmpwalk -v 3 -u myuser -x aes -X mypasswd -a md5 -A mypasswd -c Public -l AuthPriv 111.222.333.111 sysUptime
  </code></pre>
  
  <p>...returns...</p>
  
  <pre><code>DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (10473493) 1 day, 5:06:10.93
  </code></pre>
  
  <p><strong>check_snmp:</strong></p>
  
  <pre><code> /usr/lib64/nagios/plugins/check_snmp -H 111.222.333.111 -o sysUpTime.0 -P 3 -l AuthPriv -U myuser -A mypasswd -a md5 -X mypasswd -x aes
  </code></pre>
  
  <p>...returns...</p>
  
  <pre><code>External command error: Error in packet
  Reason: authorizationError (access denied to that object)
  Failed object: DISMAN-EVENT-MIB::sysUpTimeInstance
  </code></pre>
  
  <p>When I run check_snmp with verbose on, I get...</p>
  
  <pre><code>/usr/bin/snmpget -Le -t 1 -r 5 -m ALL -v 3 [authpriv] 156.128.2.250:161 sysUpTime.0
  </code></pre>
  
  <p>check_snmp is clearly not constructing the snmpget command with the args that are being passed to it. I'm at a loss for why.</p>