diff --git a/check_curl b/check_curl index 4fa93ae..41c3833 100755 --- a/check_curl +++ b/check_curl @@ -94,7 +94,7 @@ fi rm -rf "$TMP_ERROR_LOG" RESPONSE_CODE=$(echo "$RESPONSE" | head -n 1) -RESPONSE_TIME=$(printf "%.2f" $(echo "$RESPONSE" | tail -n 1)) +RESPONSE_TIME=$(printf "%.3f" $(echo "$RESPONSE" | tail -n 1)) OUTPUT_MSG="" OUTPUT_CODE=0 diff --git a/install.sh b/install.sh index acb8d90..99b6566 100755 --- a/install.sh +++ b/install.sh @@ -4,7 +4,7 @@ # @hourly /bin/bash /opt/icinga2-checks/install.sh apt update -apt install -y python3-venv git sysstat +apt install -y python3-venv git sysstat bc pip install psutil