[mrtg] SNMP v3 on MRTG 2.16.2

Daniel J McDonald dan.mcdonald at austinenergy.com
Thu Feb 18 21:08:49 CET 2010


On Thu, 2010-02-18 at 11:45 -0800, stevenwmn wrote:
> I checked the script and line 368 is trying to exec a variable called
> startargs, but that seem to be the recovery. I also checked line 2202, the
> original error and it says this
>         @ret = snmpget($targtemp,$$target{snmpoptions}, at snmpoids);
> 
> It's almost as if the net snmp isn't installed correctly. 

Try this perl one-liner to check:
working example:
[~]$ perl -e 'use Net::SNMP'
[~]$ 

non-working example:
[~]$ perl -e 'use Net::SNMP'
Can't locate Net/SNMP.pm in @INC (@INC
contains: /usr/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/5.10.0/i386-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl .) at -e line 1.
BEGIN failed--compilation aborted at -e line 1.


> I do have the
> Net_SNMP_util.pm file in the lib\mrtg2 directory though.

Net_SNMP_util.pm uses Net::SNMP for the actual work.  Net::SNMP uses
binary libraries from net_snmp


-- 
Daniel J McDonald, CCIE # 2495, CISSP # 78281, CNX
www.austinenergy.com



More information about the mrtg mailing list