From 6a5f8e7c311d3f9ebedfae99aff0d531f3f80272 Mon Sep 17 00:00:00 2001 From: kbe2 Date: Mon, 20 Jun 2016 15:55:26 -0400 Subject: [PATCH] fixed copy/paste error. opcache_hit_rate_warn was using memory usage % threshold --- check-opcache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check-opcache.php b/check-opcache.php index 372580f..f0d524c 100644 --- a/check-opcache.php +++ b/check-opcache.php @@ -90,7 +90,7 @@ if ($opcache_hit_rate < $opcache_hit_rate_crit) { $result_status = 2; $result_message = "CRITICAL - $basic_info memory hitrate is under critical level ".$opcache_hit_rate.'%'; -} elseif ($memory_usage_perc > $memory_usage_perc_warn) { +} elseif ($opcache_hit_rate < $opcache_hit_rate_warn) { $result_status = 1; $result_message = "WARNING - $basic_info memory hitrate is under warning level ".$opcache_hit_rate.'%'; }