[collectd] exec PUTVAL of collectd version 4.3.1

XANi xani666 at gmail.com
Mon Nov 16 23:34:12 CET 2009


Hi,
On Mon, 16 Nov 2009 17:03:22 -0500, Jie Zhang <jj.mzhang at gmail.com>
wrote:
> Hi,
> 
> I am using the exec plugin of collectd ( version 4.3.1) to run my
> script and got confused by how PUTVAL works. From the document, it
> seems I can log multiple values, but, It works if I put only one
> value int the value list, but it doesn't work if I have two values:
> 
> This works:
> PUTVAL localhost/sysstats/gauge-ioerror_count interval=60
> 1258332477:257
> 
> But this doesn't work:
> PUTVAL localhost/sysstats/gauge-ioerror_count interval=60
> 1258335773:257:123
> 
> where 257 and 123 are the two values I am trying to log.
> 
> Does anyone know what's wrong?
> 
> Thanks a lot!
> 
> Jie
To gather 2 (or more values) u have to
1) add something like that to types.db
ioerror_count       read:COUNTER:0:4294967295, write:COUNTER:0:4294967295

2) then log it like that:
PUTVAL localhost/sysstats/ioerror_count interval=60 1258335773:257:123

Regards
Mariusz

-- 
Mariusz Gronczewski (XANi) <xani666 at gmail.com>
GnuPG: 0xEA8ACE64
http://devrandom.pl

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20091116/083f1f1d/attachment.pgp 


More information about the collectd mailing list