Remote testing that requires user credentials does not work

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
dannyhb
Posts: 3
Joined: Thu Aug 03, 2006 6:46 pm

Remote testing that requires user credentials does not work

Post by dannyhb »

I have some test on hostmon 5.66 that requires user logins on some URLs.
These test do not work on windows 2003 servers when hostmon is installed as a service. The log on user is set to the appropriate to the user required by the URL. I have even created the user on the windows 2003 server and login as that user that the test still fails. If I run hosmonitor not as a service the test works fine.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

What account have you specified on Service page in the Options dialog (HostMonitor's Options dialog)?
What about other test methods, like CPU Usage, Process, Service tests?

Regards
Alex
dannyhb
Posts: 3
Joined: Thu Aug 03, 2006 6:46 pm

Post by dannyhb »

I have specified a windows 2003 user account which is on the remote server and on the hostmon server. The user account has adminstrator perms on both servers.

Other test are OK, just any URL test that requires password
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

dannyhb wrote:Other test are OK, just any URL test that requires password
What authentication method is used on web site you are going to monitor? Basic or Windows integrated authenication? If it uses basic authentication you should specify username/password in URL Test Properties window.
http://www.ks-soft.net/hostmon.eng/mfra ... ts.htm#url

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

Post by KS-Soft Europe »

Could you check your web server log, regarding HostMonitor login attempts, please. What exact errors do you see?

Regards,
Max
dannyhb
Posts: 3
Joined: Thu Aug 03, 2006 6:46 pm

Post by dannyhb »

On the web servers that the test is being preformed on I get the following from the IIS logs when the test is run with hostmon installed as a service

2006-08-11 15:01:54 W3SVC871660438 192.168.xx.xxx GET /xxxxx GetStats 80 - 192.168.xx.xxx Mozilla/4.0+(compatible;+MSIE+6.0) 200 5 0 297 151 0

2006-08-11 15:01:54 W3SVC871660438 192.168.xx.xxx GET /xxxxx GetStats 80 - 192.168.xx.xxx
Mozilla/4.0+(compatible;+MSIE+6.0) 401 1 0 1912 253 0

With hostmon running just from the executable (not as a service) the following is logged. As you can see it passes the user name for the url (tommy).

2006-08-11 15:01:54 W3SVC871660438 192.168.xx.xxx GET /xxxxx GetStats 80 - 192.168.xx.xxx Mozilla/4.0+(compatible;+MSIE+6.0) 200 5 0 297 151 0

2006-08-11 15:01:54 W3SVC871660438 192.168.xx.xxx GET /xxxxx GetStats 80 - 192.168.xx.xxx
Mozilla/4.0+(compatible;+MSIE+6.0) 401 1 0 1912 253 0

2006-08-11 15:01:54 W3SVC871660438 192.168.20.81 GET /xxxxx GetStats 80 SERVERNAME\tommy 192.168.20.107 Mozilla/4.0+(compatible;+MSIE+6.0) 200 0 0 1138 413 0

I suspect this may be an issue with windows 2003 (some setting) however it may be good if you could duplicate this problem
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

You should assign "Logon as service" privilege to the logon user.
You may do it using Local Security Policy applet (Start > Run > secpol.msc): Security Settings > Local Policies > User Right Assignment > Logon as service.

Do not forget restart the service, please.

Regards,
Max
Post Reply