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

update php-fpm check

parent 2a3833af
No related branches found
No related tags found
No related merge requests found
......@@ -154,19 +154,24 @@ fi
# --- output
ph.status "PHP-FPM: active: $iActive (max: $iMaxActive) .. wait: $iIdle .. queue: $iQueue (max: $iMaxQueue) .. speed: $iSpeed req per sec"
hint="HINT: the non-OK status is still erxperimmental. A warning can be a false positive.\n\n"
if [ $iIdle -eq 0 ]; then
echo $hint
echo "WARNING: $iIdle idle 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."
fi
if [ $iQueue -gt 0 ]; then
echo $hint
echo "WARNING: $iQueue queued requests were found."
fi
if [ $iSlow -gt 0 ]; then
echo $hint
echo "WARNING: $iSlow slow requests were found."
fi
if [ $iMaxChilds -gt 0 ]; then
echo "WARNING: max. children was reached $iMaxChilds. Max. active were $iMaxActive - maybe count of allowed workers is too low."
echo $hint
echo "WARNING: max. children was reached $iMaxChilds. Max. active were $iMaxActive workers - maybe count of allowed workers (pm.max_children) is too low."
fi
echo
cat $tmpfile
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment