From 5d563d4ccc8f4ecfc4b38d3e3002c2f577ff86c4 Mon Sep 17 00:00:00 2001 From: bjoerrrn <91031217+bjoerrrn@users.noreply.github.com> Date: Sat, 19 Nov 2022 21:25:45 +0100 Subject: [PATCH] Update storj-system-health.sh * added "node rate limited by id" to timout counts --- storj-system-health.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/storj-system-health.sh b/storj-system-health.sh index 4b77191..b2f6417 100644 --- a/storj-system-health.sh +++ b/storj-system-health.sh @@ -1,6 +1,6 @@ #!/bin/bash # -# v1.9.6 +# v1.9.7 # # storj-system-health.sh - storagenode health checks and notifications to discord / by email # by dusselmann, https://github.com/dusselmann/storj-system-health.sh @@ -478,7 +478,7 @@ audit_difference=0 [[ "$VERBOSE" == "true" ]] && INFO="$(echo "$LOG1H" 2>&1 | grep 'INFO')" AUDS="$(echo "$LOG1H" 2>&1 | grep -E 'GET_AUDIT' | grep 'failed')" FATS="$(echo "$LOG1H" 2>&1 | grep 'FATAL' | grep -v 'INFO')" -ERRS="$(echo "$LOG1H" 2>&1 | grep 'ERROR' | grep -v -e 'INFO' -e 'FATAL' -e 'collector' -e 'piecestore' -e 'pieces error: filestore error: context canceled' -e 'piecedeleter' -e 'emptying trash failed' -e 'service ping satellite failed' -e 'timeout: no recent network activity' -e 'connection reset by peer' -e 'context canceled' -e 'tcp connector failed')" +ERRS="$(echo "$LOG1H" 2>&1 | grep 'ERROR' | grep -v -e 'INFO' -e 'FATAL' -e 'collector' -e 'piecestore' -e 'pieces error: filestore error: context canceled' -e 'piecedeleter' -e 'emptying trash failed' -e 'service ping satellite failed' -e 'timeout: no recent network activity' -e 'connection reset by peer' -e 'context canceled' -e 'tcp connector failed' -e 'node rate limited by id')" DREPS="$(echo "$LOG1H" 2>&1 | grep -E 'GET_REPAIR' | grep 'failed')" # added "severe" errors in order to recognize e.g. docker issues, connectivity issues etc. @@ -493,7 +493,7 @@ tmp_fatal_errors="$(echo "$FATS" 2>&1 | grep 'FATAL' -c)" tmp_audits_failed="$(echo "$AUDS" 2>&1 | grep -E 'GET_AUDIT' | grep 'failed' -c)" tmp_reps_failed="$(echo "$DREPS" 2>&1 | grep 'failed' -c)" tmp_rest_of_errors="$(echo "$ERRS" 2>&1 | grep 'ERROR' -c)" -tmp_io_errors="$(echo "$ERRS" 2>&1 | grep 'ERROR' | grep -e 'timeout' -e 'connection reset' -e 'tcp connector failed' -c)" +tmp_io_errors="$(echo "$ERRS" 2>&1 | grep 'ERROR' | grep -e 'timeout' -e 'connection reset' -e 'tcp connector failed' -e 'node rate limited by id' -c)" temp_severe_errors="$(echo "$SEVERE" 2>&1 | grep -i -e 'error:' -e 'fatal:' -e 'unexpected shutdown' -e 'fatal error' -e 'transport endpoint is not connected' -e 'Unable to read the disk' -e 'software caused connection abort' -c)" [[ "$VERBOSE" == "true" ]] && echo " *** info count : #$tmp_info"