Page 1 of 1

/var/lib/mrtg/10.252.31.8_10103.rrd does not exist.

Posted: Thu Feb 18, 2021 10:40 am
by radoslaw95
Hello, I am currently getting this error on a few devices. It is only happening for monitoring the bandwidth for some interfaces and some port channels on my cisco switches. The interfaces are being checked for both status and bandwidth. The status check is ok, but on that same interface for the bandwidth check i am getting an error saying /var/lib/mrtg/10.252.31.22_10149.rrd does not exist.

This is happening for a number of interfaces. Is it possible to get a step by step process to resolve this.

Re: /var/lib/mrtg/10.252.31.8_10103.rrd does not exist.

Posted: Thu Feb 18, 2021 5:30 pm
by vtrac
Hi radoslaw95,
Looks like there might be some changes recently that might have broken the mrtg generation of ".rrd" files, which also explain why the "/var/lib/mrtg/10.252.31.22_10149.rrd" file is missing.

There is a cron job called "mrtg" which setup to run every five minutes on your XI system .... here's an example of mrtg's cron:
[root@vt-nagiosxi-62 ~]# cat /etc/cron.d/mrtg

Code: Select all

*/5 * * * * root LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg --lock-file /var/lib/mrtg/mrtg.lock --confcache-file /var/lib/mrtg/mrtg.ok --user=nagios --group=nagios
Please try run that command manually on your Nagios XI prompt as "root" (NOTE, this is a ONE line command):

Code: Select all

LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg --lock-file /var/lib/mrtg/mrtg.lock --confcache-file /var/lib/mrtg/mrtg.ok --user=nagios --group=nagios
I believe you will see lot of errors .... capture those errors and post here.

Also, please run and update output of your "/var/lib/mrtg" folder:

Code: Select all

ls -la /var/lib/mrtg/
Also, could you please send me the system "profile.zip"?

To send us your system profile:
Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Save the profile.zip file and share in a private message or upload it to the post/ticket.


Regards,
Vinh