KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

Performance Counters tests stopped working

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting
View previous topic :: View next topic  
Author Message
Michael Siepen



Joined: 14 Sep 2009
Posts: 13
Location: Germany

PostPosted: Fri Nov 22, 2013 1:55 am    Post subject: Performance Counters tests stopped working Reply with quote

Hi there,

yesterday all tests using performance counters stopped working. Restarting HM or even the whole computer it's running on didn't solve the problem. If I try to reconfigure the tests it says that it can't connect to the server or states "Error: Der Wartevorgang wurde abgebrochen".
All the other tests work fine. The error appeared at 8pm, so no one was @work who could have changed something in our network.
Back to top
View user's profile Send private message
KS-Soft Europe



Joined: 16 May 2006
Posts: 2832

PostPosted: Fri Nov 22, 2013 9:16 am    Post subject: Reply with quote

Could you please check the following
1) Remote Registry service should be started on target system
2) Check if account that you are using for the test has KEY_READ access to the following registry key on target system:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows_NT\CurrentVersion\Perflib.
To view/change permissions to the registry key you can use the registry editor utility (Regedt32.exe).
3) no firewall between 2 system blocks TCP ports above 1024
4) perfProc.DLL should be enabled on target system

Microsoft provides "Extensible Counter List" utility.
This utility displays list of DLLs that are used to support Performance Counters, using the utility you may disable/enable specific DLLs.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Fri Nov 22, 2013 9:23 am    Post subject: Reply with quote

What can we say without access to your system? We have no information about your system, firewall settings, antivirus monitor, we don't know what software do you use, what Windows, Service Pack do you have installed. Nothing...

Quote:
If I try to reconfigure the tests it says that it can't connect to the server or states "Error: Der Wartevorgang wurde abgebrochen".

Performance Counter tests checks several different systems? all systems located in the same LAN, domain?

Quote:
All the other tests work fine.

What exactly other tests you are using to check the same target systems?
CPU Usage tests works fine?
WMI?
Process tests?
Tests performed directly by HostMonitor? RMA? HostMonitor/RMA version?

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
Michael Siepen



Joined: 14 Sep 2009
Posts: 13
Location: Germany

PostPosted: Mon Nov 25, 2013 1:51 am    Post subject: Reply with quote

Sorry, my fault.

HM itself runs on Windows 7 SP1, the Systems monitored are running on Windows Server 2008 SP2/2008R2 SP1. There're no firewalls active and the systems are on the same LAN segment. All systems are members of the same domain. The user running HM is member of domain admins group.

We check free disk space, free ram and active sessions on about 15 systems. Most of them are XenApp servers. The tests for active sessions still work fine and on some servers the tests for free ram, too.

The tests are performed directly by HM. We're using version 9.58.
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Mon Nov 25, 2013 6:54 am    Post subject: Reply with quote

Quote:
We check free disk space, free ram and active sessions

There is no "active sessions" test method. Probably you are using WMI test or Shell Script test method with some custom script?
Free ram? Do you mean "Memory" test method? Using SNMP or WMI protocol?
We are asking because we want to know what protocols work for sure.

If WMI tests work then problem should be related to Remote Registry service or PDH.DLL... Could you check status of this service on local and remote systems?
Could you setup CPU Usage test for the same target system? Works fine?

Quote:
The tests for active sessions still work fine and on some servers the tests for free ram, too.

This means some Memory tests return error? What exactly error?

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
Michael Siepen



Joined: 14 Sep 2009
Posts: 13
Location: Germany

PostPosted: Mon Nov 25, 2013 8:10 am    Post subject: Reply with quote

We're using this performance counter for active session test
"\\srv123\Terminaldienste\Aktive Sitzungen"

and this for free ram
"\\srv123\Arbeitsspeicher\Verfügbare MB"

CPU usage test works for all servers.

The remote registry service is running on all target systems.

Without changing anything the tests start working again for all but one server. I don't know why. I just checked on one server if remote registry service is working and if the user has access to the registry key you asked for.
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Mon Nov 25, 2013 8:43 am    Post subject: Reply with quote

We still do not understand what exactly symptoms did you have
Did CPU Usage and WMI related test work while Performance Counter tests did not?
Or they failed and restored at the same time?

Quote:
Without changing anything the tests start working again for all but one server. I don't know why.

May be there are some admins change router settings without letting you know?
What exactly error message returned by this failed test?

Quote:
I just checked on one server if remote registry service is working and if the user has access to the registry key you asked for.

and result was...? service running? DLLs enabled?

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
Michael Siepen



Joined: 14 Sep 2009
Posts: 13
Location: Germany

PostPosted: Tue Nov 26, 2013 1:01 am    Post subject: Reply with quote

On thursday at about 8pm most of the tests using performance counters stopped working. They ran into a timeout. CPU usage tests were still working. Afaik we're not running any WMI based tests.

During yesterday nearly all tests restored without changing anything

The error displayed was "Error: Der Wartevorgang wurde abgebrochen"
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Tue Nov 26, 2013 5:26 am    Post subject: Reply with quote

Lets make it clear:
- HostMonitor installed on Windows 7
- HostMonitor performs some Performance Counter tests for target systems hostA, hostB, hostC (Windows 2008). These tests return the following error "Error: Der Wartevorgang wurde abgebrochen"
- HostMonitor performs CPU Usage tests for the same systems hostA, hostB, hostC. These tests work fine.
Right?

CPU Usage uses the same protocols, ports, requires the same permissions as Performance Counter test but CPU Usage does not use Windows PDH API.
This means there is no network problem. There is no RPC or Remote Registry Service problem. There is no firewall problem. There is no permission related problem.
Looks like some PDH.DLL related problem. I am afraid only Microsoft can investigate this issue. Old versions of this DLL had various bugs but as we know it works stable since Windows 2003 SP2, Windows 7...

If this problem happens again, try to set OneByOne mode for Performance Counter tests
Quote from the manual
Quote:

Note #2 (bugs): Windows implementation of performance counters has bugs. E.g., Windows 2000 (Professional, Server, and Advanced Server editions) can produce memory leak in PDH.DLL when user (application) querying performance counter that does not exist. This bug fixed in SP2. Also PDH.DLL does not work correctly with multithread applications.
That's why in HostMonitor we have implemented several different methods to work with pdh.dll:

MultiThread - allows to start several tests in separate threads (fastest method)
OneByOne - HostMonitor starts Performance Counter tests one by one
Smart - multithreading model, HostMonitor tries to reload pdh.dll when error occurs
External - HostMonitor uses external (perfobj.exe) utility to perform the tests. This is fast and most reliable method.
You can specify which test mode will be used on Miscellaneous page in the Options dialog.


Quote:
Afaik we're not running any WMI based tests.

You said you are using "Drive Free Space" and Memory test methods (if " free ram" means Memory test method). These tests may use WMI protocol (depends on settings)

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

KS-Soft Forum Index