Forum Discussion
Ravi_75522
Nimbostratus
Jan 24, 2012How to define a health monitor to check the status of state and disable it
Hello Team,
We are currently using 10.2.2 version and the there is a requirement to have a compound monitor.
first monitor 1) healthCheckAlive.html - returns the string "Alive" this monitor ...
hoolio
Cirrostratus
Jan 24, 2012Hi Ravi,
Here are two sample monitors that should do this:
monitor alive_http_monitor {
defaults from http
interval 90
timeout 271
recv "Alive"
send "GET /healthCheckAlive.html HTTP/1.0\r\nConnection: Close\r\n\r\n"
}
monitor alive_disable_http_monitor {
defaults from http
recv disable "MaxCapacity"
recv "Available"
send "GET /healthCheckStatus.html HTTP/1.0\r\nConnection: Close\r\n\r\n"
}
Here are some details on the receive disable field in the monitor from the online help:
This setting works like Receive String, except that the system marks the node or pool member disabled when its response matches Receive Disable String but not Receive String. To use this setting, you must specify both Receive Disable String and Receive String.
Aaron
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