how to make a check_http out of this curl statement
Posted: Mon Oct 01, 2018 12:23 pm
I have a curl statement that I can run and get the results of { "status": "UP" }. I am trying to find the equivalent for check_http that matches on the string "UP"
Curl statement:
my try on check_http:
Any help would be appreciated.
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