nan in ping graph

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
vibur
Posts: 2
Joined: Tue Aug 31, 2010 2:27 am

nan in ping graph

Post by vibur »

I have installed cacti 0.8.7 fresh from the tarball to a CentOS 5.4 machine.

Apache, PHP, mySQL all working correctly. I've gone through the Debugging document and have not been able to solve the problem. I'm hoping someone with more experience can show me the light.

I have the standard localhost graphs that are set up at install plus a ping latency to yahoo.com graph. All the graphs show nan for everything but it's the ping graph I'm interested in so that's where I'll focus.

The perl script cacti uses for getting ping latency works fine as does the poller and updates to mysql. The issue comes when cacti updates the rrd files. The files have appropriate permissions so cacti is able to write to them fine. Using 'rrdtool info' gives the following output (28.3 was the output from the perl ping script):

Code: Select all

filename = "rra/yahoo_ping_8.rrd"
rrd_version = "0003"
step = 300
last_update = 1283239230
header_size = 1892
ds[ping].index = 0
ds[ping].type = "GAUGE"
ds[ping].minimal_heartbeat = 600
ds[ping].min = 0.0000000000e+00
ds[ping].max = 5.0000000000e+03
ds[ping].last_ds = "28.3"
ds[ping].value = 1.1320000000e+02
ds[ping].unknown_sec = 26
rra[0].cf = "AVERAGE"
rra[0].rows = 600
rra[0].cur_row = 405
rra[0].pdp_per_row = 1
rra[0].xff = 5.0000000000e-01
rra[0].cdp_prep[0].value = NaN
rra[0].cdp_prep[0].unknown_datapoints = 0
rra[1].cf = "AVERAGE"
rra[1].rows = 700
rra[1].cur_row = 609
rra[1].pdp_per_row = 6
rra[1].xff = 5.0000000000e-01
rra[1].cdp_prep[0].value = NaN
rra[1].cdp_prep[0].unknown_datapoints = 4
rra[2].cf = "AVERAGE"
rra[2].rows = 775
rra[2].cur_row = 552
rra[2].pdp_per_row = 24
rra[2].xff = 5.0000000000e-01
rra[2].cdp_prep[0].value = NaN
rra[2].cdp_prep[0].unknown_datapoints = 16
rra[3].cf = "AVERAGE"
rra[3].rows = 797
rra[3].cur_row = 166
rra[3].pdp_per_row = 288
rra[3].xff = 5.0000000000e-01
rra[3].cdp_prep[0].value = NaN
rra[3].cdp_prep[0].unknown_datapoints = 88
rra[4].cf = "MAX"
rra[4].rows = 600
rra[4].cur_row = 540
rra[4].pdp_per_row = 1
rra[4].xff = 5.0000000000e-01
rra[4].cdp_prep[0].value = NaN
rra[4].cdp_prep[0].unknown_datapoints = 0
rra[5].cf = "MAX"
rra[5].rows = 700
rra[5].cur_row = 395
rra[5].pdp_per_row = 6
rra[5].xff = 5.0000000000e-01
rra[5].cdp_prep[0].value = NaN
rra[5].cdp_prep[0].unknown_datapoints = 4
rra[6].cf = "MAX"
rra[6].rows = 775
rra[6].cur_row = 36
rra[6].pdp_per_row = 24
rra[6].xff = 5.0000000000e-01
rra[6].cdp_prep[0].value = NaN
rra[6].cdp_prep[0].unknown_datapoints = 16
rra[7].cf = "MAX"
rra[7].rows = 797
rra[7].cur_row = 569
rra[7].pdp_per_row = 288
rra[7].xff = 5.0000000000e-01
rra[7].cdp_prep[0].value = NaN
rra[7].cdp_prep[0].unknown_datapoints = 88
This looks correct to me except for the NaN's. Am I wrong? How can I go about fixing this?
vibur
Posts: 2
Joined: Tue Aug 31, 2010 2:27 am

Post by vibur »

Interesting - I changed the crontab line to have the full path to php and that seems to have fixed it as the rrd files now have values.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests