Can you safely delete the .rrd file?
Posted: Thu Jun 23, 2016 3:20 pm
I was successfully graphing the performance data in pnp4nagios for all of our dhcp pools. I had 3 "datasources" originally. I had to remove one of them from the script that nagios checks on the server itself. Which left me at 2. After doing so, Pnp4nagios has stopped graphing. In nagios web GUI itself the correct perf data is coming though. I have restarted nagios to no avail.
The performance data line shows:
In pnp4nagios web GUI, I see the 2 datasources, (dhcpmarket1 and dhcpmarket2) and even though its stopped graphing, my last, max, and average numbers are still populating on chart, but not on the graph. However its only doing this on my first datasource. On my second datasource my last, max, and avg numbers are zero'ed out, and nothing on the graph. So slightly different behavior on that one.
So I am looking at my .xml file on the nagios server itself. I see something that *may* be the problem but am not sure.
It only shows 2 datasources, but I see this:
So I am wondering why its expecting 3 when I actually have 2. This is why I ask is it safe to delete the corresponding .rrd file and let it rebuild, or if thats not possible how can I fix this?
The performance data line shows:
Code: Select all
Performance Data: dhcpmarket1=45.1% dhcpmarket2=81.1%So I am looking at my .xml file on the nagios server itself. I see something that *may* be the problem but am not sure.
It only shows 2 datasources, but I see this:
Code: Select all
<RRD>
<RC>1</RC>
<TXT>/var/lib/pnp4nagios/server/DHCPD-Stats.rrd: expected 3 data source readings (got 3) from 1466712086</TXT>
</RRD>