Hi There,
I am currently have an issue with cacti in that all the graphs are showing a NAN value. I have followed the debug steps and cannot figure out what is causing the issue I am having.
OS: Centos 6.2 x64
Cacti Version: 0.8.8a
Install: RPM
When I run the snmpget or walk it works fine and returns the values. When I run the php poller manually it returns values as below.
11/29/2012 02:51:59 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /usr/share/cacti/rra/router_traffic_in_10.rrd --template traffic_out:traffic_in 1354204319:2252943301:1273885056
I have checked the poller_output table and that is clearing out ok with no data left.
The file permissions seem to be ok as the log and rra directories are set to 777 with the cactiuser:root.
I have deleted the rrd's and they are being created ok.
When I run the rrdtool manually from the command line (rrdtool fetch /usr/share/cacti/rra/router_traffic_in_10.rrd AVERAGE) I get a list of NAN values as below.
1354199400: -nan -nan
1354199700: -nan -nan
1354200000: -nan -nan
1354200300: -nan -nan
1354200600: -nan -nan
1354200900: -nan -nan
1354201200: -nan -nan
1354201500: -nan -nan
1354201800: -nan -nan
1354202100: -nan -nan
1354202400: -nan -nan
1354202700: -nan -nan
1354203000: -nan -nan
1354203300: -nan -nan
1354203600: -nan -nan
1354203900: -nan -nan
When I check the rrdtool info I get the below output.
filename = "/usr/share/cacti/rra/router_traffic_in_10.rrd"
rrd_version = "0003"
step = 300
last_update = 1354204319
ds[traffic_in].type = "COUNTER"
ds[traffic_in].minimal_heartbeat = 600
ds[traffic_in].min = 0.0000000000e+00
ds[traffic_in].max = 1.0000000000e+08
ds[traffic_in].last_ds = "1273885056"
ds[traffic_in].value = NaN
ds[traffic_in].unknown_sec = 119
ds[traffic_out].type = "COUNTER"
ds[traffic_out].minimal_heartbeat = 600
ds[traffic_out].min = 0.0000000000e+00
ds[traffic_out].max = 1.0000000000e+08
ds[traffic_out].last_ds = "2252943301"
ds[traffic_out].value = NaN
ds[traffic_out].unknown_sec = 119
rra[0].cf = "AVERAGE"
rra[0].rows = 600
rra[0].cur_row = 586
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[0].cdp_prep[1].value = NaN
rra[0].cdp_prep[1].unknown_datapoints = 0
rra[1].cf = "AVERAGE"
rra[1].rows = 700
rra[1].cur_row = 386
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[1].cdp_prep[1].value = NaN
rra[1].cdp_prep[1].unknown_datapoints = 4
rra[2].cf = "AVERAGE"
rra[2].rows = 775
rra[2].cur_row = 598
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 = 22
rra[2].cdp_prep[1].value = NaN
rra[2].cdp_prep[1].unknown_datapoints = 22
rra[3].cf = "AVERAGE"
rra[3].rows = 797
rra[3].cur_row = 653
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 = 190
rra[3].cdp_prep[1].value = NaN
rra[3].cdp_prep[1].unknown_datapoints = 190
rra[4].cf = "MAX"
rra[4].rows = 600
rra[4].cur_row = 512
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[4].cdp_prep[1].value = NaN
rra[4].cdp_prep[1].unknown_datapoints = 0
rra[5].cf = "MAX"
rra[5].rows = 700
rra[5].cur_row = 10
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[5].cdp_prep[1].value = NaN
rra[5].cdp_prep[1].unknown_datapoints = 4
rra[6].cf = "MAX"
rra[6].rows = 775
rra[6].cur_row = 354
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 = 22
rra[6].cdp_prep[1].value = NaN
rra[6].cdp_prep[1].unknown_datapoints = 22
rra[7].cf = "MAX"
rra[7].rows = 797
rra[7].cur_row = 666
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 = 190
rra[7].cdp_prep[1].value = NaN
rra[7].cdp_prep[1].unknown_datapoints = 190
Can anyone help as I am not sure what to check next or how to resolve this issue.
Many thanks
RRDTool and Graphs all showing NAN after Install
Moderators: Developers, Moderators
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: RRDTool and Graphs all showing NAN after Install
Please select "System Utilities -> Rebuild Poller Cache" and wait 10 min. Does that help?
R.
R.
Re: RRDTool and Graphs all showing NAN after Install
Thanks for the reply. Unfortunately this did not work.
Re: RRDTool and Graphs all showing NAN after Install
I managed to get this resolved by using the tar.gz and uninstalling the RPM. This could have been down to permissions I in the directories.
Who is online
Users browsing this forum: No registered users and 10 guests