mirror of
git://f0xx.org/android_cast
synced 2026-07-29 04:57:40 +03:00
Net topology: sirene (P2P), spider (MCU), spider net (SFU), pautina (net, mesh), hydra (hybrid), code names
37 lines
1001 B
Plaintext
37 lines
1001 B
Plaintext
# Copy to /etc/conf.d/wan-snapshot on each host (optional).
|
|
# Cron: . /etc/conf.d/wan-snapshot 2>/dev/null; /usr/local/bin/wan-snapshot.sh >>/var/log/wan-quality.cron.log 2>&1
|
|
#
|
|
# Deploy BOTH scripts:
|
|
# cp wan-snapshot.sh wan-deep-diag.sh /usr/local/bin/
|
|
|
|
# Unified log (snapshot + auto alert/deep on anomaly):
|
|
WAN_WATCH_LOG=/var/log/wan-watch.log
|
|
# Legacy alias — if same as WAN_WATCH_LOG, only one file is written:
|
|
WAN_SNAPSHOT_LOG=/var/log/wan-watch.log
|
|
|
|
WAN_SNAPSHOT_WATCH=1
|
|
WAN_WATCH_COOLDOWN_S=840
|
|
|
|
# --- Raspberry Pi ---
|
|
# WAN_SNAPSHOT_ROLE=pi
|
|
# ROUTER_PING_TARGET=10.7.6.228
|
|
# FE_PING_TARGET=10.7.0.10
|
|
# BE_PING_TARGET=10.7.16.128
|
|
|
|
# --- Debian edge (monstro) ---
|
|
# WAN_SNAPSHOT_ROLE=router
|
|
# FE_PING_TARGET=10.7.0.10
|
|
# BE_PING_TARGET=10.7.16.128
|
|
|
|
# --- Gentoo FE ---
|
|
# WAN_SNAPSHOT_ROLE=fe
|
|
# FE_PING_TARGET=10.7.0.10
|
|
# BE_PING_TARGET=10.7.16.128
|
|
# ROUTER_PING_TARGET=10.7.6.228
|
|
|
|
# Thresholds (ms / %)
|
|
# WAN_ALERT_MS=50
|
|
# FE_ALERT_MS=50
|
|
# WAN_MDEV_ALERT_MS=80
|
|
# WAN_CONNTRACK_ALERT_PCT=80
|