Page 1 of 1
.rrd file does not exit
Posted: Wed Aug 13, 2014 1:23 am
by subashcbe
Hi All,
We are unable to get the Interface bandwidth though MRTG. I am getting the below error:
Code: Select all
/var/lib/mrtg/10.56.240.11_2.rrd does not exist.
Nagios Version : Nagios XI 2014R1.3
The Hosts are added using the Network Switch Router Wizard.
Please let me how to to resolve this. We are getting the same for all the newly added hosts.
Re: .rrd file does not exit
Posted: Wed Aug 13, 2014 5:05 pm
by tmcdonald
Let's check some permissions and try to find that file:
Code: Select all
ls -ld /var/lib/mrtg/
find / -name "10.56.240.11_2.rrd"
Re: .rrd file does not exit
Posted: Wed Aug 20, 2014 11:07 pm
by subashcbe
Hi,
Sorry for the delay. Please find the below output.
Code: Select all
[root@localhost ~]# ls -ld /var/lib/mrtg/
drwxr-xr-x 2 root root 36864 Jul 18 04:41 /var/lib/mrtg/
Code: Select all
[root@localhost ~]# find / -name "10.56.240.11_2.rrd"
[root@localhost ~]#
Re: .rrd file does not exit
Posted: Thu Aug 21, 2014 5:09 pm
by slansing
Is MRTG even running through your config file? Have you verified you have no major errors in the .cfg's that would possibly stop it from getting to that networking device? How many networking devices + ports on those devices are you monitoring that were set up with this wizard? What is the output of:
Code: Select all
LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg –check
Re: .rrd file does not exit
Posted: Fri Aug 22, 2014 10:53 am
by subashcbe
Hi Slansing,
Please see the below output.
Code: Select all
[root@localhost ~]# LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg .check
[root@localhost ~]#
There are no major errors in the .cfg file. We are monitoring around 50 devices and all the ports. The port count varies from device to device from 2 to more than 30 ports.
Below is the output for "/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg"
Code: Select all
[root@localhost ~]# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Nagios Core 4.0.7
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 06-03-2014
License: GPL
Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Read object config files okay...
Running pre-flight check on configuration data...
Checking objects...
Warning: Service 'Uptime' on host '172.21.41.249' has a notification interval less than its check interval! Notifications are only re-sent after checks are made, so the effective notification interval will be that of the check interval.
Checked 3765 services.
Checked 55 hosts.
Checked 8 host groups.
Checked 1 service groups.
Checked 3 contacts.
Checked 2 contact groups.
Checked 118 commands.
Checked 9 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 55 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 9 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 1
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
Re: .rrd file does not exit
Posted: Fri Aug 22, 2014 11:02 am
by tmcdonald
The nagios config looks fine, but you mistyped a char in the MRTG check. It should be:
Code: Select all
LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg -check
Note the "-" instead of the "." before check.
Re: .rrd file does not exit
Posted: Fri Aug 22, 2014 9:10 pm
by subashcbe
Hi tmcdonald,
Please see the below output.
Code: Select all
[root@localhost ~]# LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg -check
[root@localhost ~]#
Re: .rrd file does not exit
Posted: Mon Aug 25, 2014 12:07 pm
by tmcdonald
Was this a new install starting at 2014r1.3 or did you upgrade? If you upgraded, which version were you running before?
Also, was this a system you configured and then installed Nagios XI from source or was it one of our VMs? If you installed from source, what OS/version are you using? Was it a minimal install?