/var/lib/mrtg/10.64.0.2_562.rrd does not exist.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
dshearon
Posts: 64
Joined: Tue Nov 17, 2015 9:38 am

/var/lib/mrtg/10.64.0.2_562.rrd does not exist.

Post by dshearon »

Good morning guys,

We are running into an issue with newly created services. We used the configuration wizard to monitor a network switch and checked the boxes next to the port we choose to monitor. After completion several of the services are getting an error close to the one below. I have confirmed that the file is in fact missing.

/var/lib/mrtg/10.64.0.2_562.rrd does not exist.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: /var/lib/mrtg/10.64.0.2_562.rrd does not exist.

Post by rkennedy »

Can you post a screenshot showing us where you are seeing that error?
Former Nagios Employee
dshearon
Posts: 64
Joined: Tue Nov 17, 2015 9:38 am

Re: /var/lib/mrtg/10.64.0.2_562.rrd does not exist.

Post by dshearon »

Here is where we are seeing it.

Capture.PNG
You do not have the required permissions to view the files attached to this post.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: /var/lib/mrtg/10.64.0.2_562.rrd does not exist.

Post by rkennedy »

Thanks for that. To clarify, which wizard did you use to set these hosts / services up? Also, what version is it? (Admin -> Manage Config Wizards)
Former Nagios Employee
dshearon
Posts: 64
Joined: Tue Nov 17, 2015 9:38 am

Re: /var/lib/mrtg/10.64.0.2_562.rrd does not exist.

Post by dshearon »

We are using the wizard listed below.

Network Switch / Router
Monitor a network switch or router.
Version: 2.1.9
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: /var/lib/mrtg/10.64.0.2_562.rrd does not exist.

Post by rkennedy »

How often are these checks running? I tried to replicate this, but I was unable to. It seems the data is not being created though. It should only show this error if the check has ran once, or the RRD data is not creating properly.

Also, what are the results of these two commands?

Code: Select all

ls -l /var/lib
ls -l /var/lib/mrtg/
Former Nagios Employee
dshearon
Posts: 64
Joined: Tue Nov 17, 2015 9:38 am

Re: /var/lib/mrtg/10.64.0.2_562.rrd does not exist.

Post by dshearon »

We are running checks once every 5 minutes unless there is an issue and then once every minute.
Capture_1.PNG

Capture_2.PNG
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: /var/lib/mrtg/10.64.0.2_562.rrd does not exist.

Post by tgriep »

Can you log as root to the XI server, run the following commands and post the output?

Code: Select all

LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg --lock-file /var/lock/mrtg/mrtg_l --confcache-file /var/lib/mrtg/mrtg.ok
This should should show us any errors creating / generating the .rrd files needed for the bandwidth check.

Then run the following and post it too.

Code: Select all

ps -ef
ls -l /etc/mrtg/conf.d
I want to see of the config files were created for mrtg.
Be sure to check out our Knowledgebase for helpful articles and solutions!
dshearon
Posts: 64
Joined: Tue Nov 17, 2015 9:38 am

Re: /var/lib/mrtg/10.64.0.2_562.rrd does not exist.

Post by dshearon »

Here you go. I could not screen capture the entire output from the second command, let me know if you need another section.
Capture_3.PNG
Capture_4.PNG
Capture_5.PNG
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: /var/lib/mrtg/10.64.0.2_562.rrd does not exist.

Post by tgriep »

Can you run the following and post the output here?

Code: Select all

time LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg
ls -l /var/lock/mrtg/
In the capture you did provide, someone on February 16th is deleting some rrd files, do you know why?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked