-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.server.example
More file actions
66 lines (57 loc) · 3.21 KB
/
.env.server.example
File metadata and controls
66 lines (57 loc) · 3.21 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# ============================================================
# server-monitor — server-side alert configuration
# This file is copied to the server as /etc/server-monitor/.env
# deploy.sh can generate it interactively and keep a local copy.
# ============================================================
# ── Server identity ──────────────────────────────────────────
SERVER_NAME="my-server"
# ════════════════════════════════════════════════════════════
# Alert platforms
# ════════════════════════════════════════════════════════════
TELEGRAM_ENABLED=false
TELEGRAM_BOT_TOKEN=""
TELEGRAM_CHAT_ID=""
DISCORD_ENABLED=false
DISCORD_WEBHOOK_URL=""
WEBHOOK_ENABLED=false
WEBHOOK_URL=""
WEBHOOK_SECRET=""
# ════════════════════════════════════════════════════════════
# Monitor switches
# ════════════════════════════════════════════════════════════
MONITOR_CPU=true
MONITOR_RAM=true
MONITOR_DISK=true
MONITOR_IOWAIT=true
MONITOR_NETWORK=true
MONITOR_SERVICES=true
MONITOR_BRUTEFORCE=true
MONITOR_SSH_LOGIN=true
MONITOR_LOG_SIZE=true
# Restrict service monitoring to the units you actually care about.
# Leave blank to let deploy.sh propose a curated list from the server.
SERVICES_TO_MONITOR=""
# ════════════════════════════════════════════════════════════
# Alert cadence
# ════════════════════════════════════════════════════════════
CHECK_INTERVAL_RESOURCES_MINUTES=1
CHECK_INTERVAL_SERVICES_MINUTES=1
CHECK_INTERVAL_BRUTEFORCE_MINUTES=1
CHECK_INTERVAL_LOG_SIZE_MINUTES=1440
RESOURCE_SUSTAIN_MINUTES=5
# ════════════════════════════════════════════════════════════
# Thresholds
# ════════════════════════════════════════════════════════════
CPU_THRESHOLD=80
RAM_THRESHOLD=85
DISK_THRESHOLD=85
IO_THRESHOLD=80
NET_THRESHOLD_MBPS=100
BRUTE_FORCE_THRESHOLD=10
LOG_SIZE_THRESHOLD_MB=500
LOG_DIR_THRESHOLD_MB=2048
LOG_DIRS="/var/log"
# ════════════════════════════════════════════════════════════
# Behaviour
# ════════════════════════════════════════════════════════════
NOTIFY_RECOVERY=true