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

php-fpm requests - use wget default params

parent c6a806e5
Branches
No related tags found
No related merge requests found
......@@ -11,6 +11,7 @@
# 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
# 2022-04-01 v0.6 <axel.hahn@iml.unibe.ch> use wget default params; shell fixes
# 2022-05-09 v0.7 <axel.hahn@iml.unibe.ch> use wget default params
# ======================================================================
. $(dirname $0)/inc_pluginfunctions
......@@ -136,6 +137,8 @@ typeset -i iWarnLimit=$( ph.getValueWithParam 75 w "$@")
typeset -i iCriticalLimit=$( ph.getValueWithParam 90 c "$@")
url=$( ph.getValueWithParam $defaulturl u "$@" )
paramsWget="-T 5 -t 1 --no-check-certificate"
# --- get /server-status page
wget $paramsWget -O $tmpfile "$url?full&json" 2>/dev/null
if [ $? -ne 0 ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment