From f43fcb81d1a09df6d62cbbd796b51d12ef38e498 Mon Sep 17 00:00:00 2001 From: Cyberes Date: Fri, 21 Apr 2023 23:54:19 -0600 Subject: [PATCH] check_curl more decimal places --- check_curl | 2 +- install.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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