Hi Guys,
Okay I'm confused :). So WMI sensors work from Paessler ONLY if I define Administrator account in Device setup.
However if I defined non-admin account (with proper permissions for DCOM and remote access) - it doesn't want to work at all and ALWAYS give me this:
Connection could not be established (80070005: Access is denied - Host: 192.168.2.10, User: PaesslerUser, Password: ......., Domain: ntlmdomain:) (code: PE015)
However if I'm going to machine that host Paessler tool and write a simple script
strComputer = "192.168.2.10" Set objSWbemLocator = CreateObject("WbemScripting.SWbemLocator") Set objSWbemServices = objSWbemLocator.ConnectServer _ (strComputer, "root\cimv2", _ "PaesslerUser", "pass") Set colProcessList = objSWbemServices.ExecQuery( _ "Select * From Win32_Processor") For Each objProcess in colProcessList Wscript.Echo "Process Name: " & objProcess.Name Next
and then run it from command line:
I get connection and result properly, as you see here
C:\>cscript test.vbs Microsoft (R) Windows Script Host Version 5.8 Copyright (C) Microsoft Corporation. All rights reserved.
Process Name: Intel(R) Xeon(R) CPU X5680 @ 3.33GHz
I set all DCOM settings properly (remote connection, access to tree and subtrees in WMI) as you can see. The target machine runs Windows Server 2008 R2 Web Edition.
Any ideas what I can do?
Article Comments
Hello,
Please check that your user is a local admin on the target machine and also a member of the "Performance Log Users" group on the target machine.
Regards,
Feb, 2012 - Permalink
Hello,
please bear in mind, that it's not PRTG or us who lay down the rules and permissions with WMI Classes and DCOM. This is done by Microsoft, so if an Admin account does not work with certain WMI Queries, please ask the guys in Redmond.
The difference in this case may very well be, that the script is running under your account, whereas the PRTG Probe Service may be running under the default "LOCAL SYSTEM" account.
best regards.
Feb, 2012 - Permalink