KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

HTTP test error code 401 / error msg access denied

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting
View previous topic :: View next topic  
Author Message
hamoja



Joined: 18 Jun 2003
Posts: 34

PostPosted: Mon Oct 11, 2004 8:30 am    Post subject: HTTP test error code 401 / error msg access denied Reply with quote

I am not sure why this is happening, I have a link that needs to be monitored for any type of content so as long as the page opens(http://heat2/HeatSelfService/default/en-us/login.asp). I left the http test as the default settings then run the test manually using the test option, the results posted were:

Test Status: Bad
Error code: 401
Error msg: Access Denied

I also tried functions, get/post/header requests and the results were still the same. Why is this happening?. Thanks


A sample header looks like this:

__________________________________________________________
<html>
<head>

<!-- uncommented 20040726 - PRiera -->

<!-- /uncommented 20040726 - PRiera -->

<meta name="robots" content="none">
<link rel="stylesheet" type="text/css" href="/HEATSelfService/stylesheets/default.css">
<script language="JavaScript" src="/HEATSelfService/scripts/css.js"></script>
<script language="JavaScript">
function _CssDefaults()
{
this.LoginTarget = "home.asp?CallID=-1";
this.GroupSelectTarget = "";
this.GroupOpenTarget = "callgroup.asp";
this.EditTicketTarget = "";
this.NavTicketTarget = "";
this.EditJournalTarget = "";
this.NavJournalTarget = "";
this.FieldSizeErrorText = "The amount of text in a field on the current form exceeds the amount allowed (10240 bytes).";
}

var CssDefaults = new _CssDefaults();
</script>
<META HTTP-EQUIV='pragma' CONTENT='no-cache'>
<SCRIPT ID='CssUserState' LANGUAGE='JavaScript'>
<!--// State information //
function _CssState()
_____________________________________________________________
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Mon Oct 11, 2004 11:13 am    Post subject: Reply with quote

Looks like web server requires authorization. Use "Authorization" option of the test to provide username and password.

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
hamoja



Joined: 18 Jun 2003
Posts: 34

PostPosted: Tue Oct 12, 2004 8:52 am    Post subject: Reply with quote

Autorization is required but the page displayed does not state "error 401"nor access denied, it's an actual page with the contents pasted in initial post that I need to monitor. In other I need to montior contents of the paste without passing authorization.
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Tue Oct 12, 2004 11:10 am    Post subject: Reply with quote

HostMonitor always checks HTTP error code returned in HTTP header. If HTTP header indicates some error, HM sets "Bad" status.
I think you need some script that will ignore error codes, probably you can modify this one http://www.ks-soft.net/cgi-bin/phpBB/viewtopic.php?t=1293

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
hamoja



Joined: 18 Jun 2003
Posts: 34

PostPosted: Wed Oct 13, 2004 6:25 am    Post subject: Reply with quote

True but the header pasted earlier on the post contains no errors and if I am to launch the link, I am prompt for a username and password but with no errors.

I am not familiar with that script and not sure if it would work as the poster refers to creating a script at the time when HOSTMON didn't support HTTP/URL test actions.
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Wed Oct 13, 2004 11:25 am    Post subject: Reply with quote

Quote:
True but the header pasted earlier on post contains no errors


You mix up HTML header and HTTP header. HTTP header contains error code.

Quote:
if I am to launch the link I am prompt for a username and password with no errors.


Exactly. You are prompted for a username and password. It means web server reguires authentication.
Why you do not want to use URL test with "Password protected page" option enabled?

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
hamoja



Joined: 18 Jun 2003
Posts: 34

PostPosted: Fri Oct 15, 2004 10:33 am    Post subject: Reply with quote

The authentication is embedded within the HTML code, not an NT challenge, I already tried the way suggested and it is the same responce either way and makes no difference. URL test hangs at times and slower than HTTP test.

How does one validate HTTP header errors using HOSTMON?. If the link is ran manually a page is displayed but with no obvious errors besides an authentication box.

Also If I omit the paths and test from the top level that is http://heat2/ and not http://heat2/HeatSelfService/default/en-us/login.asp then HOSTMON test passes.
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Fri Oct 15, 2004 11:38 am    Post subject: Reply with quote

Oh, authorization processed by script on client's side?
I am afraid HostMonitor cannot pass such authorization. It does not execute Java/VB scripts published in HTML code.

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

KS-Soft Forum Index