Page 1 of 2

RRD Files Do Not Exist...but they do.

Posted: Fri Jan 17, 2014 10:31 am
by mikew
I am getting .rrd files do not exist....but they do exist.

They do exist and when I removed them mrtg replaces them. Permissions are correct and they are being updated. But the web interface says they do not exist. Status is OK.


Services have been completely removed, the scan files for mrtg have been removed and the.rrd files in /var/lib/mrtg/ have been removed.

I have cleaned up mrtg.cfg so no errors exist when I run:
env LANG=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg

The service checks are correct in the web interface and in the /usr/local/nagios/etc/services.

This is all occuring on random switches and routers.

Using SNMP v2c on Centos 6.x and XI version 2012R2.5.

Re: RRD Files Do Not Exist...but they do.

Posted: Fri Jan 17, 2014 3:09 pm
by slansing
What are the permissions on said .rrd's, and their path?

Re: RRD Files Do Not Exist...but they do.

Posted: Fri Jan 17, 2014 3:35 pm
by mikew
As I mentioned the path for all the rrd is /var/lib/mrtg and the permissions are root:root just like all of them.

The rrds build correctly and repopulate, the problem is the web interface says they do not exist.

I have removed the rrd, the temp files for the rrd scan, the checks and edited the mrtg.cfg file and restarted Nagios and then added them again and the same thing happens.

The rrds are exactly the same as all the others that do work. There are no errors in the mrtg.cfg. Here is one example in mrtg.cfg that is just like all of the but does not work.

Code: Select all

### Interface 1 >> Descr: 'mgmt' | Name: 'mgmt' | Ip: '' | Eth: '30-78-30-30-31-62-31-37-66-66-65-30-34-36' ###

Target[192.168.3.2_1]: 1:[email protected]:::::2
SetEnv[192.168.3.2_1]: MRTG_INT_IP="" MRTG_INT_DESCR="mgmt"
MaxBytes[192.168.3.2_1]: 125000000
Title[192.168.3.2_1]: Traffic Analysis for 1 -- xxxxxxx
PageTop[192.168.3.2_1]: <h1>Traffic Analysis for 1 -- xxxxxxx</h1>
                <div id="sysdetails">
                        <table>
                                <tr>
                                        <td>System:</td>
                                        <td>xxxxxxx in Sydney</td>
                                </tr>
                                <tr>
                                        <td>Maintainer:</td>
                                        <td>IT Networking</td>
                                </tr>
                                <tr>
                                        <td>Description:</td>
                                        <td>mgmt  </td>
                                </tr>
                                <tr>
                                        <td>ifType:</td>
                                        <td>ethernetCsmacd (6)</td>
                                </tr>
                                <tr>
</table>
</div>

Re: RRD Files Do Not Exist...but they do.

Posted: Sun Jan 19, 2014 12:36 pm
by scottwilkerson
I understand they are root:root, but what are the permissions on the files and directory? Are the files

Code: Select all

-rw-r--r--

Code: Select all

ls -la /var/lib/mrtg

Re: RRD Files Do Not Exist...but they do.

Posted: Sun Jan 19, 2014 2:58 pm
by mikew
Yes the permissions are:

-rw-r--r-- root root

Unfortunately, this seems to be growing as more ports are now doing the same thing.

Just to add this is on a system that has 32 vCPU using 10 GB of RAM and running at 0.23 load. It has 3200 service checks. So resources are not an issue.

Re: RRD Files Do Not Exist...but they do.

Posted: Mon Jan 20, 2014 8:45 am
by scottwilkerson
Strange, can you run the following and report the output

Code: Select all

getenforce
ls -ld /var/lib/mrtg
ls -ld /var/lib
ls -ld /var
Thanks

Re: RRD Files Do Not Exist...but they do.

Posted: Mon Jan 20, 2014 9:06 am
by mikew

Code: Select all

getenforce
Disabled

ls -ld /var/lib/mrtg
drwxr-xr-x 2 root root

ls -ld /var/lib
drwxr-xr-x. 2 root root

ls -ld /var
drwxr-xr-x. 2 root root

Re: RRD Files Do Not Exist...but they do.

Posted: Mon Jan 20, 2014 12:50 pm
by lmiltchev
Mike,
Have you tried following the steps outlined in this document?

Re: RRD Files Do Not Exist...but they do.

Posted: Mon Jan 20, 2014 2:31 pm
by mikew
Yes I did that first thing

Re: RRD Files Do Not Exist...but they do.

Posted: Mon Jan 20, 2014 6:10 pm
by abrist
Did you update rrdtool?

Code: Select all

rrdtool -V
(should be 1.3.8)