<div>Hi, </div>
<div> </div>
<div>To help clarify, -s is for the password while $ARG1$ was missing from the orriginal command causing the missing ARGUMENT error</div>
<div>THe Hostname is needed since the plugin does not know what host it is without that.</div>
<div>the port in this case is needed since check_nt.c compiles with the default port of 1248</div>
<div>the -l is not needed since it is in the check command</div>
<div> </div>
<div>define command{<br> command_name check_nt_cpu<br><span><font face="Times New Roman" color="#000000">$USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -s $USER7$ $ARG1$</font><br></span>}</div>
<div> </div>
<div>define service{<br> use generic-service<br> host_name host001<br> service_description CPU load<br> servicegroups load<br> check_command check_nt_cpu!CPULOAD!-l 5,80,90<br>
}<br></div>
<div> </div>
<div>Tony (Author of NC_NEt)</div>
<div> </div>
<div> </div>
<div class="gmail_quote">On Jan 29, 2008 2:51 PM, <<a href="mailto:narendran.neelamegam@wipro.com">narendran.neelamegam@wipro.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div lang="EN-US" vlink="purple" link="blue">
<div dir="ltr" align="left"><font face="Arial" color="#0000ff" size="2"><span></span></font> </div>
<div dir="ltr" align="left"><font face="Arial" color="#0000ff" size="2"><span>Should your command be</span></font></div>
<div dir="ltr" align="left"><font face="Arial" color="#0000ff" size="2"><span></span></font> </div>
<div dir="ltr" align="left"><font face="Arial" color="#0000ff" size="2"><span><font face="Times New Roman" color="#000000">$USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -v CPULOAD -l $ARG1$</font><br></span></font></div>
<div class="Ih2E3d">
<div dir="ltr" align="left"><font face="Arial" color="#0000ff" size="2"><span></span></font> </div>
<div dir="ltr" align="left"><font size="+0"><span><font size="2"><font color="#000080"><font face="Courier New">check_nt -H $HOSTADDRESS$ -p 12489 <font color="#ff0000">-s $USER7$</font></font></font></font></span></font></div>
<div dir="ltr" align="left"><font face="Arial" color="#0000ff" size="2"><span></span></font> </div></div>
<div dir="ltr" align="left">
<hr>
<font face="Tahoma" size="2"><b>From:</b> <a href="mailto:nagios-users-bounces@lists.sourceforge.net" target="_blank">nagios-users-bounces@lists.sourceforge.net</a> [mailto:<a href="mailto:nagios-users-bounces@lists.sourceforge.net" target="_blank">nagios-users-bounces@lists.sourceforge.net</a>] <b>On Behalf Of </b>Palle L Jensen<br>
<b>Sent:</b> Tuesday, January 29, 2008 10:32 PM<br><b>To:</b> Nagios Users<br><b>Subject:</b> [Nagios-users] check_nt: Could not parse arguments<br></font><br></div>
<div>
<div></div>
<div class="Wj3C7c">
<div></div>
<div>
<p><font face="Courier New" color="navy" size="1"><span style="FONT-SIZE: 9pt; COLOR: navy"> </span></font></p>
<p><font face="Courier New" color="navy" size="1"><span style="FONT-SIZE: 9pt; COLOR: navy">Morning all,</span></font></p>
<p><font face="Courier New" color="navy" size="1"><span style="FONT-SIZE: 9pt; COLOR: navy"> </span></font></p>
<p><font face="Courier New" color="navy" size="1"><span style="FONT-SIZE: 9pt; COLOR: navy">I am having an issue with adding cpuload monitoring on windows machines.</span></font></p>
<p><font face="Courier New" color="navy" size="1"><span style="FONT-SIZE: 9pt; COLOR: navy">I know there are no issues on the windows side since I have other services being monitored with no problems.</span></font></p>
<p><font face="Courier New" color="navy" size="1"><span style="FONT-SIZE: 9pt; COLOR: navy">Also the error message tells me the arguments that are specified are not correct.</span></font></p>
<p><font face="Courier New" color="navy" size="1"><span style="FONT-SIZE: 9pt; COLOR: navy">I have google'd, and checked the Nagios documentation and tried different ways, but non works.</span></font></p>
<p><font face="Courier New" color="navy" size="1"><span style="FONT-SIZE: 9pt; COLOR: navy">And this is were I am at now. Could anyone look this over and tell me what is wrong?</span></font></p>
<p><font face="Courier New" color="navy" size="1"><span style="FONT-SIZE: 9pt; COLOR: navy">- Error:</span></font> <font face="Courier New" color="navy" size="1"><span style="FONT-SIZE: 9pt; COLOR: navy">check_nt: Could not parse arguments</span></font></p>
<p><font face="Courier New" color="navy" size="1"><span style="FONT-SIZE: 9pt; COLOR: navy"> </span></font></p>
<p><font face="Courier New" color="navy" size="1"><span style="FONT-SIZE: 9pt; COLOR: navy">- Check command definition:</span></font></p>
<p><font face="Courier New" color="navy" size="1"><span style="FONT-SIZE: 9pt; COLOR: navy"> </span></font></p>
<p><font face="Courier New" color="navy" size="1"><span style="FONT-SIZE: 9pt; COLOR: navy">define command{</span></font></p>
<p><font face="Courier New" color="navy" size="1"><span style="FONT-SIZE: 9pt; COLOR: navy"> command_name check_nt_cpu</span></font></p>
<p><font face="Courier New" color="navy" size="1"><span style="FONT-SIZE: 9pt; COLOR: navy"> command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -s $USER7$</span></font></p>
<p><font face="Courier New" color="navy" size="1"><span style="FONT-SIZE: 9pt; COLOR: navy"> </span></font></p>
<p><font face="Courier New" color="navy" size="1"><span style="FONT-SIZE: 9pt; COLOR: navy"> </span></font></p>
<p><font face="Courier New" color="navy" size="1"><span style="FONT-SIZE: 9pt; COLOR: navy">- Service definition:</span></font></p>
<p><font face="Courier New" color="navy" size="1"><span style="FONT-SIZE: 9pt; COLOR: navy"> </span></font></p>
<p><font face="Courier New" color="navy" size="1"><span style="FONT-SIZE: 9pt; COLOR: navy">define service{</span></font></p>
<p><font face="Courier New" color="navy" size="1"><span style="FONT-SIZE: 9pt; COLOR: navy"> use generic-service</span></font></p>
<p><font face="Courier New" color="navy" size="1"><span style="FONT-SIZE: 9pt; COLOR: navy"> host_name host001</span></font></p>
<p><font face="Courier New" color="navy" size="1"><span style="FONT-SIZE: 9pt; COLOR: navy"> service_description CPU load</span></font></p>
<p><font face="Courier New" color="navy" size="1"><span style="FONT-SIZE: 9pt; COLOR: navy"> servicegroups load</span></font></p>
<p><font face="Courier New" color="navy" size="1"><span style="FONT-SIZE: 9pt; COLOR: navy"> check_command check_nt_cpu!CPULOAD! -l 5,80,90</span></font></p>
<p><font face="Courier New" color="navy" size="1"><span style="FONT-SIZE: 9pt; COLOR: navy"> }</span></font></p>
<p><font face="Courier New" color="navy" size="1"><span style="FONT-SIZE: 9pt; COLOR: navy"><br>Thanks,</span></font></p>
<p><font face="Courier New" color="navy" size="1"><span style="FONT-SIZE: 9pt; COLOR: navy">Palle</span></font></p>
<p style="VERTICAL-ALIGN: top"><font face="Courier New" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> </span></font></p>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt"> </span></font></p></div></div></div></div><br>-------------------------------------------------------------------------<br>This SF.net email is sponsored by: Microsoft<br>
Defy all challenges. Microsoft(R) Visual Studio 2008.<br><a href="http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/" target="_blank">http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/</a><br>_______________________________________________<br>
Nagios-users mailing list<br><a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>::: Messages without supporting info will risk being sent to /dev/null<br></blockquote></div><br>