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).
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
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)