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: | ||
Cc: |
Description
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)
Change History (4)
Changed 13 years ago by human
comment:1 Changed 13 years ago by human
duncan_j_ferguson at yahoo.co.uk
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
Patch to fix '-privpassword' error against snmpv2 hosts