Curl statement:
Code: Select all
curl -k -H "Host: healthcheck" "https://redacted:443/health"
Curl Response: { "status": "UP" }Code: Select all
./check_http -H redacted -S -p 443 -f ok -k "Host: healthcheck" -s "UP"
Resonse: HTTP CRITICAL: HTTP/1.1 301 Moved Permanently - string 'UP' not found on 'https://redacted:443/' - 552 bytes in 0.034 second response time |time=0.033834s;;;0.000000 size=552B;;;0