watchdogs: fix Tailscale error propagation and docker watchdog output order
- network_watchdog: remove ISSUES++ for Tailscale — it's notify-only by design, no restart possible; cascading to system watchdog exit 1 was noise - docker_watchdog: move banner to top of cycle so body errors appear under the correct section header, not visually inside Resource Manager output
This commit is contained in:
@@ -258,7 +258,6 @@ if [[ "${NETWORK_WATCHDOG_CHECK_TAILSCALE:-true}" == "true" ]]; then
|
|||||||
log "$ICON_SUCCESS Tailscale running"
|
log "$ICON_SUCCESS Tailscale running"
|
||||||
else
|
else
|
||||||
warn "$ICON_ERROR Tailscale not in Running state"
|
warn "$ICON_ERROR Tailscale not in Running state"
|
||||||
(( ISSUES++ ))
|
|
||||||
notify "Tailscale not running on $(hostname) ($MY_ID) — manual check needed" \
|
notify "Tailscale not running on $(hostname) ($MY_ID) — manual check needed" \
|
||||||
"Network Watchdog" "warning"
|
"Network Watchdog" "warning"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -589,7 +589,7 @@ check_docker_daemon() {
|
|||||||
# ==============================================================================================
|
# ==============================================================================================
|
||||||
# ━━━ Single-Pass Monitoring Run ━━━
|
# ━━━ Single-Pass Monitoring Run ━━━
|
||||||
# ==============================================================================================
|
# ==============================================================================================
|
||||||
log "$ICON_WATCHDOG Docker watchdog — $MY_ID — $(date '+%H:%M:%S')"
|
echo "━━━ $ICON_WATCHDOG Docker Watchdog — $(date '+%Y-%m-%d %H:%M:%S') ━━━"
|
||||||
|
|
||||||
CYCLE_START=$(date +%s)
|
CYCLE_START=$(date +%s)
|
||||||
|
|
||||||
@@ -932,8 +932,6 @@ CYCLE_START=$(date +%s)
|
|||||||
CYCLE_END=$(date +%s)
|
CYCLE_END=$(date +%s)
|
||||||
|
|
||||||
if [[ "$TOTAL_RESTARTS" -gt 0 || "$TOTAL_WARNINGS" -gt 0 ]]; then
|
if [[ "$TOTAL_RESTARTS" -gt 0 || "$TOTAL_WARNINGS" -gt 0 ]]; then
|
||||||
echo ""
|
|
||||||
echo "━━━ $ICON_WATCHDOG Docker Watchdog — $(date '+%Y-%m-%d %H:%M:%S') ━━━"
|
|
||||||
echo "$ICON_WATCHDOG T1: $T1_RESTARTS restarts / $T1_WARNINGS warnings"
|
echo "$ICON_WATCHDOG T1: $T1_RESTARTS restarts / $T1_WARNINGS warnings"
|
||||||
echo "$ICON_WATCHDOG T2: $T2_RESTARTS restarts / $T2_WARNINGS warnings"
|
echo "$ICON_WATCHDOG T2: $T2_RESTARTS restarts / $T2_WARNINGS warnings"
|
||||||
echo "$ICON_TIME Duration: $(format_duration $(( CYCLE_END - CYCLE_START )))"
|
echo "$ICON_TIME Duration: $(format_duration $(( CYCLE_END - CYCLE_START )))"
|
||||||
|
|||||||
Reference in New Issue
Block a user