<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>

<META content="MSHTML 6.00.3790.218" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=063085710-07122006>Dear 
All:</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=063085710-07122006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=063085710-07122006>I am 
using pnsclient on Windows servers as Nagios agent.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=063085710-07122006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=063085710-07122006>Any 
Solution for this problem?</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=063085710-07122006>Regards,</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=063085710-07122006>Ajay</SPAN></FONT></DIV>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT 
  face=Tahoma><FONT size=2><SPAN class=063085710-07122006><FONT face=Arial 
  color=#0000ff>  </FONT></SPAN>-----Original 
  Message-----<BR><B>From:</B> Anthony Montibello [mailto:amontibello@gmail.com] 
  <BR><B>Sent:</B> Wednesday, December 06, 2006 9:38 PM<BR><B>To:</B> 
  nagios-users@lists.sourceforge.net<BR><B>Cc:</B> M V Ajay 
  (vMoksha)<BR><B>Subject:</B> Re: [Nagios-users] Problem: Perfmon counter gives 
  wrong results while using check_nt<BR><BR></FONT></FONT></DIV>
  <DIV>Hi,</DIV>
  <DIV> </DIV>
  <DIV>If your windows agent is NC_NEt, I know the reason why,</DIV>
  <DIV>It has to do with delay between taking samples of the performance counter 
  object before reporting it to back to check_nt</DIV>
  <DIV> </DIV>
  <DIV>To elaborate, most Performance monitor objects in windows takes a sample 
  every one second then return the caalculated results to Performance monitor 
  for graphing.  </DIV>
  <DIV> </DIV>
  <DIV>NC_NEt does not wait a full second for this to happen, and in the 
  current inplementation it is actually too quick between samples and thus gives 
  a result of 0.</DIV>
  <DIV>I have experimented with different delay times (in Miliseconds) and found 
  a good speed/accuraccy compromise that I will implement as adjustable variable 
  in the configuration of the next release of NC_NEt. </DIV>
  <DIV>Note: NC_NEt would report a -1 if the it could not locate the counter 
  because of an error or spelling.</DIV>
  <DIV>but a 0 means really 0 or the above mentioned bug.</DIV>
  <DIV> </DIV>
  <DIV>Just to defend NC_NEt.  in the past, this bug slipped through due to 
  the Performance counter documentation of Dot NEt specifying just to call the 
  get sample function again, and the documentation failed to mention any 
  standards as to a minimum delay between requests.  Also most of 
  NC_NEt testing in the past has been done offline of 
  Nagios.  I am about to install nagios for testing, and 
  hopefully would have that running by the time I get the updates into 
  NC_Net. </DIV>
  <DIV> </DIV>
  <DIV>As a workaround you may be able to retrieve the value you need through 
  WMI</DIV>
  <DIV> or by creating a custom performance counter that is of a different 
  type but gets its value from the one that is mis-informing NC_NEt.</DIV>
  <DIV> </DIV>
  <DIV>NC_NEt is availible at sourceforge: <A 
  href="http://sourceforge.net/projects/nc-net">http://sourceforge.net/projects/nc-net</A></DIV>
  <DIV> </DIV>
  <DIV>If it was a different Windows Client then I do not know the source of the 
  reason but next generation of NC_Net should work more efficiently.</DIV>
  <DIV>Thank you </DIV>
  <DIV> </DIV>
  <DIV>TOny   (Author of NC_NEt)<BR> </DIV>
  <DIV><SPAN class=gmail_quote>On 12/5/06, <B class=gmail_sendername>M V Ajay 
  (vMoksha)</B> <<A 
  href="mailto:Ajay.MV@ucb-group.com">Ajay.MV@ucb-group.com</A>> 
  wrote:</SPAN> 
  <BLOCKQUOTE class=gmail_quote 
  style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
    <DIV>
    <P><FONT face=Arial size=2>Dear All:</FONT> </P>
    <P><FONT face=Arial size=2>I am having problem in monitoring a particular 
    windows perfmon counter. All other counter gives proper results. I am using 
    check_nt (check_nt (nagios-plugins 1.4.3) 1.39) with Nagios Agent running on 
    WIndows NT 4.0, Exchange 5.5</FONT></P>
    <P><FONT face=Arial size=2>Below is the Microsoft Exchange counter:</FONT> 
    <BR><FONT face=Arial size=2>Object: MSExchangeMTA Connections</FONT> 
    <BR><FONT face=Arial size=2>Counter: Queue Length</FONT> <BR><FONT 
    face=Arial size=2>Instance: (INTERNET MAIL CONNECTOR (MAILHOST001))</FONT> 
    </P>
    <P><FONT face=Arial size=2>When I run the plugin command mannualy I 
    get,</FONT> </P>
    <P><FONT face=Arial size=2>./check_nt -s nagiosagentpassword -H mailhost001 
    -v COUNTER -l "\MSExchangeMTA Connections(INTERNET MAIL CONNECTOR 
    (MAILHOST001))\Queue Length"</FONT></P>
    <P><FONT face=Arial size=2>0.000000</FONT> </P>
    <P><FONT face=Arial size=2>and output is always 0.</FONT> <BR><FONT 
    face=Arial size=2>But if I use windows perfmon, I get the proper 
    results.</FONT> </P>
    <P><FONT face=Arial size=2>Any idea why this is not working?</FONT> </P>
    <P><FONT face=Arial size=2>Regards,</FONT> <BR><FONT face=Arial 
    color=#0000ff size=2>Ajay</FONT> </P><BR>
    <P><FONT face=Arial 
    size=2>--------------------------------------------------------- 
    </FONT><BR><FONT face=Arial size=2>Legal Notice: This electronic mail and 
    its attachments are intended solely for the person(s) to whom they are 
    addressed and contain information which is confidential or otherwise 
    protected from disclosure, except for the purpose for which they are 
    intended. Dissemination, distribution, or reproduction by anyone other than 
    the intended recipients is prohibited and may be illegal. If you are not an 
    intended recipient, please immediately inform the sender and return the 
    electronic mail and its attachments and destroy any copies which may be in 
    your possession. UCB screens electronic mails for viruses but does not 
    warrant that this electronic mail is free of any viruses. UCB accepts no 
    liability for any damage caused by any virus transmitted by this electronic 
    mail. </FONT></P>
    <P><FONT face=Arial 
    size=2>---------------------------------------------------------</FONT> 
    </P></DIV><BR>-------------------------------------------------------------------------<BR>Take 
    Surveys. Earn Cash. Influence the Future of IT <BR>Join SourceForge.net's 
    Techsay panel and you'll get the chance to share your<BR>opinions on IT 
    & business topics through brief surveys - and earn cash<BR><A 
    onclick="return top.js.OpenExtLink(window,event,this)" 
    href="http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV" 
    target=_blank>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV</A><BR><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><BR></BLOCKQUOTE></DIV><BR></BLOCKQUOTE></BODY></HTML>
<BR>
<BR>

<P><FONT SIZE=2 FACE="Arial">--------------------------------------------------------- </FONT></P>

<P><FONT SIZE=2 FACE="Arial">Legal Notice: This electronic mail and its attachments are intended solely for the person(s) to whom they are addressed and contain information which is confidential or otherwise protected from disclosure, except for the purpose for which they are intended. Dissemination, distribution, or reproduction by anyone other than the intended recipients is prohibited and may be illegal. If you are not an intended recipient, please immediately inform the sender and return the electronic mail and its attachments and destroy any copies which may be in your possession. UCB screens electronic mails for viruses but does not warrant that this electronic mail is free of any viruses. UCB accepts no liability for any damage caused by any virus transmitted by this electronic mail. </FONT></P>

<P><FONT SIZE=2 FACE="Arial">---------------------------------------------------------</FONT></P>