From f4675e74b94dc470b4b89be8252a37da85001b9e Mon Sep 17 00:00:00 2001 From: "Hahn Axel (hahn)" <axel.hahn@iml.unibe.ch> Date: Fri, 11 Feb 2022 14:56:10 +0100 Subject: [PATCH] php-fpm v0.5 show running workers in 1st line --- check_php-fpm-status | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/check_php-fpm-status b/check_php-fpm-status index 9045ecc..5b4b54e 100755 --- a/check_php-fpm-status +++ b/check_php-fpm-status @@ -9,6 +9,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 +# 2022-02-11 v0.5 <axel.hahn@iml.unibe.ch> show running workers in 1st line # ====================================================================== . `dirname $0`/inc_pluginfunctions @@ -78,7 +79,7 @@ It shows a short service status in a single line and then the dump of the status page. For performance data it echos: - php-fpm-active count of active workers + php-fpm-active count of active workers (="Rrunning" + "Reading headers") 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" @@ -199,7 +200,7 @@ fi # ---------------------------------------------------------------------- # output # ---------------------------------------------------------------------- -ph.status "PHP-FPM service: active: $iActive (max: $iMaxActive) .. idle workers: $iIdle .. queue: $iQueue .. speed: $iSpeed req per $sDeltaunit ... slow: $iSlow req per $sDeltaunit ($iSlowPercent%; total: $iSlowTotal)" +ph.status "PHP-FPM service: running: iWorkerRunning .. active: $iActive (max: $iMaxActive) .. idle workers: $iIdle .. queue: $iQueue .. speed: $iSpeed req per $sDeltaunit ... slow: $iSlow req per $sDeltaunit ($iSlowPercent%; total: $iSlowTotal)" echo "Workers: Running: $iWorkerRunning" echo " Reading headers: $iWorkerReading" echo " Idle: $iWorkerIdle" -- GitLab