[mrtg] Re: perl / SNMP_util

Greg greg at westmont.edu
Wed May 3 01:19:44 MEST 2000


first, you should copy SNMP_util.pm into one of the locations listed in
@INC to fix the error

then, to stop getting the emails, add the following code to your
crontab....
2> /dev/null 2> /dev/null this will send and errors and output to the
bitbucket...

so the crontab entry will look like this:

/usr/mrtg/run/mrtg /usr/mrtg/run/portmas.cfg 2> /dev/null 2> /dev/null

take a look at my portmaster 3 stuff at
http://zulu.westmont.edu/routers/hello ;)

good luck.
greg


Matthew Chipman wrote:
> 
> As a new user of MRTG, i have found this to be an invaluable tool.
> 
> While probing the portmaster 3 attempting to get the modem usage, i have
> recieved this mail as root. (every five minutes)
> 
> If anyone can point me in the right direction, it would be appreciated.  I
> am using the perl scripts supplied by Gehri Grimaud
> http://thingy.usu.edu/network-stats/portmaster.html        Particularly i
> don't know what @INC is !
> 
> regards
> 
> Matt
> 
> Here are the details
> 
> Date: Tue, 2 May 2000 16:45:04 +1000
> From: Cron Daemon <root at localhost.localdomain>
> To: root at localhost.localdomain
> Subject: Cron <root at lbox> /usr/mrtg/run/mrtg /usr/mrtg/run/portmas.cfg
> 
> Can't locate SNMP_util.pm in @INC (@INC contains:
> /usr/lib/perl5/5.00503/i386-linux /usr/lib/perl5/5.00503
> /usr/lib/perl5/site_perl/5.005/i386-linux /usr/lib/perl5/site_perl/5.005 .)
> at
> /usr/mrtg/run/PM_count line 17.
> BEGIN failed--compilation aborted at /usr/mrtg/run/PM_count line 17.
> 
> --
> Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
> Archive     http://www.ee.ethz.ch/~slist/mrtg
> FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org

-- 
____________________________________
             Greg Lawler
        Network Administrator
  grinch at westmont.edu 805.565.7249
  http://zulu.westmont.edu/routers
____________________________________

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



More information about the mrtg mailing list