Oct 06, 2015
HTTP monitor receive string : how to not take the '200 OK' into account
Hello,
I have to monitor a page which give in its body 'OK' if server is OK and KO if the server is down.
As a 'receive string', I use 'OK'. The problem is that 'OK' is already present in the 'HTTP/1.1 200 OK' (see below the output of the curl command)
I tried different receive strings, last attempt with this one: ^server But it does not work as F5 apparently considers the whole response as a single line.
Would you have an idea on how to make F5 to 'ignore' the "HTTP/1.[01] 200" ?
curl -vi --http1.0 [http://x.x.x.x:yy/a_path_to_a_page.asp](http://x.x.x.x:yy/a_path_to_a_page.asp)
About to connect() to 10.0.110.192 port 81 (0)
Trying x.x.x.x... connected
Connected to x.x.x.x (x.x.x.x) port yy (0)
GET /a_path_to_a_page.asp HTTP/1.0User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 OpenSSL/1.0.1j zlib/1.2.3 libidn/0.6.5Host: x.x.x.x:yyAccept: _/_
HTTP/1.1 200 OK
HTTP/1.1 200 OK
Cache-Control: private, max-age=0
Cache-Control: private, max-age=0
Content-Length: 2
Content-Length: 2
Content-Type: text/html
Content-Type: text/html
Expires: Tue, 06 Oct 2015 11:47:20 GMT
Expires: Tue, 06 Oct 2015 11:47:20 GMT
Server: Microsoft-IIS/xxxxx
Server: Microsoft-IIS/xxxxx
Strict-Transport-Security: max-age=31536000;includeSubdomains
Strict-Transport-Security: max-age=31536000;includeSubdomains
set-Cookie: sessionInt=6946fffe-be06-4e78-a4f0-127e0fc528ad; path=/ncol/int/; Secure; HttpOnly
set-Cookie: sessionInt=6946fffe-be06-4e78-a4f0-127e0fc528ad; path=/ncol/int/; Secure; HttpOnly
X-Powered-By: ASP.NET
X-Powered-By: ASP.NET
Date: Tue, 06 Oct 2015 11:48:19 GMT
Date: Tue, 06 Oct 2015 11:48:19 GMT
Connection: close
Connection: close
Closing connection 0
OK
thanks a lot
-- B.