[mrtg] Windows MRTG with SNMPv3 for cisco

Sergo1 ga_s at mail.ru
Thu Oct 1 09:26:44 CEST 2009


Can you help me - I have the error:
Undefined subroutine &main::snmpmapOID called at cfgmaker line 1532.
when I try to make a mrtg.cfg.

cisco 2960-48 (part of config):
snmp-server engineID remote 1234567890
snmp-server group mygroup v3 auth
snmp-server user myuser mygroup v3 auth md5 mypassword

where - ip address of the windows server with mrtg,
1234567890 - engineID

On the Windows server I:
1. Installed MRTG 2.16.2 for Windows
2. Installed Active Perl
3. Has checked up, that Active Perl normally installed, and system paths are
established normally.
4. Installed Net-SNMP-
5. Has replased defoult Usage.pm in MRTG on Usage.pm that was delivered with
6. Has downloaded gnu_regex.exe, has unpacked and has copied it to the
c:\windows\system32 folder.
7. Has made c:\usr\perl>ppm install NetSNMP.ppd
8. Has made basic test (example with Net-SNMP packet):
c:\usr\bin>perl net-snmp-test.pl
Normally passed.

9. Then create a config:
C:\mrtg-2.16.2\bin>perl cfgmaker --global "WorkDir: c:\www\mrtg" --global
"Options[_]:bits, growright" 
--enablesnmpv3 --snmp-options=:::::3 --username=myuser --authproto=MD5 
--uthpassword=mypassword --contextengineid=context 1234567890
--output mrtg.cfg

(where 1234567890-engineID, address of cisco 2960)

And we receive an error: 
Undefined subroutine &main::snmpmapOID called at cfgmaker line 1532

i.e there are no some libraries... but I don't know what to do...

For example, for Linux version we must install the Net::SNMP PERL module:
perl -MCPAN -e "install Net::SNMP"

What to do for Windows?

Thank you beforehand.

View this message in context: http://n2.nabble.com/Windows-MRTG-with-SNMPv3-for-cisco-tp3747415p3747415.html
Sent from the MRTG Users Mailinglist mailing list archive at Nabble.com.

More information about the mrtg mailing list