mirror of
https://github.com/ergosteur/ergo-proxmox-scripts.git
synced 2026-10-28 13:00:37 -04:00
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>
12 lines
443 B
Plaintext
12 lines
443 B
Plaintext
# 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
|