[collectd] exec-plugin does not get data
Francesco Sordillo
f.sordillo at cineca.it
Thu Mar 26 18:28:43 CET 2009
Hi to all.
I am new here.
I installed collectd 4.5.1 on my SLES 10. I developed a bash script for exec-plugin with "while loop".
The output of my script is like this one.
###############
PUTVAL siss02/iozone-siss_devel_http/iozone_sequential interval="7" 1238087067:1.57935:0.101224
PUTVAL siss02/iozone-siss_devel_http/iozone_random interval="6" 1238087447:390.846:193.861
###############
I defined two types in types.db
###############
iozone_sequential read:GAUGE:0:U, write:GAUGE:0:U
iozone_random read:GAUGE:0:U, write:GAUGE:0:U
###############
When I start collectd it works just for the first time that strings are printed with "echo". So I get my rrd file.
##################
<myhost>/iozone-siss_devel_http/iozone_random.rrd
<myhost>/iozone-siss_devel_http/iozone_sequential.rrd
##################
Every run of my script updates rrd file (ls -al) BUT when I look into rrd file it seems like rrd file are not updated.
######### rrdtool info iozone_random.rrd ###########
filename = "iozone_random.rrd"
rrd_version = "0003"
step = 7
last_update = 1238087305
ds[read].type = "GAUGE"
ds[read].minimal_heartbeat = 14
ds[read].min = 0.0000000000e+00 <-------- ???
ds[read].max = NaN <-------- ???
ds[read].last_ds = "UNKN" <-------- ???
ds[read].value = NaN <-------- ???
ds[read].unknown_sec = 0
ds[write].type = "GAUGE"
ds[write].minimal_heartbeat = 14
ds[write].min = 0.0000000000e+00 <-------- ???
ds[write].max = NaN <-------- ???
ds[write].last_ds = "UNKN" <-------- ???
ds[write].value = NaN <-------- ???
ds[write].unknown_sec = 0
rra[0].cf = "AVERAGE"
rra[0].rows = 1200
rra[0].pdp_per_row = 1
rra[0].xff = 1.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[12].cdp_prep[0].value = 7.9821600000e+02
rra[12].cdp_prep[0].unknown_datapoints = 3017
rra[12].cdp_prep[1].value = 3.7773800000e+02
rra[12].cdp_prep[1].unknown_datapoints = 3017
rra[13].cf = "MIN"
rra[13].rows = 1201
rra[13].pdp_per_row = 3764
rra[13].xff = 1.0000000000e-01
rra[13].cdp_prep[0].value = 3.9910800000e+02
rra[13].cdp_prep[0].unknown_datapoints = 3017
rra[13].cdp_prep[1].value = 1.8886900000e+02
rra[13].cdp_prep[1].unknown_datapoints = 3017
rra[14].cf = "MAX"
rra[14].rows = 1201
rra[14].pdp_per_row = 3764
rra[14].xff = 1.0000000000e-01
rra[14].cdp_prep[0].value = 3.9910800000e+02
rra[14].cdp_prep[0].unknown_datapoints = 3017
rra[14].cdp_prep[1].value = 1.8886900000e+02
rra[14].cdp_prep[1].unknown_datapoints = 3017
#####################################################
Why my rrd file are empty? Anyone can help me?
Thanks.
Francesco.
More information about the collectd
mailing list