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
Branches
No related tags found
No related merge requests found
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
# 2021-09-22 v0.1 <axel.hahn@iml.unibe.ch> initial version # 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-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 . `dirname $0`/inc_pluginfunctions
...@@ -173,9 +174,15 @@ typeset -i iWorkerIdle=$( _getWorkerOfState "Idle" | wc -l ) ...@@ -173,9 +174,15 @@ typeset -i iWorkerIdle=$( _getWorkerOfState "Idle" | wc -l )
# damn, count of slots is in the config only - not in status output # damn, count of slots is in the config only - not in status output
# iUsage=$iActive*100/$iSlots # iUsage=$iActive*100/$iSlots
# ph.setStatusByLimit $iUsage $iWarnLimit $iCriticalLimit # ph.setStatusByLimit $iUsage $iWarnLimit $iCriticalLimit
if [ $iQueue -gt 0 -o $iSlow -gt 0 ]; then if [ $iQueue -gt 0 ]; then
ph.setStatus warning ph.setStatus warning
fi 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 if [ $iMaxChilds -gt 0 ]; then
# ph.setStatus critical # ph.setStatus critical
ph.setStatus warning ph.setStatus warning
...@@ -227,8 +234,8 @@ if [ $iQueue -gt 0 ]; then ...@@ -227,8 +234,8 @@ if [ $iQueue -gt 0 ]; then
echo echo
fi fi
if [ $iSlow -gt 0 ]; then if [ $iSlow -gt 0 ]; then
echo $hint # 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: $iSlow slow requests per $sDeltaunit were found ($iSlowPercent%)... total $iSlowTotal slow req were detected (since last start of fpm service)."
echo echo
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment