Hi Soren,

On Tuesday 12 May 2009, Soren Stoutner wrote:
> **Update**
>
> Correction to the below email.  The error occurs with this command_line:
>
> command_line    /usr/lib/nagios/plugins/check_nt -H '$HOSTADDRESS$' -p
> 12489 -v '$ARG1$' '$ARG2$'
>
>
> Soren
>
> > The error message produced in Nagios is "wrong -l argument".  I don't
> > know why it doesn't work.  It should work.  But it doesn't.  Through
> > experimentation I discovered that removing the ' marks fixed the problem.
> >
> > The error occurs with the following configurations:
> >
> > command_line    /usr/lib/nagios/plugins/check_nt -H '$HOSTADDRESS$' -p
> > 12489 -v $ARG1$ $ARG2$
> >
> >
> > define service{
> >     use                     generic-service
> >     host_name               winserver
> >     service_description     C:\ Drive Space
> >     check_command           check_nt!USEDDISKSPACE!-l c -w 80 -c 90
> >     }

the following works here with the default "check_nt" definition:

"check_nt!'USEDDISKSPACE -l c -w 90 -c 95'"

For your NSClient++ running on Port 12489 the following _should_ work:

"check_nt!'USEDDISKSPACE -l c -w 80 -c 90 -p 1248'"

With kind regards, Jan.
-- 
Never write mail to <w...@spamfalle.info>, you have been warned!
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GIT d-- s+: a- C+++ UL++++ P+ L+++ E- W+++ N+++ o++ K++ w--- O M V- PS PE
Y++ PGP++ t-- 5 X R tv- b+ DI- D++ G++ e++ h-- r+++ y+++
------END GEEK CODE BLOCK------

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to