[mrtg] Re: UseRRDTool:Yes

Matt Luebke mluebke at resourcenetworks.com
Fri Jul 7 22:19:29 MEST 2000



Hello,

Search for the line that looks like this in the mrtg program:
#   use lib "path to a rrd module as instructed by RRDtool distro";

And add a line that looks something like this:

use lib "/usr/local/rrdtool/lib/perl";

(this is of course depending on where you put RRDtool)

This tells mrtg where to locate all the files needed to use RRDtool.

Hope this helps!

P.S. @INC is an environment variable that tells perl where to find all of
its modules.

--
Matt Luebke
Resource Networks

-----Original Message-----
From: mrtg-bounce at list.ee.ethz.ch [mailto:mrtg-bounce at list.ee.ethz.ch]On
Behalf Of Alfredo Zacarías
Sent: Friday, July 07, 2000 4:41 PM
To: mrtg at list.ee.ethz.ch
Subject: [mrtg] UseRRDTool:Yes



Hi everybody!

I want to storage data in RRD format, I wrote in my cfg file
'UseRRDTool:Yes'. When I try to run mrtg I obtain the next error:

mrtg-server% mrtg test.cfg
Can't locate loadable object for module RRDs in @INC (@INC contains: .
/usr/local/lib/perl5/5.00503/sun4-solaris /usr/local/lib/perl5/5.00503
/usr/local/lib/perl5/site_perl/5.005/sun4-solaris
/usr/local/lib/perl5/site_perl/5.005 .) at mrtg line 1129

I copy the file RRDs.pm from . . . /rrdtool-1.0.24/rrd/lib/perl/RRDs.pm to
the directories above

What does mean @INC? Do I need to install perl again? I´m sorry but I don´t
know a lot about Unix and Perl.

Thanks in advance.


Alfredo


--
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
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi


--
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
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list