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