Forum Discussion
ERLomboy_27803
Nimbostratus
Feb 13, 2014Health check via URL
 Hi,     
 Wanted to setup a load balancer which can check the health of a node based on the URL (not by pinging just host and port).     
 For example: The LB should check the following URLs and if t...
Arie
Altostratus
Feb 13, 2014ltm monitor http /Common/ws-healthmonitor_HTTP1.1_200-OK_http {
    defaults-from /Common/http
    description "Custom monitor - requests resource from specific sub folder."
    destination *:*
    interval 5
    recv "HTTP/1.(0|1) 200 OK"
    send "HEAD /ws/healthmonitor HTTP/1.1\\r\\nHost:\\r\\n\\r\\n"
    time-until-up 0
    timeout 16
}
Note that I haven't specified the port as the pool already specifies it (I prefer to keep monitors as generic as possible).
To check for the string "PASS" I would create a second monitor. It's possible to use a single one, but it makes troubleshooting more difficult (e.g. if there's a 200 but not "PASS").
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