[rrd-users] Can't I turn off data smoothing for GAUGE?
Marc MERLIN
marc_rrd at merlins.org
Tue Aug 17 08:02:51 CEST 2010
Hi,
I had a problem, which is explained in more details here:
http://forums.cacti.net/viewtopic.php?p=197724#197724
Basically, I use a GAUGE as a bitfield because I don't have anymore room
to add DS entries in my RRD since it's already 2GB.
I've been told that rrdtool does not allow turning off data smoothing,
even for GAUGE. Is that true?
If so, can this be considered as a feature, there are definitely causes,
even if you don't abuse a GAUGE DS as a bitfield, where smoothing data
would just yield total rubish data that shouldn't be there by creating intermediate
values that may not be valid data at all.
Thanks,
Marc
The original question on the cacti forum was:
I'm using a data source as a bit field to keep track of fan or HVAC status in my house.
bit 1: hvac heat, bit 2: hvac cool, bit 7: computer fan closet on.
So my raw data looks like 129, 128, 2, 0 and so forth.
Unfortunately when I go from 128 to 0, rrdtool tries to be helpful and smoothens my data, so I end up with intermediate values like 66.13:
http://graphs.merlins.org/graphs/g.php?action=zoom&local_graph_id=31&rra_id=6&view_type=&graph_start=1281819055&graph_end=1281819180&graph_height=320&graph_width=800&title_font_size=12
Can I tell cacti/rrdtool to jump from 128 to 0 and not smoothen values?
For now, I get garbage like this:
https://graphs.merlins.org/graphs/g.php?action=zoom&local_graph_id=31&rra_id=6&view_type=
(the lines in the graphs are due to the induced error above).
If you're curious, I use this CDEF for each bit I want to display:
Custom String: CURRENT_DATA_SOURCE,8,/,FLOOR,2,%,1,EQ,INF,UNKN,IF
When things actually work (here it's bit 7, 128 so I don't get the average rouding bug), here's what it looks like:
https://graphs.merlins.org/graphs/g.php?action=zoom&local_graph_id=43&rra_id=0&view_type=tree&graph_start=1281733843&graph_end=1281766214&graph_height=320&graph_width=800&title_font_size=12
--
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems & security ....
.... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/
More information about the rrd-users
mailing list