Looking to create monitor to query a subpage of a site to see a response.
Like below
output on screen here is
Running as primary
I want the monitor to mark this node as up
and this on
output on screen here is
Running as standby
The monitor should mark this one as down.
Any help would be appreciated
All you are required to create is single monitor, when your
- servera is displaying “Running as primary” it will be marked as up,
- when servera is displaying “Running as standby” it will be marked down.
- serverb is displaying “Running as primary” it will be marked as up,
- when serverb is displaying “Running as standby” it will be marked down.
So you can control which server to be Up and down by changing the content on the monitor page.
create ltm monitor http testmonitor { interval 30 timeout 91 send "GET /ha/health-check HTTP/1.1\r\nUser-Agent: BigIP Prober\r\nHost: www.yourfqdn.com\r\nConnection: close\r\n\r\n" recv "Running as primary" recv-disable "Running as standby" }
create ltm pool testpool { load-balancing-mode round-robin members add { 1.1.1.1:8080 2.2.2.2:80 } monitor testmonitor }