LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-02-2006, 12:08 AM   #1
shipon_97
Member
 
Registered: Oct 2005
Location: Bangladesh
Posts: 504

Rep: Reputation: 31
Smile Network traffic Grapher usinf RRDTool


Dear Friends ,

I want to make a "Network traffic Grapher" using RRDTool and Hence i am using the following websites :

martybugs.net/linux/rrdtool/ and
http://martybugs.net/linux/rrdtool/traffic.cgi

Now I have install successfully using the first web link . Using 2nd web link , When i am going to make "rrd_traffic.pl"
then my configuration is the following way , Here i mention that i am using just One Ethernet(Eth0) :



In this moment when i run the script then it shows the following Error :

Can't locate RRDs.pm in @INC (@INC contains: /usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at ./rrd_traffic.pl line 8.
BEGIN failed--compilation aborted at ./rrd_traffic.pl line 8.


Now i can't understand what is the problem . I can try in different way to make different changes , But i become fail ....So plz give me some clue for helping me .plz help............... Thx..
 
Old 05-03-2006, 09:43 AM   #2
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Where is this file on your system?
Code:
slocate RRDs.pm
From the link you've given:
Quote:
The RRDTool Perl library simplifies things when using RRDTool from a Perl script, so to compile and install the Perl library for RRDTool:

Code:
make site-perl-install
Did this work?
 
Old 11-15-2006, 07:48 AM   #3
dragunu
Member
 
Registered: Apr 2006
Distribution: Fedora Core 3
Posts: 47

Rep: Reputation: 15
hey. i have the same problem as the OP. however it seems the OP did not reply back. pfff, not even with a thanks. anyway,

i did run that command

Code:
make site-perl-install
however the problem still persists. any suggestions?

many thanks
drag
 
Old 11-18-2006, 07:37 AM   #4
SebVT
LQ Newbie
 
Registered: Jun 2005
Location: UK
Posts: 6

Rep: Reputation: 0
I installed RRDTool etc. using the instructions on the creator's website:
http://oss.oetiker.ch/rrdtool/doc/rrdbuild.en.html
These instructions are very good, although you may have more success installing the dependencies using yum rather than building from source.

After I installed RRDTool the perl module was in /usr/local/rrdtool/lib/perl/5.8.5/i386-linux-thread-multi (on a CentOS 4 server).

If you run #perl -V you will see your @INC array listed - this is where your perl installation will look by default for any extra modules you try to load into your scripts. If the location of your RRDs.pm is not in the list, then you need to define it's location specifically in your perl scripts:

#in my case:
use lib '/usr/local/rrdtool/lib/perl/5.8.5/i386-linux-thread-multi'

Personally I use mrtg + rrdtool + mrtg-rrd.cgi (see http://oss.oetiker.ch/rrdtool/doc/rrdbuild.en.html for more info)

Hope this helps.
 
Old 11-19-2006, 05:27 AM   #5
dragunu
Member
 
Registered: Apr 2006
Distribution: Fedora Core 3
Posts: 47

Rep: Reputation: 15
thx a lot. ill give it a try
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Network Traffic Brian031168 Linux - Networking 3 12-02-2005 11:18 PM
When the network traffic increase over some limit network works interruptedly therrman Linux - Hardware 0 11-15-2005 02:23 AM
rrdtool total traffic count burn0ut Linux - Networking 3 02-02-2005 07:56 AM
How to allow traffic from One Network to Other??? cranium2004 Linux - Networking 1 01-06-2005 12:17 PM
Network Traffic BxBoy Programming 3 02-24-2003 08:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration