Opened 13 years ago

Closed 13 years ago

#93 closed defect (fixed)

SMPv3 options sometimes bleed through to SNMPv1/2c devices

Reported by: human Owned by: somebody
Version: Keywords:


This may be a tough one to trace.

On one host (based on SL5/RHEL5 using Net::SNMP 6.0, mrtg 2.14.5) using cfgmaker such as

/usr/bin/cfgmaker --output=/usr/local/nagios/etc/mrtg.cfg --global 'Forks: 8' --global 'HtmlDir?: /usr/local/nagios/share/mrtg' --global 'ImageDir?: /usr/local/nagios/share/mrtg' --global 'Options[_]: growright,bits' --global 'LogDir?: /usr/local/nagios/var/mrtg' --global 'LogFormat?: rrdtool' --global 'IconDir?: /images/mrtg' --enablesnmpv3 --contextengineid 0x0403585C3CAE11DF8AC570B5DA7AD4FF --username floopy --authprotocol md5 --authpassword s0mep4assw0rd --privprotocol des --privpassword billy-the-kid bob:::::3 thomas:::::2

causes errors like

SNMPopen failed: Invalid argument '-privpassword' at /usr/bin/cfgmaker line 918 SNMPWALK Problem for public@thomas:::::2:v4only

at /usr/bin/cfgmaker line 918

WARNING: Skipping public@thomas:::::2 as no info could be retrieved

Tracing through the code I can see some of the snmpv3 options still being applied on the snmpv2 host. So far have been unable to trace this through the code so I came up with the attached patch - doesn't feel 'clean' as it doesn't fix the underlying problem, but it got cfgmaker working.

Attachments (1)

Net_SNMP_util.patch (786 bytes) - added by human 13 years ago.
Patch to fix '-privpassword' error against snmpv2 hosts

Download all attachments as: .zip

Change History (4)

Changed 13 years ago by human

Patch to fix '-privpassword' error against snmpv2 hosts

comment:1 Changed 13 years ago by human

duncan_j_ferguson at

comment:2 Changed 13 years ago by oetiker

thanks ... it may be a hack but a nicely formated one ... thanks ... its in r297

comment:3 Changed 13 years ago by oetiker

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.

NOTE: The content of this website is accessible with any browser. The graphical design though relies completely on CSS2 styles. If you see this text, this means that your browser does not support CSS2. Consider upgrading to a standard conformant browser like Mozilla Firefox or Opera but also Apple's Safari or KDE's Konqueror for example.