[mrtg] Re: Problems with cfgmaker using SNMPv3

Daniel J McDonald dan.mcdonald at austinenergy.com
Tue Nov 21 13:16:24 MET 2006


On Tue, 2006-11-21 at 10:06 +0000, Dunc wrote:
> Hi folks,
> Please excuse me if it's just me flailing, but I think I've tried all
> combinations, and simply cannot get cfgmaker to listen to my username
> argument.

Yes, somewhere between 2.13.1 and 2.14.7 it broke.

The patch (against 2.14.7) to correct this behavior  is:
[root at ldap bin]# diff -u cfgmaker /usr/bin/cfgmaker         
--- cfgmaker    2006-11-03 09:40:30.000000000 -0600
+++ /usr/bin/cfgmaker   2006-11-14 17:56:20.000000000 -0600
@@ -85,7 +85,7 @@
     }
     # Check for SNMP V3
     #
-       if (lc($opt{enablesnmpv3}) eq "yes") {
+       if (exists($opt{username}) or lc($opt{enablesnmpv3}) eq "yes") {
               if  (eval {local $SIG{__DIE__};require Net_SNMP_util;})
{
                    import Net_SNMP_util;
                    debug('base', "SNMP V3 libraries found, SNMP V3
enabled.");
@@ -1201,7 +1201,7 @@
         'output=s',
         'global=s@',
         'enable-ipv6',
-        'enable-snmpv3',
+        'enablesnmpv3=s',
         'use-16bit',
        'zero-speed=s',
         '<>', $addrouter_ornf) or pod2usage(2);



This patch will be included in the next version of MRTG.


> 
> It works fine using SNMPv1, but please see my attached text file of my
> attempts with version 3.
> 
> I found a distinct lack of anyone getting this problem when googling.

There have been several reports on this list.  I only recently upgraded
from one of my custom-hacked versions to see what was in the release
version.

-- 
Daniel J McDonald, CCIE # 2495, CISSP # 78281, CNX
Austin Energy
http://www.austinenergy.com

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://lists.ee.ethz.ch/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the mrtg mailing list