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 21, 2021MVP
For my backend I am using nginx with SSL and Basic auth. The following curl works:
[root@awaf:Active:Standalone] config # curl -k https://10.100.153.50/api/status.json --user user1:P@$$w0rd
{
"status": "up and running"
}
And the following monitor will mark the backend as green
[root@awaf:Active:Standalone] config # tmsh list ltm monitor https mon_api_json_https
ltm monitor https mon_api_json_https {
adaptive disabled
defaults-from https
interval 5
ip-dscp 0
password ********
recv "HTTP/1.(0|1) 200.*up and running"
recv-disable "HTTP/1.(0|1) 200.*maintenance"
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
}
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