check_curl more decimal places

This commit is contained in:
Cyberes 2023-04-21 23:54:19 -06:00
parent e266940304
commit f43fcb81d1
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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