Skip to content
Snippets Groups Projects
Commit f4675e74 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

php-fpm v0.5 show running workers in 1st line

parent 64c4b862
Branches
No related tags found
No related merge requests found
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment