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

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jas150
Posts: 4
Joined: Fri May 13, 2016 10:10 am
Location: Glasgow UK

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

Post 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.
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

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

Post 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
Be sure to check out the Knowledgebase for helpful articles and solutions!
jas150
Posts: 4
Joined: Fri May 13, 2016 10:10 am
Location: Glasgow UK

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

Post 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
You do not have the required permissions to view the files attached to this post.
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

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

Post 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
Be sure to check out the Knowledgebase for helpful articles and solutions!
jas150
Posts: 4
Joined: Fri May 13, 2016 10:10 am
Location: Glasgow UK

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

Post 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
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

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

Post by mcapra »

Is it ok if we lock this thread and mark the issue as resolved?
Former Nagios employee
https://www.mcapra.com/
jas150
Posts: 4
Joined: Fri May 13, 2016 10:10 am
Location: Glasgow UK

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

Post by jas150 »

Absolutely....

Thanks again
Locked