From d89336f26377ef67180c4f2370f3068cc2429102 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Sun, 23 Jul 2017 20:04:31 +0000 Subject: [PATCH] adjust check_koji to check the local host, have a 60 second timeout and not pass a ssl option thats useless --- roles/nagios_server/files/nagios/plugins/check_koji | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/nagios_server/files/nagios/plugins/check_koji b/roles/nagios_server/files/nagios/plugins/check_koji index 9e1b68611f..f1e026ef7b 100755 --- a/roles/nagios_server/files/nagios/plugins/check_koji +++ b/roles/nagios_server/files/nagios/plugins/check_koji @@ -1,6 +1,6 @@ #!/bin/bash -FAILURES=$(/usr/bin/wget -q --no-check-certificate -O- http://koji.phx2.fedoraproject.org/koji/builds | /bin/grep -c failed.png) +FAILURES=$(/usr/bin/wget --timeout=60 -q -O- http://localhost/koji/builds | /bin/grep -c failed.png) WARNING=20 CRITICAL=25