Tuesday, 17 February 2015

Cacti .... How to fix "SNMP Error" when trying to add a device


I was trying to add one of my devices to Cacti with SNMP data query collection and was repeatedly getting a "SNMP Error" when trying to add the device.

The device was enabled for SNMP, and the device MIB was imported on the server running Cacti. Verified that "snmpwalk" from cacti server to my device worked fine.

Turns out... when I configured the device for SNMP v3, I specified the username, but left it as "NoAuth/NoPriv". And looks like Cacti was not ready to accept a blank password for the authentication.

After re-configuring the device with Auth(MD5)/NoPriv and specifying the password in the cacti 'Add Device' screen as well as choosing Privacy as "None", the SNMP Error was gone!

So.. lessons learnt:

  • On your device, if configuring with SNMP v3, then enable "Authentication". (Privacy is optional)
  • On the cacti Add Device page, do the following:
    • Add the Auth passwords to the "SNMP Password (v3)" field
    • Select "SNMP Privacy Protocol (v3)" as None.
Here's a screenshot of the cacti page:

Cacti - Add Device page