From e96d5682fc17a75f13d167324c311a97da8a91dd Mon Sep 17 00:00:00 2001 From: "Hahn Axel (hahn)" <axel.hahn@iml.unibe.ch> Date: Mon, 9 May 2022 15:49:21 +0200 Subject: [PATCH] php-fpm requests - use wget default params --- check_php-fpm-status | 3 +++ 1 file changed, 3 insertions(+) diff --git a/check_php-fpm-status b/check_php-fpm-status index 0b78daf..7d23bb5 100755 --- a/check_php-fpm-status +++ b/check_php-fpm-status @@ -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 -- GitLab