<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Jan,<br>
<br>
The error message produced in Nagios is "wrong -l argument".&nbsp; I don't
know why it doesn't work.&nbsp; It should work.&nbsp; But it doesn't.&nbsp; Through
experimentation I discovered that removing the ' marks fixed the
problem.<br>
<br>
The error occurs with the following configurations:<br>
<br>
<pre class="message">command_line    /usr/lib/nagios/plugins/check_nt -H '$HOSTADDRESS$' -p 12489 -v $ARG1$ $ARG2$
</pre>
<br>
<pre class="message">define service{
        use                        generic-service
        host_name                winserver
        service_description        C:\ Drive Space
        check_command                check_nt!USEDDISKSPACE!-l c -w 80 -c 90
        }
</pre>
<br>
<div class="moz-signature">
<title></title>
<font color="#000000">Soren Stoutner<br>
</font></div>
<br>
Jan Wagner wrote:
<blockquote cite="mid:200905122134.58780.waja@cyconet.org" type="cite">
  <pre wrap="">Hi Soren,

On Tuesday 12 May 2009, Soren Stoutner wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">The ' marks around the arguments also causes problems for me on some of
the commands. &nbsp;It occurred on all the commands that contained two -. &nbsp;
Specifically:

define service{
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;use&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;generic-service
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;host_name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;winserver
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;service_description&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Memory Usage
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;check_command&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;check_nt!MEMUSE!-w 80 -c 90
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
    </pre>
  </blockquote>
  <pre wrap=""><!---->
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.
  </pre>
</blockquote>
</body>
</html>