.rrd file does not exit

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
subashcbe
Posts: 9
Joined: Thu Jul 17, 2014 4:30 pm

.rrd file does not exit

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: .rrd file does not exit

Post 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"
Former Nagios employee
subashcbe
Posts: 9
Joined: Thu Jul 17, 2014 4:30 pm

Re: .rrd file does not exit

Post 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 ~]#
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: .rrd file does not exit

Post 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
subashcbe
Posts: 9
Joined: Thu Jul 17, 2014 4:30 pm

Re: .rrd file does not exit

Post 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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: .rrd file does not exit

Post 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.
Former Nagios employee
subashcbe
Posts: 9
Joined: Thu Jul 17, 2014 4:30 pm

Re: .rrd file does not exit

Post 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 ~]#
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: .rrd file does not exit

Post 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?
Former Nagios employee
Locked