From 4d097971112263d099f56f483ddd06beb6b7c07d Mon Sep 17 00:00:00 2001 From: Stephen L Johnson Date: Wed, 26 Jan 2000 05:40:28 +0000 Subject: [PATCH] responde code 401 (Authorization Required) is now treated as a green status instead of a yellow status. --- src/lib/Spong/Network/plugins/check_http | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/Spong/Network/plugins/check_http b/src/lib/Spong/Network/plugins/check_http index 1e77210..48cc074 100755 --- a/src/lib/Spong/Network/plugins/check_http +++ b/src/lib/Spong/Network/plugins/check_http @@ -22,7 +22,8 @@ sub check_http { if( $code >= 500 ) { $color = "red"; $summary = "error - $code - $file"; - } elsif( $code >= 400 ) { + # Treat a 401 code (Authorization Required) as a green status + } elsif( $code >= 400 && $code != 401) { if( $color ne "red" ) { $color = "yellow"; $summary = "warning - $code - $file"; } } else { -- 2.30.2