On Sun, 27 May 2007, Uwe Steinmann wrote:
[...]
Sorry for the long delay. It took me quite some time to figure out
what's going on here.
The documentation is bit scarce on this.
It will work, if you specify the command as
'local-netmrg-lmsensors.pl %parameters%'
%parameters% will be replaced with 'temp1' in your case.
I have not tried this (NetMRG was temperamental enough that I prefer not
to touch my config now that I got it to work well), but if I understand
the above correctly, then the attached patch may help clarify this
point.
--
Francois Gouget [EMAIL PROTECTED] http://fgouget.free.fr/
Cahn's Axiom: When all else fails, read the instructions.diff -ur netmrg-0.18.2.orig/README netmrg-0.18.2/README
--- netmrg-0.18.2.orig/README 2004-11-09 05:26:14.0 +0100
+++ netmrg-0.18.2/README 2007-05-30 10:25:24.0 +0200
@@ -1389,10 +1389,12 @@
Edit
* Name - An description used to identify the test.
- * Command - The program to execute for this test. If the value of
- this field does not start with a slash, it is assumed that the
- command is located in the default NetMRG tests directory.
- Commands are passed to a shell for execution by the gatherer.
+ * Command - The program to execute for this test and its
+ arguments. If the value of this field does not start with a
+ slash, it is assumed that the command is located in the
+ default NetMRG tests directory. Commands are passed to a shell
+ for execution by the gatherer. Add %parameters% where you would
+ like NetMRG to add its parameters.
* Data Type - The type of data gathered from the program.
+ Standard Out - Data from the program's standard output is
returned. The program should output data on one line which
diff -ur netmrg-0.18.2.orig/share/doc/netmrg.sgml netmrg-0.18.2/share/doc/netmrg.sgml
--- netmrg-0.18.2.orig/share/doc/netmrg.sgml 2004-11-09 05:26:14.0 +0100
+++ netmrg-0.18.2/share/doc/netmrg.sgml 2007-05-30 10:25:46.0 +0200
@@ -1314,7 +1314,7 @@
refsect2titleEdit/title
itemizedlist
listitemparaguilabelName/guilabel - An description used to identify the test./para/listitem
- listitemparaguilabelCommand/guilabel - The program to execute for this test. If the value of this field does not start with a slash, it is assumed that the command is located in the default NetMRG tests directory. Commands are passed to a shell for execution by the gatherer./para/listitem
+ listitemparaguilabelCommand/guilabel - The program to execute for this test and its arguments. If the value of this field does not start with a slash, it is assumed that the command is located in the default NetMRG tests directory. Commands are passed to a shell for execution by the gatherer. Add %parameters% where you would like NetMRG to add its parameters./para/listitem
listitemparaguilabelData Type/guilabel - The type of data gathered from the program.
itemizedlist
listitemparaguilabelStandard Out/guilabel - Data from the program's standard output is returned. The program should output data on one line which should be a numeric value or U to specify an unknown value./para/listitem
diff -ur netmrg-0.18.2.orig/share/doc/txt/netmrg.txt netmrg-0.18.2/share/doc/txt/netmrg.txt
--- netmrg-0.18.2.orig/share/doc/txt/netmrg.txt 2004-11-09 05:26:14.0 +0100
+++ netmrg-0.18.2/share/doc/txt/netmrg.txt 2007-05-30 10:25:36.0 +0200
@@ -1389,10 +1389,12 @@
Edit
* Name - An description used to identify the test.
- * Command - The program to execute for this test. If the value of
- this field does not start with a slash, it is assumed that the
- command is located in the default NetMRG tests directory.
- Commands are passed to a shell for execution by the gatherer.
+ * Command - The program to execute for this test and its
+ arguments. If the value of this field does not start with a
+ slash, it is assumed that the command is located in the
+ default NetMRG tests directory. Commands are passed to a shell
+ for execution by the gatherer. Add %parameters% where you would
+ like NetMRG to add its parameters.
* Data Type - The type of data gathered from the program.
+ Standard Out - Data from the program's standard output is
returned. The program should output data on one line which