Dear All:
 
I am using pnsclient on Windows servers as Nagios agent.
 
Any Solution for this problem?
 
Regards,
Ajay

  -----Original Message-----
From: Anthony Montibello [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 06, 2006 9:38 PM
To: nagios-users@lists.sourceforge.net
Cc: M V Ajay (vMoksha)
Subject: Re: [Nagios-users] Problem: Perfmon counter gives wrong results
while using check_nt


Hi,
 
If your windows agent is NC_NEt, I know the reason why,
It has to do with delay between taking samples of the performance counter
object before reporting it to back to check_nt
 
To elaborate, most Performance monitor objects in windows takes a sample
every one second then return the caalculated results to Performance monitor
for graphing.  
 
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.
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. 
Note: NC_NEt would report a -1 if the it could not locate the counter
because of an error or spelling.
but a 0 means really 0 or the above mentioned bug.
 
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. 
 
As a workaround you may be able to retrieve the value you need through WMI
 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.
 
NC_NEt is availible at sourceforge: http://sourceforge.net/projects/nc-net
<http://sourceforge.net/projects/nc-net> 
 
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.
Thank you 
 
TOny   (Author of NC_NEt)
 
On 12/5/06, M V Ajay (vMoksha) <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> > wrote: 

Dear All: 

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

Below is the Microsoft Exchange counter: 
Object: MSExchangeMTA Connections 
Counter: Queue Length 
Instance: (INTERNET MAIL CONNECTOR (MAILHOST001)) 

When I run the plugin command mannualy I get, 

./check_nt -s nagiosagentpassword -H mailhost001 -v COUNTER -l
"\MSExchangeMTA Connections(INTERNET MAIL CONNECTOR (MAILHOST001))\Queue
Length"

0.000000 

and output is always 0. 
But if I use windows perfmon, I get the proper results. 

Any idea why this is not working? 

Regards, 
Ajay 


--------------------------------------------------------- 
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. 

--------------------------------------------------------- 


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT 
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php
<http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>
&p=sourceforge&CID=DEVDEV

_______________________________________________
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
<mailto:Nagios-users@lists.sourceforge.net> 
https://lists.sourceforge.net/lists/listinfo/nagios-users
<https://lists.sourceforge.net/lists/listinfo/nagios-users> 
::: Please include Nagios version, plugin version (-v) and OS when reporting
any issue.
::: Messages without supporting info will risk being sent to /dev/null






--------------------------------------------------------- 
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. 
---------------------------------------------------------
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Reply via email to