[Pkg-nagios-devel] Bug#528262: Bug#528262: Bug#528262: Bug#528262: nagios-plugins-standard: Error in command_line in nt.cfg causes errors

Jan Wagner waja at cyconet.org
Tue May 12 20:18:21 UTC 2009


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 <waja at 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------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.alioth.debian.org/pipermail/pkg-nagios-devel/attachments/20090512/fbeead87/attachment.pgp>


More information about the Pkg-nagios-devel mailing list