Page 1 of 1

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

Posted: Tue Feb 16, 2021 9:30 am
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.

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

Posted: Tue Feb 16, 2021 6:15 pm
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!

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

Posted: Wed Feb 17, 2021 12:01 am
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.

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

Posted: Wed Feb 17, 2021 11:55 am
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.