]> git.etc.gen.nz Git - spong.git/commitdiff
responde code 401 (Authorization Required) is now treated as a green status spong_2_6c
authorStephen L Johnson <sjohnson@monsters.org>
Wed, 26 Jan 2000 05:40:28 +0000 (05:40 +0000)
committerStephen L Johnson <sjohnson@monsters.org>
Wed, 26 Jan 2000 05:40:28 +0000 (05:40 +0000)
instead of a yellow status.

src/lib/Spong/Network/plugins/check_http

index 1e7721014afb29a8eb9e5969337707b5d58a826a..48cc0746c4cb371a307f968116ab2b27a91961f2 100755 (executable)
@@ -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 {