/var/lib/mrtg/10.*.*.*_828.rrd does not exist.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
pratikmehta003
Posts: 105
Joined: Thu Apr 09, 2020 7:35 am

/var/lib/mrtg/10.*.*.*_828.rrd does not exist.

Post by pratikmehta003 »

Hi Team,

I have discovered Aruba switch on Nagios [version 8.5.1], I see /var/lib/mrtg/10.*.*.*_828.rrd does not exist. error for interface bandwidth.

If there is a device A and has 3 interfaces [interface1,interface2,interface3] then interface1 and interface2 is working fine but interface3 ends up with the error mentioned above.

If anyone has come across similar case please let me know.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: /var/lib/mrtg/10.*.*.*_828.rrd does not exist.

Post by ssax »

Please run these commands as root and then PM me the resulting /tmp/mrtg.txt file so I can review what MRTG is seeing:

Code: Select all

cat /etc/cron.d/mrtg > /tmp/mrtg.txt
ls -ld /var/lib/mrtg >> /tmp/mrtg.txt
ls -l /var/lib/mrtg >> /tmp/mrtg.txt
LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg -debug=cfg,base,log &>> /tmp/mrtg.txt
LANG=C LC_ALL=C /usr/bin/mrtg &>> /tmp/mrtg.txt
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 &>> /tmp/mrtg.txt
{ time LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg 2>1 ; } 2>> /tmp/mrtg.txt
Thank you!
pratikmehta003
Posts: 105
Joined: Thu Apr 09, 2020 7:35 am

Re: /var/lib/mrtg/10.*.*.*_828.rrd does not exist.

Post by pratikmehta003 »

Hi Ssax,

Here is the o/p.

Moderator's Note: The mrtg.txt has been shared with the support team but has been removed from the public forum.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: /var/lib/mrtg/10.*.*.*_828.rrd does not exist.

Post by ssax »

This was resolved on the remote session, we had to resetup the config file in /etc/mrtg/conf.d for about 10 hosts because the snmp community changed. The are a couple that are administratively down that won't create the RRD file because that is the default for what MRTG does, you can either disable those services, or uncomment the port in /etc/mrtg/conf.d/X.X.X.X.cfg and it will starting building the RRDs for that port.
Locked