# Copy to .env and fill in. Contains SNMP credentials -- chmod 600, never commit. # cp .env.example .env && chmod 600 .env # --- controller --- WLC_HOST=192.0.2.10 WLC_PORT=161 WLC_SNMP_USER=wlcmon WLC_SNMP_AUTH= WLC_SNMP_PRIV= # sha256 is preferred when the controller supports it; use sha for older setups. WLC_SNMP_AUTH_PROTOCOL=sha256 WLC_TIMEOUT=5 WLC_RETRIES=1 # --- mail --- MAIL_SMTP_HOST=smtp.example.com MAIL_SMTP_PORT=587 MAIL_SMTP_SECURITY=starttls MAIL_SMTP_USER= MAIL_SMTP_PASSWORD= MAIL_FROM=wlc-monitor@example.com # Comma-separated for multiple recipients. MAIL_TO=network-ops@example.com MAIL_SUBJECT_PREFIX=[WLC] # --- monitor --- TZ=UTC # Seconds between polls. This is also your detection resolution: an AP that # drops and recovers inside one interval is never seen. MONITOR_INTERVAL=300 # Consecutive failed polls before declaring the controller unreachable. # 2 x 300s means roughly 10 minutes of silence before alerting, which rides # out a single dropped UDP packet without crying wolf. MONITOR_FAIL_THRESHOLD=2 # Alert if running-config stays unsaved this many minutes. MONITOR_UNSAVED_MINUTES=60