Page 1 of 3
rrd file does not exist
Posted: Mon Dec 02, 2019 11:06 am
by nms
To whom it may concern,
We have upgraded our Nagios XI to 5.6.7. After the upgrade, when we create a new bandwidth utilization monitor using the configuration wizard, it states that the the rrd file does not exist. Even when we try to add a bandwidth utilization monitor (using configuration wizard) to an existing router/switch, it still returns as rrd file does not exist.
Can you kindly give us some indicators as to which could be the issue?
Re: rrd file does not exist
Posted: Mon Dec 02, 2019 11:51 am
by scottwilkerson
If you just configured this, it is normal as it takes time for MRTG to do the first polling, however if you still see the message after 15 minutes that would be abnormal.
Re: rrd file does not exist
Posted: Tue Dec 03, 2019 4:58 am
by nms
Hi Scott,
Indeed, however, we raised this ticket since the issue remains there.
Even though you try to create the rrd by hand, the mrtg does not generate anything, thus the BW measurement remains a zero.
We noticed this happening after the latest upgrade (5.6.7) either when creating a network device from scratch and even when adding new interfaces to an existing device.
Unfortunately, this is a show stopper for us, since we cannot continue to create any bw measurements.
Attached is our profile.
Attached is also MRTG check with command:
Code: Select all
LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg .check
Thanks in advance
Re: rrd file does not exist
Posted: Tue Dec 03, 2019 7:32 am
by scottwilkerson
Can you show the output of the following
Code: Select all
ls -al /var/lib/mrtg/mrtg*
ls -ld /var/lib/mrtg
Re: rrd file does not exist
Posted: Tue Dec 03, 2019 8:39 am
by nms
Hi Scott,
[root@am1-sha-nagios2-p ~]# ls -al /var/lib/mrtg/mrtg*
-rwxrwxr-x 1 apache nagios 0 Dec 3 14:38 /var/lib/mrtg/mrtg.ok
[root@am1-sha-nagios2-p ~]#
[root@am1-sha-nagios2-p ~]# ls -ld /var/lib/mrtg
drwxrwxr-x 3 apache nagios 348160 Dec 3 14:38 /var/lib/mrtg
Thanks
Re: rrd file does not exist
Posted: Tue Dec 03, 2019 9:11 am
by scottwilkerson
Those look ok, how about the following
Re: rrd file does not exist
Posted: Tue Dec 03, 2019 9:16 am
by nms
Hi,
Code: Select all
[root@am1-sha-nagios2-p log]# grep mrtg cron|tail -10
Dec 3 14:30:01 am1-sha-nagios2-p CROND[22091]: (root) CMD (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)
Dec 3 14:35:01 am1-sha-nagios2-p CROND[9654]: (root) CMD (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)
Dec 3 14:40:01 am1-sha-nagios2-p CROND[30843]: (root) CMD (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)
Dec 3 14:45:01 am1-sha-nagios2-p CROND[21584]: (root) CMD (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)
Dec 3 14:50:01 am1-sha-nagios2-p CROND[9719]: (root) CMD (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)
Dec 3 14:55:01 am1-sha-nagios2-p CROND[30655]: (root) CMD (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)
Dec 3 15:00:01 am1-sha-nagios2-p CROND[19996]: (root) CMD (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)
Dec 3 15:05:01 am1-sha-nagios2-p CROND[8258]: (root) CMD (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)
Dec 3 15:10:01 am1-sha-nagios2-p CROND[29010]: (root) CMD (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)
Dec 3 15:15:01 am1-sha-nagios2-p CROND[17490]: (root) CMD (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)
Rgds
Re: rrd file does not exist
Posted: Tue Dec 03, 2019 9:31 am
by scottwilkerson
It it just a specific host/IP that's not getting created?
Can you run the following and capture the output
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
Re: rrd file does not exist
Posted: Tue Dec 03, 2019 9:55 am
by nms
Hi,
It it just a specific host/IP that's not getting created?
No, it doesn't seem to be the case. We did not try on multiple devices but it occurred on a new device and it happened also on existing devices having interfaces already being measured.
Note: Existing ones already running before upgrade work perfectly. Any new additions seem to have this issue.
Attached is the output for the MRTG check. I noticed some permission denied errors.
MRTG_Check.txt
Re: rrd file does not exist
Posted: Tue Dec 03, 2019 10:13 am
by scottwilkerson
Lets run the following to fix the permissions:
Code: Select all
chown apache:nagios -R /var/lib/mrtg
chmod ug+rwx -R /var/lib/mrtg