diff --git a/check_php-fpm-status b/check_php-fpm-status index 7a10de6bd63941550265b5f6b939d81ea67cbd13..9045ecc53aa58e807d9bbefdf6cd15c42c23e785 100755 --- a/check_php-fpm-status +++ b/check_php-fpm-status @@ -8,6 +8,7 @@ # ---------------------------------------------------------------------- # 2021-09-22 v0.1 <axel.hahn@iml.unibe.ch> initial version # 2021-10-01 v0.2 <axel.hahn@iml.unibe.ch> fetch full status as json +# 2021-12-23 v0.4 <axel.hahn@iml.unibe.ch> remove switch to warning level if just one slow request was detected # ====================================================================== . `dirname $0`/inc_pluginfunctions @@ -173,9 +174,15 @@ typeset -i iWorkerIdle=$( _getWorkerOfState "Idle" | wc -l ) # damn, count of slots is in the config only - not in status output # iUsage=$iActive*100/$iSlots # ph.setStatusByLimit $iUsage $iWarnLimit $iCriticalLimit -if [ $iQueue -gt 0 -o $iSlow -gt 0 ]; then +if [ $iQueue -gt 0 ]; then ph.setStatus warning fi + +# remove switch to warning level if just one slow request was detected +# if [ $iSlow -gt 0 ]; then +# ph.setStatus warning +# fi + if [ $iMaxChilds -gt 0 ]; then # ph.setStatus critical ph.setStatus warning @@ -227,8 +234,8 @@ if [ $iQueue -gt 0 ]; then echo fi if [ $iSlow -gt 0 ]; then - echo $hint - echo "WARNING: $iSlow slow requests per $sDeltaunit were found ($iSlowPercent%)... total $iSlowTotal slow req were detected (since last start of fpm service)." + # echo $hint + echo "HINT: $iSlow slow requests per $sDeltaunit were found ($iSlowPercent%)... total $iSlowTotal slow req were detected (since last start of fpm service)." echo fi