WMI test needs re-registering of admin credentials

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
thomasschmeidl
Posts: 166
Joined: Sat Apr 15, 2006 2:14 pm
Location: Germany, Bavaria

WMI test needs re-registering of admin credentials

Post by thomasschmeidl »

HM 6.74 on W2003 running as service with the credentials of ourDomain\Administrator registered in options - startup - service - "logon as - use account ...".

All servers tested are domain members.
All tests are working pretty well except the WMI tests:

WMI tests only work after registering exactly the same credentials in the connection manager. Otherwise the test fails with the reply "access denied"

Q1: Which account is used for the WMI-tests?
Q2: Which is the order in which the connection manager records are used?

Regards

Thomas
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Re: WMI test needs re-registering of admin credentials

Post by KS-Soft Europe »

thomasschmeidl wrote:WMI tests only work after registering exactly the same credentials in the connection manager. Otherwise the test fails with the reply "access denied"
Hm. Strange. Could you enable "Audit" on target machine, and try to catch the difference between records in "Security" log of the "Event Viewer" applet, recorded by Hostmonitor with and without an account in "Connection Manager"?
thomasschmeidl wrote:Q1: Which account is used for the WMI-tests?
For the "WMI" tests HostMonitor uses account specified in "Connection manager". If there are no records in "Connection Manager" or account does not have enough permission, HostMonitor uses an account, which it is started under.
thomasschmeidl wrote:Q2: Which is the order in which the connection manager records are used?
Do you mean, you have several records for the same server, but for different tests in "Connection Manager"? HostMonitor uses connection manager's data on demand and do not sort data.

Regards,
Max
Nadir
Posts: 264
Joined: Mon Aug 29, 2005 2:01 am

Post by Nadir »

I have the same probleme but WMI test is executed by RMA.
RMA service is started with domain admin credentials.
All other perfmon tests works fine, but WMi test reply Access denied.
If I add domain admin account in "Connection manager" it work fine

AHM 6.54 on W2K3 US
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Actually this is correct behaviour. You should use Connection Manager

Regards
Alex
thomasschmeidl
Posts: 166
Joined: Sat Apr 15, 2006 2:14 pm
Location: Germany, Bavaria

Post by thomasschmeidl »

Thanks for your your reply, Alex,

again some questions:

E.g: We have 50 servers (S1 ... S50) for which common credentials are valid and one server (S51) that needs special credentials. So I would create two records in connection manager:
- Ressource: *; Server: *; common credentials
- Ressource: S51; Server: S51; special credentials.

Q1: Is that correct?
Q2: What about the order of the records?
Q3: Which credentials are used for WMI tests, when there are no records in connection manager?
Q4: Which credentials are used if there is more than one fitting record in connection manager
Q5: There seems to be a cache (I removed the records in connection manager and the test went on working for some hours until it failed). How can I clear the cache without restarting service?

Thanks in advance

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

Post by KS-Soft »

E.g: We have 50 servers (S1 ... S50) for which common credentials are valid and one server (S51) that needs special credentials. So I would create two records in connection manager:
- Ressource: *; Server: *; common credentials
- Ressource: S51; Server: S51; special credentials.
Q1: Is that correct?
Correct
Q2: What about the order of the records?
Which credentials are used if there is more than one fitting record in connection manager
HostMonitor looks for record that exactly matches server name (or resource name for file related tests), then it checks more or less fitting records, like *
Which credentials are used for WMI tests, when there are no records in connection manager?
In such case HostMonitor uses empty username and password when it calls Windows API, the rest is up to the Windows.
Q5: There seems to be a cache (I removed the records in connection manager and the test went on working for some hours until it failed). How can I clear the cache without restarting service?
HostMonitor does not use any cache. Windows? I do not see such information in Microsoft manuals, but everything is possible :roll:

Regards
Alex
Post Reply