http status codes

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
RolfGraber
Posts: 7
Joined: Wed Jun 27, 2012 2:53 am

http status codes

Post by RolfGraber »

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
<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
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

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/mfra ... ningstatus
Advanced mode actions: http://www.ks-soft.net/hostmon.eng/mfra ... ncedaction
RolfGraber
Posts: 7
Joined: Wed Jun 27, 2012 2:53 am

Post by RolfGraber »

Thank for your help.
It's OK now.

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

Post by KS-Soft Europe »

You are welcome.
Post Reply