You are browsing a read-only backup copy of Wikitech. The live site can be found at

Monitoring/https unauthorized

From Wikitech-static
< Monitoring
Revision as of 10:19, 18 June 2020 by imported>Jbond
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

check_https_unauthorized is used to ensure that a specific end point requires authentication. The icinga definition looks as follows

define command {
    command_name    check_https_unauthorized
    command_line    $USER1$/check_http --ssl --sni -I $HOSTADDRESS$ -H $ARG1$ -u $ARG2$ -e "HTTP/1.1 $ARG3$ "

So if we have a monitoring::services definition with the following `check_command` then the expectation is that visiting `' will return a response containing `HTTP/1.1 401'


you can manually test this using curl

curl --head -k