<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.14.3">
</HEAD>
<BODY LINK="#0000ff">
What's your version of nsclient installed in the windows side ?   How's your NSC.ini configured if you're using nsclient++?<BR>
<BR>
<BR>
<BR>
On Wed, 2008-01-30 at 15:25 -0500, Palle L Jensen wrote:
<BLOCKQUOTE TYPE=CITE>
    <FONT SIZE="1"><FONT COLOR="#000080">Thanks for the help,</FONT></FONT><BR>
    <BR>
    <FONT SIZE="1"><FONT COLOR="#000080">> </FONT></FONT><FONT COLOR="#000000">the -l is not needed since it is in the check command</FONT><BR>
    <BR>
    <FONT SIZE="1"><FONT COLOR="#000080">I also tried with and without the -l</FONT></FONT><BR>
    <BR>
    <FONT SIZE="1"><FONT COLOR="#000080"> </FONT></FONT><BR>
    <BR>
    <FONT SIZE="1"><FONT COLOR="#000080">Unfortunately did this not work either, any other suggestions?</FONT></FONT><BR>
    <BR>
    <FONT SIZE="1"><FONT COLOR="#000080"> </FONT></FONT><BR>
    <BR>
    <FONT SIZE="1"><FONT COLOR="#000080"> </FONT></FONT><BR>
    <BR>
    <FONT SIZE="1"><FONT COLOR="#000080">Thanks,</FONT></FONT><BR>
    <BR>
    <FONT SIZE="1"><FONT COLOR="#000080">Palle</FONT></FONT><BR>
    <BR>
    <FONT SIZE="1"><FONT COLOR="#000080"> </FONT></FONT><BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <DIV ALIGN=center>
<HR>
</DIV>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <B><FONT SIZE="2"><FONT COLOR="#000000">From:</FONT></FONT></B><FONT COLOR="#000000"><FONT SIZE="2">nagios-users-bounces@lists.sourceforge.net [mailto:nagios-users-bounces@lists.sourceforge.net] </FONT></FONT><FONT COLOR="#000000"><B><FONT SIZE="2">On Behalf Of </FONT></B></FONT><FONT COLOR="#000000"><FONT SIZE="2">Anthony Montibello</FONT></FONT><BR>
    <B><FONT SIZE="2"><FONT COLOR="#000000">Sent:</FONT></FONT></B><FONT COLOR="#000000"><FONT SIZE="2"> Tuesday, January 29, 2008 7:36 PM</FONT></FONT><BR>
    <B><FONT SIZE="2"><FONT COLOR="#000000">To:</FONT></FONT></B><FONT COLOR="#000000"><FONT SIZE="2"> narendran.neelamegam@wipro.com; palleje@gmail.com; nagios-users@lists.sourceforge.net</FONT></FONT><BR>
    <B><FONT SIZE="2"><FONT COLOR="#000000">Subject:</FONT></FONT></B><FONT COLOR="#000000"><FONT SIZE="2"> Re: [Nagios-users] check_nt: Could not parse arguments</FONT></FONT><BR>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000"> </FONT><BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000">Hi, </FONT><BR>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000"> </FONT><BR>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000">To help clarify, -s is for the password while $ARG1$ was missing from the orriginal command causing the missing ARGUMENT error</FONT><BR>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000">THe Hostname is needed since the plugin does not know what host it is without that.</FONT><BR>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000">the port in this case is needed since check_nt.c compiles with the default port of 1248</FONT><BR>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000">the -l is not needed since it is in the check command</FONT><BR>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000"> </FONT><BR>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000">define command{</FONT><BR>
    <FONT COLOR="#000000">        command_name    check_nt_cpu</FONT><BR>
    <FONT COLOR="#000000">$USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -s $USER7$  $ARG1$</FONT><BR>
    <FONT COLOR="#000000">}</FONT><BR>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000"> </FONT><BR>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000">define service{</FONT><BR>
    <FONT COLOR="#000000">       use                  generic-service</FONT><BR>
    <FONT COLOR="#000000">       host_name            host001</FONT><BR>
    <FONT COLOR="#000000">       service_description  CPU load</FONT><BR>
    <FONT COLOR="#000000">       servicegroups        load</FONT><BR>
    <FONT COLOR="#000000">       check_command        check_nt_cpu!CPULOAD!-l 5,80,90</FONT><BR>
    <FONT COLOR="#000000">       }</FONT><BR>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000"> </FONT><BR>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000">Tony (Author of NC_NEt)</FONT><BR>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000"> </FONT><BR>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000"> </FONT><BR>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000">On Jan 29, 2008 2:51 PM, <<A HREF="mailto:narendran.neelamegam@wipro.com">narendran.neelamegam@wipro.com</A>> wrote:</FONT><BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000"> </FONT><BR>
    <BR>
    <FONT SIZE="2"><FONT COLOR="#0000ff">Should your command be</FONT></FONT><BR>
    <BR>
    <FONT COLOR="#000000"> </FONT><BR>
    <BR>
    <FONT SIZE="2"><FONT COLOR="#000000">$USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -v CPULOAD -l $ARG1$</FONT></FONT><BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000"> </FONT><BR>
    <BR>
    <FONT SIZE="2"><FONT COLOR="#000080">check_nt -H $HOSTADDRESS$ -p 12489 </FONT></FONT><FONT SIZE="2"><FONT COLOR="#ff0000">-s $USER7$</FONT></FONT><BR>
    <BR>
    <FONT COLOR="#000000"> </FONT><BR>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <DIV ALIGN=center>
<HR>
</DIV>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <B><FONT SIZE="2"><FONT COLOR="#000000">From:</FONT></FONT></B><FONT COLOR="#000000"><FONT SIZE="2"> <A HREF="mailto:nagios-users-bounces@lists.sourceforge.net">nagios-users-bounces@lists.sourceforge.net</A> [mailto:<A HREF="mailto:nagios-users-bounces@lists.sourceforge.net">nagios-users-bounces@lists.sourceforge.net</A>] </FONT></FONT><FONT COLOR="#000000"><B><FONT SIZE="2">On Behalf Of </FONT></B></FONT><FONT COLOR="#000000"><FONT SIZE="2">Palle L Jensen</FONT></FONT><BR>
    <B><FONT SIZE="2"><FONT COLOR="#000000">Sent:</FONT></FONT></B><FONT COLOR="#000000"><FONT SIZE="2"> Tuesday, January 29, 2008 10:32 PM</FONT></FONT><BR>
    <B><FONT SIZE="2"><FONT COLOR="#000000">To:</FONT></FONT></B><FONT COLOR="#000000"><FONT SIZE="2"> Nagios Users</FONT></FONT><BR>
    <B><FONT SIZE="2"><FONT COLOR="#000000">Subject:</FONT></FONT></B><FONT COLOR="#000000"><FONT SIZE="2"> [Nagios-users] check_nt: Could not parse arguments</FONT></FONT><BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT SIZE="1"><FONT COLOR="#000080"> </FONT></FONT><BR>
    <BR>
    <FONT SIZE="1"><FONT COLOR="#000080">Morning all,</FONT></FONT><BR>
    <BR>
    <FONT SIZE="1"><FONT COLOR="#000080"> </FONT></FONT><BR>
    <BR>
    <FONT SIZE="1"><FONT COLOR="#000080">I am having an issue with adding cpuload monitoring on windows machines.</FONT></FONT><BR>
    <BR>
    <FONT SIZE="1"><FONT COLOR="#000080">I know there are no issues on the windows side since I have other services being monitored with no problems.</FONT></FONT><BR>
    <BR>
    <FONT SIZE="1"><FONT COLOR="#000080">Also the error message tells me the arguments that are specified are not correct.</FONT></FONT><BR>
    <BR>
    <FONT SIZE="1"><FONT COLOR="#000080">I have google'd, and checked the Nagios documentation and tried different ways, but non works.</FONT></FONT><BR>
    <BR>
    <FONT SIZE="1"><FONT COLOR="#000080">And this is were I am at now. Could anyone look this over and tell me what is wrong?</FONT></FONT><BR>
    <BR>
    <FONT SIZE="1"><FONT COLOR="#000080">- Error:</FONT></FONT><FONT COLOR="#000000"> </FONT><FONT SIZE="1"><FONT COLOR="#000080">check_nt: Could not parse arguments</FONT></FONT><BR>
    <BR>
    <FONT SIZE="1"><FONT COLOR="#000080"> </FONT></FONT><BR>
    <BR>
    <FONT SIZE="1"><FONT COLOR="#000080">- Check command definition:</FONT></FONT><BR>
    <BR>
    <FONT SIZE="1"><FONT COLOR="#000080"> </FONT></FONT><BR>
    <BR>
    <FONT SIZE="1"><FONT COLOR="#000080">define command{</FONT></FONT><BR>
    <BR>
    <FONT SIZE="1"><FONT COLOR="#000080">        command_name    check_nt_cpu</FONT></FONT><BR>
    <BR>
    <FONT SIZE="1"><FONT COLOR="#000080">        command_line    $USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -s $USER7$</FONT></FONT><BR>
    <BR>
    <FONT SIZE="1"><FONT COLOR="#000080"> </FONT></FONT><BR>
    <BR>
    <FONT SIZE="1"><FONT COLOR="#000080"> </FONT></FONT><BR>
    <BR>
    <FONT SIZE="1"><FONT COLOR="#000080">- Service definition:</FONT></FONT><BR>
    <BR>
    <FONT SIZE="1"><FONT COLOR="#000080"> </FONT></FONT><BR>
    <BR>
    <FONT SIZE="1"><FONT COLOR="#000080">define service{</FONT></FONT><BR>
    <BR>
    <FONT SIZE="1"><FONT COLOR="#000080">       use                  generic-service</FONT></FONT><BR>
    <BR>
    <FONT SIZE="1"><FONT COLOR="#000080">       host_name            host001</FONT></FONT><BR>
    <BR>
    <FONT SIZE="1"><FONT COLOR="#000080">       service_description  CPU load</FONT></FONT><BR>
    <BR>
    <FONT SIZE="1"><FONT COLOR="#000080">       servicegroups        load</FONT></FONT><BR>
    <BR>
    <FONT SIZE="1"><FONT COLOR="#000080">       check_command        check_nt_cpu!CPULOAD! -l 5,80,90</FONT></FONT><BR>
    <BR>
    <FONT SIZE="1"><FONT COLOR="#000080">       }</FONT></FONT><BR>
    <BR>
    <BR>
    <FONT SIZE="1"><FONT COLOR="#000080">Thanks,</FONT></FONT><BR>
    <BR>
    <FONT SIZE="1"><FONT COLOR="#000080">Palle</FONT></FONT><BR>
    <BR>
    <FONT SIZE="2"><FONT COLOR="#000080"> </FONT></FONT><BR>
    <BR>
    <FONT COLOR="#000000"> </FONT><BR>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <FONT COLOR="#000000">-------------------------------------------------------------------------</FONT><BR>
    <FONT COLOR="#000000">This SF.net email is sponsored by: Microsoft</FONT><BR>
    <FONT COLOR="#000000">Defy all challenges. Microsoft(R) Visual Studio 2008.</FONT><BR>
    <FONT COLOR="#000000"><A HREF="http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/">http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/</A></FONT><BR>
    <FONT COLOR="#000000">_______________________________________________</FONT><BR>
    <FONT COLOR="#000000">Nagios-users mailing list</FONT><BR>
    <FONT COLOR="#000000"><A HREF="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</A></FONT><BR>
    <FONT COLOR="#000000"><A HREF="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</A></FONT><BR>
    <FONT COLOR="#000000">::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.</FONT><BR>
    <FONT COLOR="#000000">::: Messages without supporting info will risk being sent to /dev/null</FONT><BR>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000"> </FONT><BR>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">-------------------------------------------------------------------------</FONT>
<FONT COLOR="#000000">This SF.net email is sponsored by: Microsoft</FONT>
<FONT COLOR="#000000">Defy all challenges. Microsoft(R) Visual Studio 2008.</FONT>
<FONT COLOR="#000000"><A HREF="http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/">http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/</A></FONT>
<FONT COLOR="#000000">_______________________________________________ Nagios-users mailing list <A HREF="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</A> <A HREF="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</A> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null</FONT>
</PRE>
</BLOCKQUOTE>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<BR>
</TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>