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

remove switch to warning level if just one slow request was detected

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