From e48a178089f9e7387bf5d358f376494f89c3bffe Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@iml.unibe.ch>
Date: Tue, 9 Aug 2022 16:49:32 +0200
Subject: [PATCH] remove warning for this limit

---
 check_php-fpm-status | 22 +++++++++++++---------
 1 file changed, 13 insertions(+), 9 deletions(-)

diff --git a/check_php-fpm-status b/check_php-fpm-status
index 93032b8..af153e5 100755
--- a/check_php-fpm-status
+++ b/check_php-fpm-status
@@ -191,10 +191,12 @@ fi
 #     ph.setStatus warning
 # fi
 
-if [ $iMaxChilds -gt 0 ]; then
-    # ph.setStatus critical
-    ph.setStatus warning
-fi
+# 5601 - remove warning for this limit (it is a flag and won't remove)
+# if [ $iMaxChilds -gt 0 ]; then
+#     # ph.setStatus critical
+#     ph.setStatus warning
+# fi
+
 if [ $iWorkerIdle -eq 0 ]; then
     ph.setStatus warning
 fi
@@ -231,11 +233,13 @@ fi
 #     echo "         Or count of allowed workers (pm.max_children) or spare servers (pm.XXX_spare_servers) is too low."
 #     echo
 # fi
-if [ $iMaxChilds -gt 0 ]; then
-    echo $hint
-    echo "WARNING: Max. count of children was reached: $iMaxChilds. Maximum of active workers was $iMaxActive - maybe count of allowed workers (pm.max_children) is too low."
-    echo
-fi
+
+# 5601 - remove warning for this limit (it is a flag and won't remove)
+# if [ $iMaxChilds -gt 0 ]; then
+#     echo $hint
+#     echo "WARNING: Max. count of children was reached: $iMaxChilds. Maximum of active workers was $iMaxActive - maybe count of allowed workers (pm.max_children) is too low."
+#     echo
+# fi
 if [ $iQueue -gt 0 ]; then
     echo $hint
     echo "WARNING: $iQueue queued requests were found. Maximum of queued items is $iMaxQueue (since last start of fpm service)."
-- 
GitLab