WMI Test problem

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
RobR
Posts: 5
Joined: Tue Jun 07, 2005 2:40 am
Location: The Netherlands

WMI Test problem

Post by RobR »

Hi there,

We have the following problem with WMI Tests:

When i try to build a WMI query from within a WMI Test to check a W2K3 machine, i get an "Access Denied" error.
Somewhere in this forum stands a solution for this problem, but that does not work for us.

Strange thing is when we start WMI Exlorer by itself (on the machine where Hostmonitor runs) and connect to a W2K3 machine (same as above), it works. I can make a query, and i get a result. When i copy the query to the test, refresh it, and yes we've got again an "Access Denied" error.

Maybe there is a simple solution, but we can not find it on this moment.

We are working with HostMonitor V 5.88 Enterprise on a W2k3 server.

O yeah, when we use WMI Test to check a W2K machine, there is no problem at all.

Hopefully you can help us with this problem.

Greetings,

Rob
Yoorix
Posts: 177
Joined: Wed Dec 14, 2005 8:28 am

Post by Yoorix »

I think you should use Connection Manager dialog to setup account for WMI test.

The following article describes how to troubleshoot "Access is denied" error: http://www.microforge.net/kb/62

Regards,
Yoorix
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Strange thing is when we start WMI Exlorer by itself (on the machine where Hostmonitor runs) and connect to a W2K3 machine (same as above), it works. I can make a query, and i get a result. When i copy the query to the test, refresh it, and yes we've got again an "Access Denied" error.
HostMonitor is started in service mode? What account do you use to run HostMonitor?

Regards
Alex
RobR
Posts: 5
Joined: Tue Jun 07, 2005 2:40 am
Location: The Netherlands

Post by RobR »

Alex,

Hostmonitor is indeed started as service. User is "Local System".

In the options:
Startup --> Service --> Logon As
we use as useraccount a Domain user which has Local Admin rights on every server.

Al other tests work perfectly (about 630 tests), only with the WMI test to a W2K3 machine we have problems.

Greetings,

Rob
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Strange.. HostMonitor and WMI Explorer uses the same library.
Could you try to start HostMonitor in application mode? Just for testing.

Regards
Alex
RobR
Posts: 5
Joined: Tue Jun 07, 2005 2:40 am
Location: The Netherlands

Post by RobR »

Alex,

When Hostmonitor runs in applicationmode everything works fine. WMIExplorer (started from within Hostmonitor) lets see me everything, When i start Hostmonitor as a service, the 'Access Denied' error is back again.


Greetings

Rob
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

This problem was fixed in version 5.86. Are you sure you are using HostMonitor 5.88? May be you have 2 instances? Old and new?

Regards
Alex
RobR
Posts: 5
Joined: Tue Jun 07, 2005 2:40 am
Location: The Netherlands

Post by RobR »

Hello Alex,

Sorry for my late reaction, but we still have the same problem. We discovered yet someting strange.

When we fill in a domain user who has local admin rights at options\startup\service, it wil work for al tests, except WMI. When we use the same user in the Connection Manager the WMI test works.

The only problem that we have with the last method is that we have to put 400 servers in Connection Manager.

Is there a difference between the 'Logon' by the connection Manager and the way impersonation works?

Greetings,

Rob
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

So, you did not specify user account for WMI test in Connection Manager? And that's why test did not work...
Is there a difference between the 'Logon' by the connection Manager and the way impersonation works?
Sure. Service page in the Options dialog allows you to specify account under which HostMonitor will be running on the system. This option almost equivalent to "Logon" option provided by standard Windows "Services" applet but allows you to work with HostMonitor's GUI.

While "Connection Manager" allows you to specify accounts that will be used for specific test methods and specific servers. Different test methods may require different authentication methods. E.g. HostMonitor uses different Windows API to connect to the server for WMI and for UNC test methods.

Regards
Alex
Puck
Posts: 14
Joined: Fri Jun 09, 2006 6:39 am

Post by Puck »

I just tried my first WMI test (using 6.04) and I am getting the same issue described here. HMA is running as a service with an account with domain admin access. All other tests are working but WMI fails with 'Access is Denied'. I had to create an entry in the Connection Manager for the server I am testing. Will I have to create an entry for every server in the company to test with WMI or can I use some sort of a wildcard or better yet can I tell it to just use the account HMA is running under.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Yes, you have to create record for each server.
H'm, probably we should add some option, like "use service account as default"... or better add "default account" option into Connection Manager.
I have added task into "to do" list. Medium priority

Regards
Alex
Post Reply