rrd file does not exist

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
nms
Posts: 222
Joined: Wed Sep 28, 2016 9:35 am

rrd file does not exist

Post 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?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: rrd file does not exist

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
nms
Posts: 222
Joined: Wed Sep 28, 2016 9:35 am

Re: rrd file does not exist

Post 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
Last edited by scottwilkerson on Tue Dec 03, 2019 7:31 am, edited 1 time in total.
Reason: Files remove and shared with team
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: rrd file does not exist

Post by scottwilkerson »

Can you show the output of the following

Code: Select all

ls -al /var/lib/mrtg/mrtg*
ls -ld /var/lib/mrtg
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
nms
Posts: 222
Joined: Wed Sep 28, 2016 9:35 am

Re: rrd file does not exist

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: rrd file does not exist

Post by scottwilkerson »

Those look ok, how about the following

Code: Select all

grep mrtg /var/log/cron|tail -10
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
nms
Posts: 222
Joined: Wed Sep 28, 2016 9:35 am

Re: rrd file does not exist

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: rrd file does not exist

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
nms
Posts: 222
Joined: Wed Sep 28, 2016 9:35 am

Re: rrd file does not exist

Post 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
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: rrd file does not exist

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked