mirror of
https://github.com/ergosteur/ergo-proxmox-scripts.git
synced 2026-10-28 13:00:37 -04:00
Move watchdog alert address into conf/
Both watchdogs hardcoded the notification address. Read it from conf/watchdog.conf instead, matching the pattern used for the other credentials, so the repo carries no real contact details. If the config is absent the watchdogs still run and log; sendAlert notes the missing address and skips the mail rather than invoking mail(1) with an empty recipient. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
0580a9530a
commit
23196eafed
@@ -0,0 +1,11 @@
|
||||
# Alert destination for vm-watchdog.sh and lxc-watchdog.sh.
|
||||
#
|
||||
# Copy to conf/watchdog.conf next to the scripts:
|
||||
# cp conf/watchdog.conf.example conf/watchdog.conf
|
||||
#
|
||||
# The scripts look for it relative to their own location, so this works both in a
|
||||
# checkout and deployed at /opt/ergosteur. Override with WATCHDOG_CONFIG.
|
||||
#
|
||||
# If the file is absent the watchdogs still run and log; they just skip the email.
|
||||
|
||||
WATCHDOG_EMAIL=alerts@example.com
|
||||
Reference in New Issue
Block a user