diff --git a/deploy/jarvis-health.sh b/deploy/jarvis-health.sh index 23922e3..620796a 100644 --- a/deploy/jarvis-health.sh +++ b/deploy/jarvis-health.sh @@ -64,7 +64,9 @@ if [ -f "$WDLOG" ]; then 'match($0,/^\[([0-9-]+ [0-9:]+)\]/,m){ if(m[1]>=cutoff && /restarted successfully/) print }' "$WDLOG") if [ -n "$RECENT" ]; then SVC=$(printf '%s' "$RECENT" | grep -oE '(nginx|php8.3-fpm|mariadb|redis-server)' | sort -u | tr '\n' ' ') - raise "health:wd_restart:$(date +%Y%m%d%H%M)" "warning" "Service auto-restarted" "Watchdog restarted: ${SVC:-a service}. Investigate why it died." + raise "health:wd_restart" "warning" "Service auto-restarted" "Watchdog restarted: ${SVC:-a service}. Investigate why it died." + else + clear_cond "health:wd_restart" fi fi