End-of-day (20:00 Central) check of campaign deliverability across both sending pools (main out05-09 + healthcare hcout). Sends a Telegram alert ONLY when there is a reputation problem -- delivery below 65% or a spam/policy-block (550-5.7.1) spike above 150/day -- so healthy days stay silent. Reuses the existing TELEGRAM_BOT_TOKEN/CHAT_ID from /opt/performancewest/.env. Logs every run to /var/log/pw-warmup-healthcheck.log for history. Excludes internal/probe noise so the delivery figure reflects real external recipients.
7 lines
525 B
Text
7 lines
525 B
Text
# Daily warmup IP-reputation check + Telegram alert. Runs 20:00 Central (after
|
|
# the day's sends complete), alerts ONLY on a problem (delivery below 65% or
|
|
# >150 spam/policy 550-5.7.1 blocks); healthy days stay silent. Logs every run
|
|
# to /var/log/pw-warmup-healthcheck.log. Script: infra/monitoring/pw-warmup-tg-alert.sh
|
|
# -> /usr/local/bin/pw-warmup-tg-alert. Reads TELEGRAM_BOT_TOKEN/CHAT_ID from
|
|
# /opt/performancewest/.env.
|
|
0 20 * * * deploy /usr/local/bin/pw-warmup-tg-alert >> /var/log/pw-warmup-healthcheck.log 2>&1
|