hint="HINT: the non-OK status is still erxperimmental. A warning can be a false positive.\n"
hint="!! IMPORTSNT !! Any non-OK status is still experimmental."
if[$iIdle-eq 0 ];then
if[$iIdle-eq 0 ];then
echo$hint
echo$hint
echo"WARNING: $iIdle idle workers available."
echo"WARNING: $iIdle idle workers available."
echo" Maybe there is a current peak only."
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."
echo" Or count of allowed workers (pm.max_children) or spare servers (pm.XXX_spare_servers) is too low."
echo
fi
if[$iMaxChilds-gt 0 ];then
echo$hint
echo"WARNING: Max. count of children was reached: $iMaxChilds. Maximum of active workers was $iMaxActive - maybe count of allowed workers (pm.max_children) is too low."
echo
fi
fi
if[$iQueue-gt 0 ];then
if[$iQueue-gt 0 ];then
echo$hint
echo$hint
echo"WARNING: $iQueue queued requests were found. Maximum of queued items is $iMaxQueue."
echo"WARNING: $iQueue queued requests were found. Maximum of queued items is $iMaxQueue."
echo
fi
fi
if[$iSlow-gt 0 ];then
if[$iSlow-gt 0 ];then
echo$hint
echo$hint
echo"WARNING: $iSlow slow requests were found... $iSlowTotal since restart of fpm service."
echo"WARNING: $iSlow slow requests were found... $iSlowTotal since restart of fpm service."
echo
fi
fi
if[$iMaxChilds-gt 0 ];then
echo$hint
echo"WARNING: max. children was reached $iMaxChilds. Maximum of active workers was $iMaxActive - maybe count of allowed workers (pm.max_children) is too low."