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

http status codes

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



Joined: 27 Jun 2012
Posts: 7

PostPosted: Wed Jun 27, 2012 3:01 am    Post subject: http status codes Reply with quote

Hi
I try to setup a test which analyzes the http stauts code returned from a website. Assuming the http-test is the correct one. But where do I enter the condition? Something like "%HttpCode%=200".
I want the test to alert me if the page returnes anything else than code 200.

the header is like follow
Quote:

<html>
<head>
<title>DaX Check Servlet</title>
<style type="text/css"></style>
</head>
<body>
<h1>DaX Check Servlet</h1>
<h3>HTTP status code: 200</h3>
<b>Current check level: 0</b></br>
<i>Adjust check level by setting HTTP GET parameter 'level' to {0,1,2} (0: FAST, 1:MEDIUM, 2:DETAIL)</i>
</br></br>


Can you show me the correct way including an example?
thanks
Back to top
View user's profile Send private message
KS-Soft Europe



Joined: 16 May 2006
Posts: 2832

PostPosted: Wed Jun 27, 2012 5:10 am    Post subject: Reply with quote

Actually HTTP and URL Request test methods return "Host is alive" status only if HTTP code returned by the server is 200, unless you select additional options like "HTTP/HTTPS: Code 302 (redirect) is Ok" for URL Request test.
Also, you may specify your condition ('%HttpCode%'=='200'):
1. in Test properties dialog:
set "Use warning status if" option to:
'%HttpCode%'<>'200'
2. in Action profile, assigned to HTTP or URL Request test:
using Condition to start action: Advanced mode with expression like the following:
('%HttpCode%'<>'201') AND (%FailureIteration%==1)

Please check the manual or visit our web site for more information at:
"Use warning status if" option: http://www.ks-soft.net/hostmon.eng/mframe.htm#tests.htm#warningstatus
Advanced mode actions: http://www.ks-soft.net/hostmon.eng/mframe.htm#actions.htm#advancedaction
Back to top
View user's profile Send private message Send e-mail Visit poster's website
RolfGraber



Joined: 27 Jun 2012
Posts: 7

PostPosted: Wed Jun 27, 2012 6:14 am    Post subject: Reply with quote

Thank for your help.
It's OK now.

best regards
Back to top
View user's profile Send private message
KS-Soft Europe



Joined: 16 May 2006
Posts: 2832

PostPosted: Wed Jun 27, 2012 7:22 am    Post subject: Reply with quote

You are welcome.
Back to top
View user's profile Send private message Send e-mail 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