copr: define new command for nagios

We need to use --ssl and also -f follow
This commit is contained in:
Silvie Chlupova 2022-01-20 15:25:51 +01:00
parent 30ba286587
commit debd3c5b7e
2 changed files with 6 additions and 1 deletions

View file

@ -51,6 +51,11 @@ define command{
command_line $USER1$/check_http -w 30 -c 40 -I $HOSTADDRESS$ -H $ARG1$ -u "$ARG2$" -s "$ARG3$" -f follow
}
define command{
command_name check_website_follow_ssl
command_line $USER1$/check_http -w 30 -c 40 --ssl --sni -I $HOSTADDRESS$ -H $ARG1$ -u "$ARG2$" -s "$ARG3$" -f follow
}
define command{
command_name check_website_ppc
command_line $USER1$/check_http -w 300 -c 400 -I $HOSTADDRESS$ -H $ARG1$ -u "$ARG2$" -s "$ARG3$"

View file

@ -355,7 +355,7 @@ define service {
define service {
hostgroup_name proxies
service_description http-download.copr.fedorainfracloud.org
check_command check_website_ssl!download.copr.fedorainfracloud.org!Index of /
check_command check_website_follow_ssl!download.copr.fedorainfracloud.org!Index of /
max_check_attempts 8
use websitetemplate
}