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

Soren Stoutner sorens at h3solution.com
Tue May 12 19:51:07 UTC 2009


Jan,

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
	}


Soren Stoutner

Jan Wagner wrote:
> Hi Soren,
>
> On Tuesday 12 May 2009, Soren Stoutner wrote:
>   
>> The ' marks around the arguments also causes problems for me on some of
>> the commands.  It occurred on all the commands that contained two -.  
>> Specifically:
>>
>> define service{
>>         use                     generic-service
>>         host_name                       winserver
>>         service_description     Memory Usage
>>         check_command           check_nt!MEMUSE!-w 80 -c 90
>>         }
>>     
>
> what is exactly your problem with it (beside the different port)? 
> "check_command check_nt!'MEMUSE -w 80 -c 90'" works very well here.
>
> With kind regards, Jan.
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-nagios-devel/attachments/20090512/b62cd94f/attachment.htm>


More information about the Pkg-nagios-devel mailing list