Forum Discussion
AngryCat_52750
Apr 12, 2012Nimbostratus
thanks for the help guys.. we are planning to implement your suggestion.. we are keeping the health monitor as a simple tcp 7333 monitor but creating an irule to catch the 404 and 500 responses..
something like this would work right..
when HTTP_REQUEST {
set host [HTTP::host]
set uri [HTTP::uri] }
when HTTP_RESPONSE {
if { [HTTP::status] == 404 or [HTTP::status] == 500 } {
log local0. "Server [IP::server_addr] sent [HTTP::status] for $host $uri"
}
}