<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.28.2">
</HEAD>
<BODY>
Dnia 2010-01-14, czw o godzinie 11:51 -0500, Jie Zhang pisze:<BR>
<BLOCKQUOTE TYPE=CITE>
I am using the exec plugin to execute a script that collects the read/write ios of 72 block devices. The result of each block device will to be saved into a rrdfile. <BR>
<BR>
I have a type "block_device" defined in the types.db file:<BR>
<I>block_device reads:COUNTER:0:4294967295, writes:COUNTER:0:4294967295</I><BR>
<BR>
<BR>
My script output the following:<BR>
<BR>
<I>PUTVAL UML-F632/blockDevice-AAS7200_Cell_0_0x50050C24E900BB00_bay0_4:0:7:0/block_device-read_write_ios interval=60 1263485173:8:4</I><BR>
<I>PUTVAL UML-F632/blockDevice-AAS7200_Cell_0_0x50050C24E900BB00_bay1_4:0:4:0/block_device-read_write_ios interval=60 1263485173:5:4</I><BR>
<I>......</I><BR>
<BR>
But no rrd files are created. I set the log level in collectd.conf to debug , the following errors are reported in the log file for exec plugin:<BR>
<BR>
[2010-01-14 11:40:16] exec plugin: exec failed: No such file or directory<BR>
[2010-01-14 11:41:16] exec plugin: exec failed: No such file or directory<BR>
[2010-01-14 11:42:16] exec plugin: exec failed: No such file or directory<BR>
[2010-01-14 11:43:16] exec plugin: exec failed: No such file or directory<BR>
[2010-01-14 11:44:16] exec plugin: exec failed: No such file or directory<BR>
[2010-01-14 11:45:16] exec plugin: exec failed: No such file or directory<BR>
[2010-01-14 11:46:16] exec plugin: exec failed: No such file or directory<BR>
[2010-01-14 11:47:16] exec plugin: exec failed: No such file or directory<BR>
[2010-01-14 11:48:16] exec plugin: exec failed: No such file or directory<BR>
[2010-01-14 11:49:16] exec plugin: exec failed: No such file or directory<BR>
[2010-01-14 11:49:16] exec plugin: Program `/home/seasim/blockDevice.pl -i 60' has closed STDERR.<BR>
<BR>
<BR>
<BR>
I don't know which file it couldn't find, could anyone help with debugging this problem?<BR>
Thanks a lot!<BR>
<BR>
</BLOCKQUOTE>
It probably means it didn't found your script. try to use full path and/or check if user from u exec script (defined in exec plugin config) have rights to execute that script<BR>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<PRE>
--
Mariusz Gronczewski (XANi) <<A HREF="mailto:xani666@gmail.com">xani666@gmail.com</A>>
GnuPG: 0xEA8ACE64
<A HREF="http://devrandom.pl">http://devrandom.pl</A>
</PRE>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>