Forum Discussion
kgaigl
Jan 20, 2021Cirrocumulus
HTTPS Monitor: JSON File behind login page
Hello, we've already a https monitor that reads the contents of a json file, it looks like this: send string: GET /intern/api/v1/health/portal-status HTTP/1.1\r\nHost: host.company.com\r\n\r\n
r...
Daniel_Wolf
Jan 30, 2021MVP
I successfully tested with this monitor, assuming that "label":"dev-daisy-40001.bvk.int:443" is not relevant for the health status but the key health is either 0 or 1.
See K5917: Using regular expressions in a health monitor receive string
ltm monitor https mon_api_json_https {
adaptive disabled
defaults-from https
interval 5
ip-dscp 0
password ********
recv (health.*0)
recv-disable (health.*1)
send "GET /api/status.json HTTP/1.1\r\nHost: localhost\r\nConnection: Close\r\n\r\n"
time-until-up 0
timeout 16
username user1
}
Best of luck.
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