I’m trying to make http monitor work with http status codes. However when I was reading debug logs for monitor the content where the recv string is searched does not contain HTTP headers and status code (according to logs, it does regexp searches only on data part of http answer). I even tried to specify 200 OK into recv field but it did not work.
Any idea how/if F5 in HTTP monitor supports analysis of http status code?
Data from log file:
2016-01-12 23:00:48.622608: ID 369 :(_recv_active_service_ping): rcvd 5120 bytes: --> Domov
...
2016-01-12 23:00:48.622648: ID 369 :(_recv_active_service_ping): Response matched regex [ addr=::ffff:10.65.17.16%2155:443 srcaddr=::ffff:10.65.17.251%0:54017 ] send=GET /\x0d\x0a\x0d\x0a
recv=Domov
disable=
---- reconfig for 200 OK recv string
-01-12 23:02:54.305084: ID 369 :(_recv_active_service_ping): Response did not match recv regex yet [ addr=::ffff:10.65.17.16%2155:443 srcaddr=::ffff:10.65.17.251%0:57008 ]
That makes sense. If you omit the HTTP version in your request string (and the default send string is just ‘GET /’), then the web server must assume HTTP 0.9, (which has no headers), so there would have been no headers and no status code in the webserver’s reply to match against.