On Tue, Feb 27, 2007 at 02:00:27PM +0100, Francois Gouget wrote:
> Package: netmrg
> Version: 0.18.2-14
> Severity: normal
> 
> 
> The documentation says:
> 
>   edit info about a monitor
> [...]
>   + Script Options
>     o Parameters  -  specifies  a string which will be
>       appended  to  the script's parameters. Parameter
>       expansions are honored in this field.
> 
> So I created a Test script as follows:
>    Name:                     LMSensors
>    Command:                  local-netmrg-lmsensors.pl
>    Data Type:                Standard Out
>    For use with this device: Linux Box
> 
> Then I created a monitor as follows:
>    Monitoring Type:          Script
>    Script Test:              LMSensors
>    Parameters:               temp1
>    Data Type:                Gauge
>    Minimum Value:            U
>    Maximum Value:            U
>    Subdevice:                Amboise - Hardware Monitors
> 
> But netmrg-gatherer is running the following command:
> 
> [L: 0064, C: 0512] [Dev: 0002] [Sub: 0017] [Mon: 0064] Sending
> '/usr/lib/netmrg/local-netmrg-lmsensors.pl' to shell.
> 
> Instead of the expected '/usr/lib/netmrg/local-netmrg-lmsensors.pl
> temp1'.
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.

  Uwe

-- 
  MMK GmbH, Fleyer Str. 196, 58097 Hagen
  [EMAIL PROTECTED]
  Tel: 02331 840446    Fax: 02331 843920

Attachment: signature.asc
Description: Digital signature

Reply via email to