[mrtg] Perl Paths

John Heyer john at arnie.jfive.com
Thu Nov 4 23:51:12 MET 1999


I'm trying to get the PM3Lines.pl script to work with MRTG 2.7.4 in
FreeBSD 3.2.  It works great from the command line, but when I try to run
it from a config file I get 

Can't locate SNMP_Session.pm in @INC (@INC contains:
/usr/libdata/perl/5.00503/mach /usr/libdata/perl/5.00503
/usr/local/lib/perl5/site_perl/5.005/i386-freebsd
/usr/local/lib/perl5/site_perl/5.005 .) at /usr/local/mrtg/run/PM3Lines.pl
line
26.
BEGIN failed--compilation aborted at /usr/local/mrtg/run/PM3Lines.pl line
26.
Could not get any data from external command
'/usr/local/mrtg/run/PM3Lines.pl

I tried adding push(@INC, "/usr/local/mrtg/run"); to the perl script, but
mrtg still can't find SNMP_Session.pm.  How do I get MRTG to add
/usr/local/mrtg/run to its path?

--
"Your illogical approach ... does have its advantages."
				-- Spock, after being Checkmated by Kirk

--
* To unsubscribe from the mrtg mailing list, send a message with the
  subject: unsubscribe to mrtg-request at list.ee.ethz.ch
* The mailing list archive is at http://www.ee.ethz.ch/~slist/mrtg


More information about the mrtg mailing list