Page 2 of 2

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

Posted: Mon Dec 09, 2019 3:45 pm
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.

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

Posted: Wed Dec 11, 2019 10:34 am
by dfmco
That fixed it. Do we know how this line was added?

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

Posted: Wed Dec 11, 2019 11:26 am
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.