4

I am trying to set the SNMP authentication protocol to SHA to connect to my CISCO switch. When I run:

sudo munin-node-configure --snmp SWITCH01 --snmpversion 3 --snmpauthprotocol sha --snmpusername munin --snmpauthpass PASSWORD

I am getting the error:

Unknown option: snmpauthprotocol

It does say in the manual that the option is available:

--snmpauthprotocol <protocol>
           Authentication protocol.  One of 'md5' or 'sha' (HMAC-MD5-96, RFC1321 and SHA-1/HMAC-SHA-96, NIST FIPS PIB 180, RFC2264).  ['md5']

I could change the protocol on the switch ... If I hadn't accidentally denied ssh access for myself ... I don't feel like taking a 2 hour drive today :/

Just as an extra note, if I run it without the --snmpauthprotocol and with --debug I get:

Received usmStatsWrongDigests.0 Report-PDU with value 4 during synchronization

So, I definitely can't use md5 ...

nixpower
  • 1,230
  • 6
  • 19
Just Lucky Really
  • 723
  • 2
  • 10
  • 21

2 Answers2

3

I just downloaded munin 2.0.25 and looked at the source. Try using --snmpauthproto instead of --snmpauthprotocol.

Yes, the help text is wrong. I'll probably open an issue here: https://github.com/munin-monitoring/munin/issues. I have put in a pull request to correct the typo in the code https://github.com/munin-monitoring/munin/pull/510 which has now been encorportated into the github code and may be included in release 2.1.13 .

rocky
  • 807
0

Have you tried this:

  sudo munin-node-configure --snmp SWITCH01 --snmpversion 3 --snmpauthproto md5 --snmpusername munin --snmpauthpass PASSWORD

and it might work fine this way.

Michael
  • 2,597