[rrd-users] Handling frequent counter-wraps

Rickard Dahlstrand rd at tilde.se
Wed Mar 7 18:24:43 CET 2007


Hi,

I'm trying to log load from a NSD DNS-server and it wraps the counter
every time we update the zone (every 2 hours). This introduces
unknown-values in the rrd-file. I would like rrdtool to figure out that
a wrap has occured and calculate a correct value.

Is it me asking to much from rrdtool or have do I need to change the
configuration?

Rickard.


Time 	UnixTime 	Zone 	UnixZone 	Counter 	Diff
11:05 	1173265500 	09:56 	1173261360 	1527837 	
11:10 	1173265800 	09:56 	1173261360 	1580265 	52428
11:15 	1173266100 	09:56 	1173261360 	1634669 	54404
11:20 	1173266400 	11:19 	1173266394 	971 	-1633698
11:25 	1173266700 	11:19 	1173266394 	52998 	52027
11:30 	1173267000 	11:19 	1173266394 	104549 	51551
11:35 	1173267300 	11:19 	1173266394 	154445 	49896




<!-- 2007-03-07 11:10:00 / 1173265800 --> <row><v> 3.6000000000e-01
</v><v> 6.223333
<!-- 2007-03-07 11:15:00 / 1173266100 --> <row><v> 3.6000000000e-01
</v><v> 8.826666
<!-- 2007-03-07 11:20:00 / 1173266400 --> <row><v> NaN </v><v> NaN
</v><v> 0.0000000
<!-- 2007-03-07 11:25:00 / 1173266700 --> <row><v> 3.6333333333e-01
</v><v> 1.089700
<!-- 2007-03-07 11:30:00  / 1173267000 --> <row><v> 3.7000000000e-01
</v><v> 1.029700


filename = "file.rrd"
rrd_version = "0003"
step = 300
last_update = 1173287400
ds[failure].type = "COUNTER"
ds[failure].minimal_heartbeat = 600
ds[failure].min = 0.0000000000e+00
ds[failure].max = 1.4000000000e+04
ds[failure].last_ds = "2651"
ds[failure].value = 0.0000000000e+00
ds[failure].unknown_sec = 0
ds[nxdomain].type = "COUNTER"
ds[nxdomain].minimal_heartbeat = 600
ds[nxdomain].min = 0.0000000000e+00
ds[nxdomain].max = 1.4000000000e+04
ds[nxdomain].last_ds = "250335"
ds[nxdomain].value = 0.0000000000e+00
ds[nxdomain].unknown_sec = 0
ds[recursion].type = "COUNTER"
ds[recursion].minimal_heartbeat = 600
ds[recursion].min = 0.0000000000e+00
ds[recursion].max = 1.4000000000e+04
ds[recursion].last_ds = "0"
ds[recursion].value = 0.0000000000e+00
ds[recursion].unknown_sec = 0
ds[nxrrset].type = "COUNTER"
ds[nxrrset].minimal_heartbeat = 600
ds[nxrrset].min = 0.0000000000e+00
ds[nxrrset].max = 1.4000000000e+04
ds[nxrrset].last_ds = "0"
ds[nxrrset].value = 0.0000000000e+00
ds[nxrrset].unknown_sec = 0
ds[referral].type = "COUNTER"
ds[referral].minimal_heartbeat = 600
ds[referral].min = 0.0000000000e+00
ds[referral].max = 1.4000000000e+04
ds[referral].last_ds = "1812700"
ds[referral].value = 0.0000000000e+00
ds[referral].unknown_sec = 0
ds[total].type = "COUNTER"
ds[total].minimal_heartbeat = 600
ds[total].min = 0.0000000000e+00
ds[total].max = 1.4000000000e+04
ds[total].last_ds = "2116348"
ds[total].value = 0.0000000000e+00
ds[total].unknown_sec = 0
ds[success].type = "COUNTER"
ds[success].minimal_heartbeat = 600
ds[success].min = 0.0000000000e+00
ds[success].max = 1.4000000000e+04
ds[success].last_ds = "0"
ds[success].value = 0.0000000000e+00
ds[success].unknown_sec = 0
rra[0].cf = "AVERAGE"
rra[0].rows = 600
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[0].cdp_prep[2].value = NaN
rra[0].cdp_prep[2].unknown_datapoints = 0
rra[0].cdp_prep[3].value = NaN
rra[0].cdp_prep[3].unknown_datapoints = 0
rra[0].cdp_prep[4].value = NaN
rra[0].cdp_prep[4].unknown_datapoints = 0


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/rrd-users/attachments/20070307/03998e77/attachment.htm 


More information about the rrd-users mailing list