Forum Discussion
kgaigl Cirrocumulus
Cirrocumulus
Jan 20, 2021HTTPS 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...
kgaigl Cirrocumulus
Cirrocumulus
Jan 28, 2021I got one step beyond:
now I can see with curl the content of the json-file and the string I need:
"health":"0","label":"dev-daisy-40001.bvk.int:443"but the monitor:
ltm monitor https VIP-DEV-HEALTH {
    adaptive disabled
    defaults-from https
    destination *.https
    interval 5
    ip-dscp 0
    password $pw
    recv "\"health\“:\“0“,\“label\“:\"dev-daisy-40001.bvk.int:443\""
    recv-disable none
    send "GET /monitor/wga/widgets/health.json HTTP/1.1\r\nHost: dev-cpmpany.bvk.int\r\nConnection: Close\r\n\r\n"
    time-until-up 0
    timeout 16
    username monitorxxxwon't work
in the receive-string I think I need the backslashes because of the qoutation-marks
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