From 71945b4c1dcd45e5add902062cb9088f4d14f2ac Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Wed, 21 Mar 2018 01:08:00 +0000 Subject: [PATCH] follow the redirect on pkgs monitoring as we want to know if the entire path to src.fedoraproject.org is working anyhow --- roles/nagios_server/files/nagios/commands/httpd.cfg | 5 +++++ .../nagios_server/templates/nagios/services/websites.cfg.j2 | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/roles/nagios_server/files/nagios/commands/httpd.cfg b/roles/nagios_server/files/nagios/commands/httpd.cfg index 4771ea5fb8..944cb5064b 100644 --- a/roles/nagios_server/files/nagios/commands/httpd.cfg +++ b/roles/nagios_server/files/nagios/commands/httpd.cfg @@ -46,6 +46,11 @@ define command{ command_line $USER1$/check_http -w 30 -c 40 -I $HOSTADDRESS$ -H $ARG1$ -u "$ARG2$" -s "$ARG3$" } +define command{ + command_name check_website_follow + 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_ppc command_line $USER1$/check_http -w 300 -c 400 -I $HOSTADDRESS$ -H $ARG1$ -u "$ARG2$" -s "$ARG3$" diff --git a/roles/nagios_server/templates/nagios/services/websites.cfg.j2 b/roles/nagios_server/templates/nagios/services/websites.cfg.j2 index 8f86f733f2..67e74c0fee 100644 --- a/roles/nagios_server/templates/nagios/services/websites.cfg.j2 +++ b/roles/nagios_server/templates/nagios/services/websites.cfg.j2 @@ -301,7 +301,7 @@ define service { define service { hostgroup_name pkgs service_description http-pkgs-pagure - check_command check_website!localhost!/rpms/moreutils!The moreutils rpms + check_command check_website_follow!localhost!/rpms/moreutils!The moreutils rpms use websitetemplate }