Forum Discussion
nitass
Jun 10, 2014Employee
sol5917: Using regular expressions in a health monitor Receive String
http://support.f5.com/kb/en-us/solutions/public/5000/900/sol5917.htmle.g.
config
[root@ve11a:Active:In Sync] config tmsh list ltm monitor http myhttp
ltm monitor http myhttp {
defaults-from http
destination *:*
interval 5
ip-dscp 0
recv HTTP/1\.[01]\s40[0-9]
reverse enabled
send "GET /fake.html HTTP/1.1\r\nHost: \r\nConnection: Close\r\n\r\n"
time-until-up 0
timeout 16
}
test
[root@ve11a:Active:In Sync] config tmsh list ltm pool foo
ltm pool foo {
members {
200.200.200.101:80 {
address 200.200.200.101
session monitor-enabled
state down
}
}
monitor myhttp
}
trace
[root@ve11a:Active:In Sync] config ssldump -Aed -nni 0.0 port 80
New TCP connection 1: 200.200.200.11(39804) <-> 200.200.200.101(80)
1402421687.8100 (0.0248) C>S
---------------------------------------------------------------
GET /fake.html HTTP/1.1
Host:
Connection: Close
---------------------------------------------------------------
1402421688.4348 (0.6247) S>C
---------------------------------------------------------------
HTTP/1.1 404 Not Found
Date: Tue, 10 Jun 2014 17:23:53 GMT
Server: Apache/2.2.3 (CentOS)
Content-Length: 272
Connection: close
Content-Type: text/html; charset=iso-8859-1
...snipped...
---------------------------------------------------------------