[mrtg] Mrtg 2.15.0, cfgmaker and SNMP v3 - help
Ed LaFrance
edl at colocationonline.info
Sat Jun 12 00:26:18 CEST 2010
Hello -
I'm having fits trying to get mrtg 2.15.0 to run against my
linux-based router using mrtg v3. I can poll the router using v1 with
no problem, but in v3 I get no joy. The router OS does support v3.
I set an engineid on the router (it's user-defined) as a ten-digit
hex string "0x0102030405". Then I set the community I'm polling on
the router as follows:
name: public
address: <monitoring station IP>
security: private
read-access: yes
write-access: no
authentication-password: <authpwd>
encryption-password: <cryptpwd>
authentication-protocol: MD5
encryption-protocol: DES
I was then able to successfully snmpwalk the router with the following command:
snmpwalk -u public -v 3 -a MD5 -A <authpwd> -l authPriv -x DES -X
<cryptpwd> <router.ip>
So I made sure that I had Net::SNMP and all dependencies installed,
then ran this command to generate a cfg file for the router:
/usr/local/mrtg-2/bin/cfgmaker --global 'Workdir: /path/to/workdir'
--global 'Options[_]: bits, growright' --ifref=descr --output
/path/to/output.cfg --enablesnmpv3 --username=public
--authprotocol=MD5 --authpassword=foobarme --privprotocol=des
--privpassword=foobarme --contextengineid=0x0102030405
--snmp-options=:::::3 <router.ip>
This is what I see on the command line as the result of that command:
--base: SNMP V3 libraries found, SNMP V3 enabled.
--base: Get Device Info on public@<router.ip>
--base: Writing /path/to/output.cfg
When I open output.cfg, this is all that's in there:
# Created by
# /usr/local/mrtg-2/bin/cfgmaker --global 'Workdir: /path/to/workdir'
--global 'Options[_]: bits, growright' --ifref=descr --output
/path/to/output.cfg --enablesnmpv3 --username=public
--authprotocol=MD5 --authpassword=foobarme --privprotocol=des
--privpassword=foobarme --contextengineid=0x0102030405
--snmp-options=:::::3 <router.ip>
### Global Config Options
# for UNIX
# WorkDir: /home/http/mrtg
# or for NT
# WorkDir: c:\mrtgdata
### Global Defaults
# to get bits instead of bytes and graphs growing to the right
# Options[_]: growright, bits
EnableIPv6: no
Workdir: /path/to/workdir
Options[_]: bits, growright
######################################################################
# System:
# Description:
# Contact:
# Location:
######################################################################
enablesnmpv3: yes
That's it. If I run cfgmaker with my usual snmp v1 commands, it works
fine and I get a properly populated file. Any idea what is wrong?
Thanks!
Ed
More information about the mrtg
mailing list