<div>The Check command from the Nagios v3.x Documentation should be better to use in most situations:</div>
<div><pre>define command{
        command_name    check_nt
        command_line    $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v $ARG1$ $ARG2$
        }
</pre><pre>(make sure port matches your systems and change it to check_nc_net if using it in place of check_nt)</pre><pre>as for the service definition the problems with the one you proposed was A) it is missing the instance, B) it mispelled the counter name, avg. instead of average
</pre><pre>If you upgrade to NC_NEt then the Counter name, counter instaces and the Counter Category could have been checked remotly. using ENUMCOUNTER and INSTANCES (check_nc_net is required to use these commands and it is backwards compatible with Check_nt)
</pre><pre>From the command line this is the prefered syntex if your using NC_NEt because it eliminates the \ and () making the parsing of instance and catagory a bit easier. (this syntex works when using either check_nt and check_nc_net. on NC_NEt only)
</pre><pre>./check_nt -H notebook1 -v COUNTER -l '^PhysicalDisk^_total^avg. disk sec/write'<br>otherwise the older command line syntex that should work on most clients(including NC_NEt):</pre><pre>./check_nt -H notebook1 -v COUNTER -l '\PhysicalDisk(_total)\avg. disk sec/write'
<br></pre><pre>For the Service definition using the above check command would look like: (only valid for NC_NEt)</pre><pre>check_command check_nt!COUNTER!-l '^PhysicalDisk^_total^avg. disk sec/write' -w 2 -c 5<br>
</pre><pre>For all other check_nt hosts the syntex would be:</pre><pre>        check_command  check_nt!COUNTER!-l '\\PhysicalDisk(_total)\\avg. disk sec/write' -w 2 -c 5</pre><pre> </pre><pre>once again, most of this information should be availible in documentation and in help files, I know NC_NEt has this information in its "./check_nc_net --help=COUNTER" as well as in its documentaion.     
<br></pre><pre>Tony (Author of NC_NET)</pre><pre><span class="gmail_quote">On 4/19/07, <b class="gmail_sendername">Marc Jonkers</b> <<a href="mailto:MarcJonkers@mgzl.nl">MarcJonkers@mgzl.nl</a>> wrote:</span></pre></div>

<div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">Hi Anthony,</font></span></div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2"></font></span> </div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">What is then the exact syntax?</font></span></div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2"></font></span> </div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">This will not work:</font></span></div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2"></font></span> </div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">define command{<br>        command_name    check_nt_disc_average_sec_write<br>        command_line    $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v "PhysicalDisk\Average Disk sec/Write" -l $ARG1$ -w $ARG2$ -c $ARG3$
<br>}<br></font></span></div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2"></font></span> </div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">thx,</font></span></div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2"></font></span> </div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">Marc</font></span></div><font face="Arial" color="#0000ff" size="2"></font><br>
<div lang="nl" dir="ltr" align="left">
<hr>
<font face="Tahoma" size="2"><b>Van:</b> <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:nagios-users-bounces@lists.sourceforge.net" target="_blank">nagios-users-bounces@lists.sourceforge.net</a> [mailto:
<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:nagios-users-bounces@lists.sourceforge.net" target="_blank">nagios-users-bounces@lists.sourceforge.net</a>] <b>Namens </b>Anthony Montibello<br><b>Verzonden:
</b> 19 april 2007 14:26<br><b>Aan:</b> Nagios Users Mailinglist<br><b>Onderwerp:</b> Re: [Nagios-users] example how to monitor a performance counterfrom windows with nsclient?[Scanned]<br></font><br> </div>
<div></div>
<div>Hi Marc,</div>
<div> </div>
<div>Install a widows plugin onto the Windows Host.</div>
<div>I recomend NC_NEt, then use check_nt or compile and use check_nc_net</div>
<div>if using check_nc_net the syntex is in the help "check_nc_net --help=COUNTER"</div>
<div> </div>
<div>nc_net is availible from sourceforge: <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://sourceforge.net/projects/nc-net" target="_blank">http://sourceforge.net/projects/nc-net</a></div>
<div> </div>
<div>There are also other plugins availibles for monitoring windows. see nagios exchange or review through this mailing lists archives.</div>
<div> </div>
<div>Good Luck,</div>
<div>Tony (author of NC_net)<br><br> </div>
<div><span class="gmail_quote">On 4/19/07, <b class="gmail_sendername">Marc Jonkers</b> <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:MarcJonkers@mgzl.nl" target="_blank">MarcJonkers@mgzl.nl</a>
> wrote:</span> 
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div dir="ltr" align="left"><span><font face="Arial"><font size="2">H<span>i,</span></font></font></span></div>
<div dir="ltr" align="left"><span><font face="Arial"><font size="2"><span></span></font></font></span> </div>
<div dir="ltr" align="left"><span><font face="Arial"><font size="2"><span>Has somebody a example of the checkcommands.cfg for me with a performance counter for Windows 2003?</span></font></font></span></div>
<div dir="ltr" align="left"><span><font face="Arial"><font size="2"><span>I want to monitor <a><font color="#000000">Check Average Disc sec/Write</font></a>.</span></font></font></span></div>
<div dir="ltr" align="left"><span><font face="Arial"><font size="2"><span></span></font></font></span> </div>
<div dir="ltr" align="left"><span><font face="Arial"><font size="2"><span>thx,</span></font></font></span></div>
<div dir="ltr" align="left"><span><font face="Arial"><font size="2"><span></span></font></font></span> </div>
<div dir="ltr" align="left"><span><font face="Arial"><font size="2"><span>Marc</span></font></font></span></div></div><br>-------------------------------------------------------------------------<br>This SF.net email is sponsored by DB2 Express 
<br>Download DB2 Express C - the FREE version of DB2 express and take<br>control of your XML. No limits. Just data. Click to get it now.<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://sourceforge.net/powerbar/db2/" target="_blank">
http://sourceforge.net/powerbar/db2/</a><br>_______________________________________________<br>Nagios-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Nagios-users@lists.sourceforge.net" target="_blank">
Nagios-users@lists.sourceforge.net</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" 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> </div></blockquote></div>
<br>