check_curl more decimal places
This commit is contained in:
parent
e266940304
commit
f43fcb81d1
|
@ -94,7 +94,7 @@ fi
|
||||||
rm -rf "$TMP_ERROR_LOG"
|
rm -rf "$TMP_ERROR_LOG"
|
||||||
|
|
||||||
RESPONSE_CODE=$(echo "$RESPONSE" | head -n 1)
|
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_MSG=""
|
||||||
OUTPUT_CODE=0
|
OUTPUT_CODE=0
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
# @hourly /bin/bash /opt/icinga2-checks/install.sh
|
# @hourly /bin/bash /opt/icinga2-checks/install.sh
|
||||||
|
|
||||||
apt update
|
apt update
|
||||||
apt install -y python3-venv git sysstat
|
apt install -y python3-venv git sysstat bc
|
||||||
|
|
||||||
pip install psutil
|
pip install psutil
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue