diff --git a/check_php-fpm-status b/check_php-fpm-status index 7cbfb03c4867916c8a3a2ff12c16318610d66d4e..b75805f34122c7d1d257bc6a25f8fbd18d345c0a 100755 --- a/check_php-fpm-status +++ b/check_php-fpm-status @@ -76,8 +76,10 @@ status page. For performance data it eachos: php-fpm-active count of active workers - php-fpm-maxactive max active processes - php-fpm-idle count of idle workers + php-fpm-maxactive max active processes (sum of idle + running + reading) + php-fpm-idle count of workers in state "Idle" + php-fpm-running count of workers in state "Running" + php-fpm-reading count of workers in state "Reading headers" php-fpm-queue count of items in the queue php-fpm-maxqueue max listen queue php-fpm-slow slow requests per second (since last execution of this check) @@ -136,6 +138,11 @@ if [ $? -ne 0 ]; then fi # ---------------------------------------------------------------------- +# get values from status output +# ---------------------------------------------------------------------- + +# --- handled requests per sec +typeset -i iConn=$( _getvalue "accepted conn") typeset -i iSpeed=$( ph.perfdeltaspeed "fpm-accepted" $iConn ) # --- count slots