<div><br>Hi Giles,</div>
<div> </div>
<div>I am glad this was mentioned,</div>
<div>This is actually a issue that I want to elaborate on, </div>
<div> </div>
<div>The problem is not the command line, </div>
<div>but the counter itself, </div>
<div>Since a 0 was returned, the command line is fine, if it had an issue command you would have recieved a -1  (you can test this, just misspel the counter)</div>
<div> </div>
<div>the issue here is that counter needs to have 2 samples taken before reporting the answer back to check_nt.</div>
<div>If the time between the samples is too small it would always report a 0,</div>
<div>if the time is too large it would increase the time that check_nt is waiting for a result. </div>
<div> </div>
<div>Preformance counter in windows uses a 1s delay between samples, NC_Net to expidite responce time uses a default of 15ms.  I found this value to be good for most counters. (the performance counter viewer tool I created also uses 1s )
</div>
<div> </div>
<div>Solution change the sampledelay to a higher value, This can be done remotly on the fly, but it must be changed in the startup.cfg for NC_NEt to use it at startup.</div>
<div> </div>
<div>you can do this through check_nc_net use -v CONFIG -l "sampledelay,1000" to update the delay to a full second or you may find updating to 0.1s sufficient -l "sampledelay,100"</div>
<div> </div>
<div>I hope this clears up the issue, </div>
<div>please let me know if anyone needs clarification, </div>
<div>or this topic could always be brought over to the NC_NEt forunm on sourceforge.</div>
<div><a href="http://sourceforge.net/projects/nc-net">http://sourceforge.net/projects/nc-net</a></div>
<div> </div>
<div> </div>
<div>Tony (Author of NC_NEt)</div>
<div> </div>
<div><span class="gmail_quote">On 9/12/07, <b class="gmail_sendername">Giles Coochey</b> <<a href="mailto:gcoochey@sapphire.gi">gcoochey@sapphire.gi</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div vlink="purple" link="blue">
<div>
<p><font face="Arial" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hello List,</span></font></p>
<p><font face="Arial" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> </span></font></p>
<p><font face="Arial" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I've been experimenting with check_nt and check_nc_net (I have Nc_Net installed on a test server and have had this same problem with both UNIX plugins).
</span></font></p>
<p><font face="Arial" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> </span></font></p>
<p><font face="Arial" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">The server is 2003, English version</span></font></p>
<p><font face="Arial" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> </span></font></p>
<p><font face="Arial" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">The commands which demonstrate working and not working examples are:</span></font></p>
<p><font face="Arial" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> </span></font></p>
<p><font face="Arial" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Not working:</span></font></p>
<p><font face="Arial" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> </span></font></p>
<p><b><font face="Courier New" size="1"><span style="FONT-WEIGHT: bold; FONT-SIZE: 9pt"># ./check_nc_net -H windowssys -v COUNTER -l "\\MSExchangeMTA\\Disk File Deletes/sec"</span></font></b></p>
<p><b><font face="Courier New" size="1"><span style="FONT-WEIGHT: bold; FONT-SIZE: 9pt">\MSExchangeMTA\Disk File Deletes/sec = 0.00</span></font></b></p>
<p><font face="Arial" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> </span></font></p>
<p><font face="Arial" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Working:</span></font></p>
<p><font face="Arial" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> </span></font></p>
<p><b><font face="Courier New" size="1"><span style="FONT-WEIGHT: bold; FONT-SIZE: 9pt"># ./check_nc_net -H windowssys -v COUNTER -l "\\MSExchangeMTA\\Free Elements"</span></font></b></p>
<p><b><font face="Courier New" size="1"><span style="FONT-WEIGHT: bold; FONT-SIZE: 9pt">\MSExchangeMTA\Free Elements = 7.00</span></font></b></p>
<p><font face="Arial" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> </span></font></p>
<p><font face="Arial" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">It seems to me that any COUNTER that has a forwardslash in its name returns zero.</span></font></p>
<p><font face="Arial" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> </span></font></p>
<p><font face="Arial" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I checked actual values on the server using the local performance counter viewer provided with nc_net and the values are not zero.</span></font>
</p>
<p><font face="Arial" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> </span></font></p>
<p><font face="Arial" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">These are just examples, but I get the same results for \memory\pages/sec and others, it doesn't matter whether I use the ^ notation either.
</span></font></p>
<p><font face="Arial" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> </span></font></p>
<p><font face="Arial" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I tried googling, but didn't get anything relevant, this is NC_Net_V4.1a installed via the MSI package.</span></font></p>
<p><font face="Arial" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> </span></font></p>
<p><font face="Arial" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Otherwise, everything seems to be working OK.</span></font></p>
<p><font face="Arial" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> </span></font></p>
<p><font face="Arial" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hope someone has either come across this problem or has some ideas, I don't should I should need to escape a "/" should I?</span></font></p>

<p><font face="Arial" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> </span></font></p>
<p><font face="Arial" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Thanks</span></font></p>
<p><font face="Arial" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><br>Giles</span></font></p></div></div><br>-------------------------------------------------------------------------<br>This SF.net email is sponsored by: Microsoft
<br>Defy all challenges. Microsoft(R) Visual Studio 2005.<br><a onclick="return top.js.OpenExtLink(window,event,this)" 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 onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Nagios-users@lists.sourceforge.net">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>