Hi,
We are trying to use the Windows Performance Monitor plugin, but we're having difficulties.
I followed Windows Performance Monitor and How To Retrieve Performance Metrics with Windows Performance Monitor.
Indeed, if I open a cmd prompt on the Windows Collector machine running as the _svc-dynmon user, I can execute the test "typeperf -sc 2 "\\HOST.DOMAIN.TLD\Memory\Available MBytes" " and get the data. So I would think that the permissions and networking are OK.
I checked that the Collector Service is set to run as this "_svc-dynmon user" (Log On tab) and the user as full access to the dT collector installation directory.
I went in the dynaTrace client to setup a Windows Performance Monitor on the host HOST.DOMAIN.TLD (and I selected my dynaTrace Windows Collector as the execution target).
This is the result when I launch the monitor:
Result Status: failed
Result: Last polling execution failed
Reason for failure: External error occurred
Error message: Connection problem
Detailed error message: Connecting to the host 'HOST.DOMAIN.TLD' caused exception: failed to initialize perfmon library. cause:Unable to initialize PerformanceCounter Object. Please check if the host is reachable and the requested Performance Counter is available. Detailed error message: Unable to connect to the specified computer or the computer is offline.
(System error code: 0x800007D0)
This "connecting problem" is rather strange since I can execute typeperf -sc 2 "\\HOST.DOMAIN.TLD\Memory\Available MBytes" no problem on the command line (it takes about 5-7 seconds, but I get the expected result).
Any idea? Do I need to put the com.dynatrace.diagnostics.plugins.PerfMonitor_5.6.0.5802.jar plugin in the Plugins directory of my collector (I tried, didn't help)
Thank you,
Alexandre
Answer by Andreas G. ·
Thanks for the update. I am not an expert when it comes to windows user groups and privilidges. Good you figure out a way to make this work - even though I am not sure why it also needs Admin rights. Maybe somebody else that reads this forum post and shed some lights on the internals of windows security
Andi
Answer by alexandre.leveille@sunmedia.ca ·
Hi,
Just figured out while I was double-checking the user access rights. Turns out that I had to put the user in the Administrator group on the Collector machine.
The user, shared across the Collector machine and monitored target machines, is a domain user and member of the "Performance Monitor Users" on the monitored machines. I though I would try adding it to the "Performance Monitor Users" on the Collector. It didn't help so I tried "Administrator", just for the kicks of it. And it worked. This user has Full Control on the dynaTrace 5.6.0 directory, so it must be something else.
Answer by Andreas G. ·
That is reallly odd. It basically means that the Plugin cannot load the windows perfmon library. Here are some ideas
a) Please double check that you choose the right Collector for your Monitor Definition. It has to be the Windows Collector you have setup
b) Make sure that the user name you specified does have the remote registry access permission. I know you said you tested this - but - just a sanity check
c) Have a look at the Plugin Log File - accessible via System Information Dashlet -> Your Collector -> Log Files. Maybe there is additonal information that can help us
d) make sure that the host you specified in the list of hosts has a name that can be resolved from your Collector
Andi
Answer by alexandre.leveille@sunmedia.ca ·
Also, I've got nothing in the com.dynatrace.diagnostics.plugins.PerfPluginMonitor.0.0 file and not much in the other log files on the collector :/
JANUARY 15, 3:00 PM GMT / 10:00 AM ET