[collectd] [Patch] memory plugins rrd DS type bug with absolute config
孟庆龙
mengql at inspur.com
Fri Nov 20 10:36:45 CET 2015
Hi,
Collectd version 5.5.
source code: git clone from github with branch master.
Plugins: memory rrdtool
rrdtool plugin config:
<Plugin rrdtool>
DataDir "/opt/collectd/var/lib/collectd/rrd"
CreateFilesAsync false
CacheTimeout 120
CacheFlush 900
WritesPerSecond 50
</Plugin>
memory plugin config:
<Plugin "memory">
ValuesAbsolute true
ValuesPercentage true
</Plugin>
but I get this rrdinfo, when i check memory-free.rrd file.
[longeek at longeek src]$ rrdinfo /opt/collectd/var/lib/collectd/rrd/longeek/memory/memory-free.rrd | more
filename = "/opt/collectd/var/lib/collectd/rrd/longeek/memory/memory-free.rrd"
rrd_version = "0003"
step = 2
last_update = 1448010303
header_size = 3496
ds[value].index = 0
ds[value].type = "GAUGE" //BUG!!!
ds[value].minimal_heartbeat = 4
ds[value].min = 0.0000000000e+00
ds[value].max = 2.8147497671e+14
ds[value].last_ds = "117870592"
ds[value].value = 1.1787059200e+08
ds[value].unknown_sec = 0
##################
I check memory.c source:
168 #define MEMORY_SUBMIT(...) do { \
169 >---if (values_absolute) \
170 >--->---plugin_dispatch_multivalue (vl, 0, DS_TYPE_GAUGE, __VA_ARGS__, NULL); \
171 >---if (values_percentage) \
172 >--->---plugin_dispatch_multivalue (vl, 1, DS_TYPE_GAUGE, __VA_ARGS__, NULL); \
173 } while (0)
###################
I think this is a bug!!! ok?
Best Regards,
Lawrency Meng
mengql at inspur.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Fix-memory-plugin-rrd-DS-type-with-absolute-config.patch
Type: text/x-patch
Size: 842 bytes
Desc: Fix-memory-plugin-rrd-DS-type-with-absolute-config.patch
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20151120/0e44ef1a/attachment.bin>
More information about the collectd
mailing list