Nagios XI 5.6.6 Missing /var/lib/mrtg/

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios XI 5.6.6 Missing /var/lib/mrtg/

Post by tgriep »

When installing rrdcached on the server, it add an option to the MRTG config file which caused MRTG to fail.
Edit the /etc/mrtg/mrtg.cfg file and remove this line and save it.

Code: Select all

LibAdd: /opt/rrdtool-1.4.4/lib/perl/5.10.1
You may have to reinstall the rrdtool perl package by running

Code: Select all

yum reinstall rrdtool-perl
To test it, run this command

Code: Select all

LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg -debug=cfg,base,log
If you do not see this error

Code: Select all

ERROR: CFG Error in "libadd", file /etc/mrtg/mrtg.cfg line 0: /opt/rrdtool-1.4.4/lib/perl/5.10.1 is not the name of a directory
Wait for 20 minutes and see if the rrd files are created.
Be sure to check out our Knowledgebase for helpful articles and solutions!
dfmco
Posts: 257
Joined: Wed Dec 04, 2013 11:05 am

Re: Nagios XI 5.6.6 Missing /var/lib/mrtg/

Post by dfmco »

That fixed it. Do we know how this line was added?
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios XI 5.6.6 Missing /var/lib/mrtg/

Post by tgriep »

If you installed a package called rrdcached, it updates the MRTG config file so it can cache the RRD files created by MRTG.
But, the change does not fully work with MRTG and causes it to fail.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked