Option to allow redirects in check_http
Imported from https://youtrack.roxen.com/issue/PIKE-44
Reported by Marcus Wellhardh wellhard@roxen.com
Is it possible to add an option to check_http to allow redirects as valid response?
[root@nagios ~]1. /usr/local/bin/pike -x check_http "https://magazin24.se"
WARNING: Bad status code: Moved Permanently(301). | code# 301;runtime
0.191268;ssl# TLS1.2;suite
TLS_ecdhe_rsa_with_camellia_256_gcm_sha384
[root@nagios ~]1. /usr/local/bin/pike -x check_http --version
Check HTTP/Pike v8.0.136