From 63696615449a506c6bdff6e2b4efe482a2001495 Mon Sep 17 00:00:00 2001 From: "Hahn Axel (hahn)" <axel.hahn@iml.unibe.ch> Date: Mon, 11 Oct 2021 16:45:29 +0200 Subject: [PATCH] no warning on reading workers = 0 --- check_php-fpm-status | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/check_php-fpm-status b/check_php-fpm-status index f398ade..7a10de6 100755 --- a/check_php-fpm-status +++ b/check_php-fpm-status @@ -183,9 +183,11 @@ fi if [ $iWorkerIdle -eq 0 ]; then ph.setStatus warning fi -if [ $iWorkerReading -eq 0 ]; then - ph.setStatus warning -fi + +# seems not to be useful +# if [ $iWorkerReading -eq 0 ]; then +# ph.setStatus warning +# fi # ---------------------------------------------------------------------- # output @@ -207,13 +209,13 @@ if [ $iWorkerIdle -eq 0 ]; then echo " Or count of allowed workers (pm.max_children) or spare servers (pm.XXX_spare_servers) is too low." echo fi -if [ $iWorkerReading -eq 0 ]; then - echo $hint - echo "WARNING: No reading workers available." - echo " Maybe there is a current peak only." - echo " Or count of allowed workers (pm.max_children) or spare servers (pm.XXX_spare_servers) is too low." - echo -fi +# if [ $iWorkerReading -eq 0 ]; then +# echo $hint +# echo "WARNING: No reading workers available." +# echo " Maybe there is a current peak only." +# 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." -- GitLab