Page 1 of 1
Graph not working - Could not find RRDs.pm
Posted: Wed May 22, 2013 12:41 am
by gm_rajkumar
Hi,
I have recently facing issue in Graphs, while i'm running this below command (enclosed the screenshot for your reference)
#LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg
ERROR: could not find RRDs.pm. Use LibAdd: in mrtg.cfg to help mrtf find RRDs.pm
You have new mail in /var/spool/mail/root
Let me know whats wrong on it and if you need further details over this. thanks in advance!!
Regards,
Raj.
Re: Graph not working - Could not find RRDs.pm
Posted: Wed May 22, 2013 11:29 am
by slansing
Run the following to help find the RRDs.pm directory:
Code: Select all
yum install mlocate -y
update db
locate RRDs.pm
then add the directory found, near the top of the mrtg.cfg file replacing the directory below with the one returned by locate:
Code: Select all
LibAdd: /opt/rrdtool-1.4.4/lib/perl/5.10.1
Did you install RRDcached at any point?:
Re: Graph not working - Could not find RRDs.pm
Posted: Wed May 22, 2013 11:29 pm
by gm_rajkumar
I have tried those commands and getting the below results. Herewith, i have enclosed the results for your reference.
I am not able to see the performance graphs for any of hosts/switches/devices.
kindly let me know if you need further over this. thanks!!
Re: Graph not working - Could not find RRDs.pm
Posted: Thu May 23, 2013 11:59 am
by sreinhardt
Please post the text of slansings commands.
Code: Select all
yum install mlocate -y
update db
locate RRDs.pm
Then replace the line in mrtg.conf like so:
Code: Select all
Original:
LibAdd: /opt/rrdtool-1.4.4/lib/perl/5.10.1
New:
LibAdd: /path/found/from/locate/command/above
Please send text output from the locate command and what you have changed or think needs to change in mrtg.conf.
Re: Graph not working - Could not find RRDs.pm
Posted: Thu May 23, 2013 9:52 pm
by gm_rajkumar
Hi,
I have found this file below path and updated in the mrtg.cfg file, let me know if you need further over this..
#locate RRDs.pm
/opt/rrdtool-1.4.4/lib/perl/5.8.8/i386-linux-thread-multi/RRDs.pm
Regards,
Raj.
Re: Graph not working - Could not find RRDs.pm
Posted: Fri May 24, 2013 12:23 pm
by slansing
Can you show us where you added the LibAdd line? It is highly important you share the output of any changes we make so that we can gather the correct information and not ask you to go back for it. Thanks!
Re: Graph not working - Could not find RRDs.pm
Posted: Sun May 26, 2013 11:37 pm
by gm_rajkumar
Hi,
I have enclosed the mrtg.cfg. Kindly look into this.
Re: Graph not working - Could not find RRDs.pm
Posted: Tue May 28, 2013 10:40 am
by slansing
Lets check the mrtg.cfg file, can you return any output from running this:
Code: Select all
LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg –check