From 2638961704e6207fa61223bb1538f1ecb76eaa63 Mon Sep 17 00:00:00 2001 From: Doug Steigerwald Date: Fri, 16 Aug 2013 11:58:33 -0400 Subject: [PATCH] When warning and critical thresholds are equal, don't go critical on stats that are less than the critical threshold. --- check_graphite | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_graphite b/check_graphite index 1f1e603..dc38850 100755 --- a/check_graphite +++ b/check_graphite @@ -88,7 +88,7 @@ total = data["total"].to_i perfdata = "" perfdata = "| #{@@options[:shortname]}=#{total}" if !@@options[:shortname].nil? -if (@@options[:critical].to_i > @@options[:warning].to_i) +if (@@options[:critical].to_i >= @@options[:warning].to_i) if (total >= @@options[:critical].to_i) puts "CRITICAL metric count: #{total} #{perfdata}" exit EXIT_CRITICAL