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

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
mikew
Posts: 243
Joined: Sun Feb 05, 2012 7:05 pm

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

Post 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.
Mike Weber

Nagios Training/Consulting
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

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

Post by slansing »

What are the permissions on said .rrd's, and their path?
User avatar
mikew
Posts: 243
Joined: Sun Feb 05, 2012 7:05 pm

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

Post 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>
Mike Weber

Nagios Training/Consulting
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
mikew
Posts: 243
Joined: Sun Feb 05, 2012 7:05 pm

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

Post 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.
Mike Weber

Nagios Training/Consulting
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
mikew
Posts: 243
Joined: Sun Feb 05, 2012 7:05 pm

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

Post 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
Mike Weber

Nagios Training/Consulting
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

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

Post by lmiltchev »

Mike,
Have you tried following the steps outlined in this document?
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
mikew
Posts: 243
Joined: Sun Feb 05, 2012 7:05 pm

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

Post by mikew »

Yes I did that first thing
Mike Weber

Nagios Training/Consulting
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

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

Post by abrist »

Did you update rrdtool?

Code: Select all

rrdtool -V
(should be 1.3.8)
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked