Snmpagent error when using snmpv3 notifications

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
hp3000
Posts: 7
Joined: Sun Aug 30, 2015 6:46 am

Snmpagent error when using snmpv3 notifications

Post by hp3000 »

Hi,

I have recently started using snmpagent and thold version 0.6.

When I change "snmp notification receiver" to use snmpv3 and set the auth password and\or the privacy password, I get the error "Error: Passwords do not match, please retype."

I have tried many simple combinations of passwords and it simply will not accept a new password.

I noticed that when I initially enabled the plugin, it used the default snmp settings and the password fields had hashes in them and if I use the default settings I can save the config but not when I change the passwords!

Please let me know if any logs would help investigating the issue?

Thank you.
hp3000
Posts: 7
Joined: Sun Aug 30, 2015 6:46 am

Re: Snmpagent error when using snmpv3 notifications

Post by hp3000 »

This seems to have something to do with the password check algorithm. Uncommenting the password check works (well password was saved have not tested v3 yet):

Original:

Code: Select all

if ($save["snmp_version"] == 3 && ($save["snmp_auth_password"] != $save["snmp_auth_password_confirm"])) {
                           raise_message(4);
                     }
Uncommented:

Code: Select all

/*if ($save["snmp_version"] == 3 && ($save["snmp_auth_password"] != $save["snmp_auth_password_confirm"])) {
                           raise_message(4);
                     }*/
Also there is no check for privacy password!
hp3000
Posts: 7
Joined: Sun Aug 30, 2015 6:46 am

Re: Snmpagent error when using snmpv3 notifications

Post by hp3000 »

Any plans to fix this bug in the next SNMPagent plugin release? SNMP v3 is very popular these days :)
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests