-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
40 lines (35 loc) · 2.74 KB
/
Copy path.env.example
File metadata and controls
40 lines (35 loc) · 2.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Container Watchdog — environment variables
# Copy to .env and fill in the values for every channel you intend to use.
# cp .env.example .env
# chmod 600 .env # secrets — restrict to owner only
#
# Only credentials/secrets belong here.
# All other settings (hosts, ports, recipients, thresholds) go in watchdog-config.yaml.
# ── Slack ─────────────────────────────────────────────────────────────────────
# Required if alert_channels includes "slack"
SLACK_WEBHOOK_URL=https://hooks.slack.com/services/YOUR/WEBHOOK/URL
# ── SMTP ──────────────────────────────────────────────────────────────────────
# Required if alert_channels includes "smtp"
# Only credentials come from env — host, port, sender, recipients go in watchdog-config.yaml
SMTP_USERNAME=your-smtp-username/login email
SMTP_PASSWORD=your-smtp-password/api key value
# ── SNMP Trap ─────────────────────────────────────────────────────────────────
# SNMPv1/v2c: no credentials needed — community string goes in watchdog-config.yaml.
# SNMPv3 only: supply auth and priv passphrases below.
# These are referenced by v3_auth_key_env / v3_priv_key_env in watchdog-config.yaml.
#
# Rules (RFC 3414):
# • Both passphrases must be at least 8 characters.
# • SNMP_V3_PRIV_KEY requires SNMP_V3_AUTH_KEY to also be set —
# SNMPv3 has no privacy-only mode; omitting the auth key causes the
# trap to be rejected rather than silently sent unencrypted.
# • Prefer AES over DES for encryption (DES is cryptographically weak).
# • Avoid leading/trailing whitespace — stray spaces change the localised
# USM key and produce "Verification failed" errors in snmptrapd.
# SNMP_V3_AUTH_KEY=your_auth_passphrase_min8chars
# SNMP_V3_PRIV_KEY=your_priv_passphrase_min8chars
# ── Syslog ────────────────────────────────────────────────────────────────────
# No credentials needed in env — syslog is unauthenticated (UDP/TCP).
# Configure host, port, protocol, and facility entirely in watchdog-config.yaml.
# ── Tuning ────────────────────────────────────────────────────────────────────
LOG_LEVEL=INFO