Forum Discussion
F5_bulldog_5968
Nimbostratus
Feb 06, 2012Health monitor questions
I am not the most experienced at writing custom health monitors, and I need help creating one using send and receive strings. We have three servers in a pool, and today, we are using a basic tcp moni...
nitass
Employee
Feb 07, 2012e.g.
[root@ve1023:Active] config b pool foo list
pool foo {
monitor all myhttp
members 200.200.200.101:8182 {}
}
[root@ve1023:Active] config b monitor myhttp list
monitor myhttp {
defaults from http
recv "overallStatusCode=\"0000\""
send "GET /test.html HTTP/1.1\r\nHost: \r\nConnection: Close\r\n\r\n"
}
[root@ve1023:Active] config curl http://200.200.200.101:8182/test.html
...
overallStatusCode="0000"
...
[root@ve1023:Active] config b pool foo|grep -i pool\ member
+-> POOL MEMBER foo/200.200.200.101:8182 active,up
[root@ve1023:Active] config curl http://200.200.200.101:8182/test.html
...
overallStatusCode="0001"
...
[root@ve1023:Active] config b pool foo|grep -i pool\ member
+-> POOL MEMBER foo/200.200.200.101:8182 inactive,down
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects