Page 1 of 2

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

Posted: Mon Feb 22, 2016 10:32 am
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.

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

Posted: Mon Feb 22, 2016 10:36 am
by rkennedy
Can you post a screenshot showing us where you are seeing that error?

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

Posted: Mon Feb 22, 2016 10:39 am
by dshearon
Here is where we are seeing it.

Capture.PNG

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

Posted: Mon Feb 22, 2016 2:59 pm
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)

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

Posted: Tue Feb 23, 2016 11:43 am
by dshearon
We are using the wizard listed below.

Network Switch / Router
Monitor a network switch or router.
Version: 2.1.9

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

Posted: Tue Feb 23, 2016 5:24 pm
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/

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

Posted: Thu Feb 25, 2016 10:27 am
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

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

Posted: Thu Feb 25, 2016 3:12 pm
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.

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

Posted: Thu Feb 25, 2016 3:55 pm
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

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

Posted: Thu Feb 25, 2016 4:45 pm
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?