Page 1 of 1

/var/lib/mrtg/10.42.250.2_16.rrd does not exist

Posted: Tue Jun 21, 2016 10:30 am
by jas150
I have added a number of devices using the add network switch/router wizard without any issues, however when i added the last couple of switches i noticed that the bandwidth monitors on all of the interfaces, for these last few devices, are throwing the error /var/lib/mrtg/10.42.250.2_16.rrd does not exist.

Any assistance would be greatly appreciated.

Re: /var/lib/mrtg/10.42.250.2_16.rrd does not exist

Posted: Tue Jun 21, 2016 12:52 pm
by bwallace
Note that if a yum update was run on your server recently, that may have downgraded the MRTG package to an older version that will not function with the XI server.

If applicable, the link below provides instructions for reinstalling the newer MRTG package which should fix the issue.
https://support.nagios.com/kb/article.php?id=511
*After following the instructions, it will take 15 minutes for those bandwidth graphs to populate.

If not, run the following commands and post the output:

Code: Select all

ls -l /var/lib/mrtg
LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg

Re: /var/lib/mrtg/10.42.250.2_16.rrd does not exist

Posted: Wed Jun 22, 2016 8:17 am
by jas150
Hi bwallace
Thanks for your response.
I have version mrtg-2.17.4 of mrtg installed.

I've attached the output from the commands mentioned.
nagios xi.txt
Cheers

Re: /var/lib/mrtg/10.42.250.2_16.rrd does not exist

Posted: Wed Jun 22, 2016 9:58 am
by bwallace
Thanks for the file, pretty sure the problem is that you have 1000+ cfg files in the /etc/mrtg/conf.d/ directory. When MRTG runs it has to open all the files and it hits the open file limits in Linux.
The 1st hint of this is the error at the bottom of your text file:
ERROR: unable to open include file: /etc/mrtg/conf.d/xx.xx.xxx.x_9.cfg

Follow the steps in this KB doc to remedy (all you need to do is increase the open file limit setting) -- definitely let us know of the outcome.
https://support.nagios.com/kb/article.php?id=512

Re: /var/lib/mrtg/10.42.250.2_16.rrd does not exist

Posted: Thu Jun 23, 2016 5:05 am
by jas150
Yep.... Spot on

Upped the file limits as suggested and the bandwidth monitors started operating. One issue that resulted from this was the additional data from the bandwidth sensors filled my disk. This has now been extended and all looks good.

Thanks for your help

Re: /var/lib/mrtg/10.42.250.2_16.rrd does not exist

Posted: Thu Jun 23, 2016 9:08 am
by mcapra
Is it ok if we lock this thread and mark the issue as resolved?

Re: /var/lib/mrtg/10.42.250.2_16.rrd does not exist

Posted: Thu Jun 23, 2016 9:29 am
by jas150
Absolutely....

Thanks again