Graph not working - Could not find RRDs.pm

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
gm_rajkumar
Posts: 187
Joined: Tue Feb 28, 2012 7:08 am
Location: CA, USA

Graph not working - Could not find RRDs.pm

Post 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.
You do not have the required permissions to view the files attached to this post.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Graph not working - Could not find RRDs.pm

Post 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?:

Code: Select all

service rrdcached status
gm_rajkumar
Posts: 187
Joined: Tue Feb 28, 2012 7:08 am
Location: CA, USA

Re: Graph not working - Could not find RRDs.pm

Post 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!!
You do not have the required permissions to view the files attached to this post.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Graph not working - Could not find RRDs.pm

Post 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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
gm_rajkumar
Posts: 187
Joined: Tue Feb 28, 2012 7:08 am
Location: CA, USA

Re: Graph not working - Could not find RRDs.pm

Post 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.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Graph not working - Could not find RRDs.pm

Post 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!
gm_rajkumar
Posts: 187
Joined: Tue Feb 28, 2012 7:08 am
Location: CA, USA

Re: Graph not working - Could not find RRDs.pm

Post by gm_rajkumar »

Hi,

I have enclosed the mrtg.cfg. Kindly look into this.
You do not have the required permissions to view the files attached to this post.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Graph not working - Could not find RRDs.pm

Post 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
Locked