Thanks for your help. It works! <div><br></div><div>Cheers,</div><div>Jie<br><br><div class="gmail_quote">On Mon, Nov 16, 2009 at 5:34 PM, XANi <span dir="ltr"><<a href="mailto:xani666@gmail.com">xani666@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<br>
On Mon, 16 Nov 2009 17:03:22 -0500, Jie Zhang <<a href="mailto:jj.mzhang@gmail.com">jj.mzhang@gmail.com</a>><br>
wrote:<br>
<div><div></div><div class="h5">> Hi,<br>
><br>
> I am using the exec plugin of collectd ( version 4.3.1) to run my<br>
> script and got confused by how PUTVAL works. From the document, it<br>
> seems I can log multiple values, but, It works if I put only one<br>
> value int the value list, but it doesn't work if I have two values:<br>
><br>
> This works:<br>
> PUTVAL localhost/sysstats/gauge-ioerror_count interval=60<br>
> 1258332477:257<br>
><br>
> But this doesn't work:<br>
> PUTVAL localhost/sysstats/gauge-ioerror_count interval=60<br>
> 1258335773:257:123<br>
><br>
> where 257 and 123 are the two values I am trying to log.<br>
><br>
> Does anyone know what's wrong?<br>
><br>
> Thanks a lot!<br>
><br>
> Jie<br>
</div></div>To gather 2 (or more values) u have to<br>
1) add something like that to types.db<br>
ioerror_count read:COUNTER:0:4294967295, write:COUNTER:0:4294967295<br>
<br>
2) then log it like that:<br>
PUTVAL localhost/sysstats/ioerror_count interval=60 1258335773:257:123<br>
<br>
Regards<br>
Mariusz<br>
<font color="#888888"><br>
--<br>
Mariusz Gronczewski (XANi) <<a href="mailto:xani666@gmail.com">xani666@gmail.com</a>><br>
GnuPG: 0xEA8ACE64<br>
<a href="http://devrandom.pl" target="_blank">http://devrandom.pl</a><br>
<br>
</font></blockquote></div><br></div>