RRD Files Do Not Exist...but they do.
RRD Files Do Not Exist...but they do.
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.
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
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.
What are the permissions on said .rrd's, and their path?
Re: RRD Files Do Not Exist...but they do.
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.
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
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.
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/mrtgRe: RRD Files Do Not Exist...but they do.
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.
-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
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.
Strange, can you run the following and report the output
Thanks
Code: Select all
getenforce
ls -ld /var/lib/mrtg
ls -ld /var/lib
ls -ld /varRe: RRD Files Do Not Exist...but they do.
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
Nagios Training/Consulting
Re: RRD Files Do Not Exist...but they do.
Mike,
Have you tried following the steps outlined in this document?
Have you tried following the steps outlined in this document?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: RRD Files Do Not Exist...but they do.
Yes I did that first thing
Mike Weber
Nagios Training/Consulting
Nagios Training/Consulting
Re: RRD Files Do Not Exist...but they do.
Did you update rrdtool?
(should be 1.3.8)
Code: Select all
rrdtool -VFormer 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.
"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.