Header/code audit fixes across all core scripts
Behavior fixes: - docker_daily_restart.sh: implement RESTART_VERIFY_WAIT sleep before verify_running() — variable was logged as config but never applied - cert_monitor.sh: --log now shows expiry date and days remaining for healthy domains in the per-domain summary; problems always show details Header corrections: - downloaders_reset.sh: fix frequency contradiction (15 min → 30 min) - lidarr_cleanup.sh: Emby scan triggers on actual deletions, not every run - ssh_setup.sh: document --local-only flag in USAGE section - zfs_memory_snapshot.sh: clarify dry-run skips log write in PURPOSE - ramdisk_stop.sh / ramdisk_setup.sh: document TRANSCODE_STATE_FILE var - smart_long_test.sh: remove SMART_TEMP_WARN/CRIT — not used in code
This commit is contained in:
@@ -83,7 +83,8 @@
|
||||
# Show domain list, warning thresholds, and timeout. Then exit.
|
||||
#
|
||||
# cert_monitor.sh --log
|
||||
# Verbose per-domain output during the run.
|
||||
# Include healthy domains in per-domain output with expiry date and days remaining.
|
||||
# Problems (WARN/CRIT/FAIL) always show with their details regardless of this flag.
|
||||
#
|
||||
# ==============================================================================================
|
||||
|
||||
@@ -259,13 +260,14 @@ echo " $ICON_SUCCESS Healthy: ${#HEALTHY[@]}"
|
||||
[[ ${#FAILED[@]} -gt 0 ]] && echo "$ICON_ERROR Failed: ${#FAILED[@]} — unreachable"
|
||||
echo ""
|
||||
|
||||
# Per-domain results — only show problems, healthy ones stay in log()
|
||||
# Per-domain results — problems always shown with days remaining; healthy only with --log
|
||||
for domain in "${CERT_MONITOR_DOMAINS[@]}"; do
|
||||
[[ -z "$domain" ]] && continue
|
||||
local _days="${DOMAIN_DAYS[$domain]:-?}" _exp="${DOMAIN_EXPIRY[$domain]:-unknown}"
|
||||
case "${DOMAIN_STATUS[$domain]:-UNKN}" in
|
||||
OK) log " $ICON_SUCCESS $domain — healthy" ;;
|
||||
WARN) warn " $ICON_WARN $domain — warning" ;;
|
||||
CRIT) echo " $ICON_ERROR $domain — CRITICAL" ;;
|
||||
OK) log " $ICON_SUCCESS $domain — healthy (${_days}d, expires ${_exp})" ;;
|
||||
WARN) warn " $ICON_WARN $domain — warning (${_days}d, expires ${_exp})" ;;
|
||||
CRIT) echo " $ICON_ERROR $domain — CRITICAL (${_days}d, expires ${_exp})" ;;
|
||||
FAIL) echo " $ICON_ERROR $domain — unreachable" ;;
|
||||
esac
|
||||
done
|
||||
|
||||
@@ -10,8 +10,9 @@
|
||||
# only — system_watchdog.sh handles threshold-based intervention.
|
||||
#
|
||||
# Combines ZFS pool status, ARC statistics, Docker memory usage, and kernel
|
||||
# memory pressure into a single snapshot. Output goes to both console (for User
|
||||
# Scripts output log) and ZFS_REPORT_LOG for week-over-week comparison.
|
||||
# memory pressure into a single snapshot. In normal mode output goes to both
|
||||
# console (for User Scripts output log) and ZFS_REPORT_LOG for week-over-week
|
||||
# comparison. In --dry-run mode, console only — nothing written to the log.
|
||||
#
|
||||
# ==============================================================================================
|
||||
# OPERATIONAL MODEL
|
||||
|
||||
Reference in New Issue
Block a user