<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:blue;
text-decoration:underline;}
p
{mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman";}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Courier New";
color:navy;
font-weight:normal;
font-style:normal;
text-decoration:none none;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=blue>
<div class=Section1>
<p class=MsoNormal><font size=1 color=navy face="Courier New"><span
style='font-size:9.0pt;font-family:"Courier New";color:navy'>Thanks for the
help,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 color=navy face="Courier New"><span
style='font-size:9.0pt;font-family:"Courier New";color:navy'>> </span></font>the
-l is not needed since it is in the check command<o:p></o:p></p>
<p class=MsoNormal><font size=1 color=navy face="Courier New"><span
style='font-size:9.0pt;font-family:"Courier New";color:navy'>I also tried with
and without the -l<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 color=navy face="Courier New"><span
style='font-size:9.0pt;font-family:"Courier New";color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=1 color=navy face="Courier New"><span
style='font-size:9.0pt;font-family:"Courier New";color:navy'>Unfortunately did
this not work either, any other suggestions?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 color=navy face="Courier New"><span
style='font-size:9.0pt;font-family:"Courier New";color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=1 color=navy face="Courier New"><span
style='font-size:9.0pt;font-family:"Courier New";color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=1 color=navy face="Courier New"><span
style='font-size:9.0pt;font-family:"Courier New";color:navy'>Thanks,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 color=navy face="Courier New"><span
style='font-size:9.0pt;font-family:"Courier New";color:navy'>Palle<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 color=navy face="Courier New"><span
style='font-size:9.0pt;font-family:"Courier New";color:navy'><o:p> </o:p></span></font></p>
<div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
nagios-users-bounces@lists.sourceforge.net
[mailto:nagios-users-bounces@lists.sourceforge.net] <b><span style='font-weight:
bold'>On Behalf Of </span></b>Anthony Montibello<br>
<b><span style='font-weight:bold'>Sent:</span></b> Tuesday, January 29, 2008
7:36 PM<br>
<b><span style='font-weight:bold'>To:</span></b>
narendran.neelamegam@wipro.com; palleje@gmail.com;
nagios-users@lists.sourceforge.net<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [Nagios-users]
check_nt: Could not parse arguments</span></font><o:p></o:p></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Hi, <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>To help clarify, -s is for the password while $ARG1$ was missing from
the orriginal command causing the missing ARGUMENT error<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>THe Hostname is needed since the plugin does not know what host it is
without that.<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>the port in this case is needed since check_nt.c compiles with the
default port of 1248<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>the -l is not needed since it is in the check command<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>define command{<br>
command_name
check_nt_cpu<br>
<font color=black><span style='color:black'>$USER1$/check_nt -H $HOSTADDRESS$
-p 12489 -s $USER7$ $ARG1$</span></font><br>
}<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>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>
}<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Tony (Author of NC_NEt)<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>On Jan 29, 2008 2:51 PM, <<a
href="mailto:narendran.neelamegam@wipro.com">narendran.neelamegam@wipro.com</a>>
wrote:<o:p></o:p></span></font></p>
<div vlink=purple link=blue>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>Should your command be</span></font><o:p></o:p></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Times New Roman"><span
style='font-size:10.0pt;color:black'>$USER1$/check_nt -H $HOSTADDRESS$ -p 12489
-v CPULOAD -l $ARG1$</span></font><o:p></o:p></p>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:navy'>check_nt -H
$HOSTADDRESS$ -p 12489 </span></font><font size=2 color=red face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:red'>-s $USER7$</span></font><o:p></o:p></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
</div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center>
</span></font></div>
<p class=MsoNormal style='margin-bottom:12.0pt'><b><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>From:</span></font></b><font
size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> <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><span
style='font-weight:bold'>On Behalf Of </span></b>Palle L Jensen<br>
<b><span style='font-weight:bold'>Sent:</span></b> Tuesday, January 29, 2008
10:32 PM<br>
<b><span style='font-weight:bold'>To:</span></b> Nagios Users<br>
<b><span style='font-weight:bold'>Subject:</span></b> [Nagios-users] check_nt:
Could not parse arguments</span></font><o:p></o:p></p>
<div>
<div>
<div>
<p><font size=1 color=navy face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New";color:navy'> </span></font><o:p></o:p></p>
<p><font size=1 color=navy face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New";color:navy'>Morning all,</span></font><o:p></o:p></p>
<p><font size=1 color=navy face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New";color:navy'> </span></font><o:p></o:p></p>
<p><font size=1 color=navy face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New";color:navy'>I am having an issue with adding cpuload
monitoring on windows machines.</span></font><o:p></o:p></p>
<p><font size=1 color=navy face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New";color:navy'>I know there are no issues on the windows
side since I have other services being monitored with no problems.</span></font><o:p></o:p></p>
<p><font size=1 color=navy face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New";color:navy'>Also the error message tells me the
arguments that are specified are not correct.</span></font><o:p></o:p></p>
<p><font size=1 color=navy face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New";color:navy'>I have google'd, and checked the Nagios
documentation and tried different ways, but non works.</span></font><o:p></o:p></p>
<p><font size=1 color=navy face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New";color:navy'>And this is were I am at now. Could
anyone look this over and tell me what is wrong?</span></font><o:p></o:p></p>
<p><font size=1 color=navy face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New";color:navy'>- Error:</span></font> <font size=1
color=navy face="Courier New"><span style='font-size:9.0pt;font-family:"Courier New";
color:navy'>check_nt: Could not parse arguments</span></font><o:p></o:p></p>
<p><font size=1 color=navy face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New";color:navy'> </span></font><o:p></o:p></p>
<p><font size=1 color=navy face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New";color:navy'>- Check command definition:</span></font><o:p></o:p></p>
<p><font size=1 color=navy face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New";color:navy'> </span></font><o:p></o:p></p>
<p><font size=1 color=navy face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New";color:navy'>define command{</span></font><o:p></o:p></p>
<p><font size=1 color=navy face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New";color:navy'>
command_name check_nt_cpu</span></font><o:p></o:p></p>
<p><font size=1 color=navy face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New";color:navy'>
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -s
$USER7$</span></font><o:p></o:p></p>
<p><font size=1 color=navy face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New";color:navy'> </span></font><o:p></o:p></p>
<p><font size=1 color=navy face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New";color:navy'> </span></font><o:p></o:p></p>
<p><font size=1 color=navy face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New";color:navy'>- Service definition:</span></font><o:p></o:p></p>
<p><font size=1 color=navy face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New";color:navy'> </span></font><o:p></o:p></p>
<p><font size=1 color=navy face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New";color:navy'>define service{</span></font><o:p></o:p></p>
<p><font size=1 color=navy face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New";color:navy'>
use
generic-service</span></font><o:p></o:p></p>
<p><font size=1 color=navy face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New";color:navy'>
host_name
host001</span></font><o:p></o:p></p>
<p><font size=1 color=navy face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New";color:navy'>
service_description CPU load</span></font><o:p></o:p></p>
<p><font size=1 color=navy face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New";color:navy'>
servicegroups load</span></font><o:p></o:p></p>
<p><font size=1 color=navy face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New";color:navy'>
check_command check_nt_cpu!CPULOAD!
-l 5,80,90</span></font><o:p></o:p></p>
<p><font size=1 color=navy face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New";color:navy'> }</span></font><o:p></o:p></p>
<p><font size=1 color=navy face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New";color:navy'><br>
Thanks,</span></font><o:p></o:p></p>
<p><font size=1 color=navy face="Courier New"><span style='font-size:9.0pt;
font-family:"Courier New";color:navy'>Palle</span></font><o:p></o:p></p>
<p style='vertical-align:top'><font size=2 color=navy face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:navy'> </span></font><o:p></o:p></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> <o:p></o:p></span></font></p>
</div>
</div>
</div>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><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<o:p></o:p></span></font></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
</div>
</div>
</body>
</html>