towerops/lib/towerops/snmp
Graham McIntire ba1e8933e4
Add hierarchical SNMP configuration with org/site/equipment fallback
Implements a hierarchical SNMP community configuration system where settings
can be defined at the organization level (global default), overridden at the
site level, or overridden at the equipment level.

Changes:
- Migration: Add snmp_version and snmp_community to organizations and sites
- Organization schema: Add SNMP fields with default version "2c"
- Site schema: Add SNMP fields that override organization defaults
- Equipment context: Add get_snmp_config/1 with hierarchical fallback logic
- Discovery: Use Equipment.get_snmp_config instead of equipment.snmp_community
- PollerWorker: Use Equipment.get_snmp_config instead of equipment.snmp_community

The fallback order is:
1. Equipment-level (highest priority)
2. Site-level
3. Organization-level (default)

All 785 tests passing.
2026-01-17 11:47:17 -06:00
..
profiles Cap storage/memory usage sensors at 100% to handle device firmware bugs 2026-01-17 11:36:37 -06:00
client.ex moar tests 2026-01-06 15:43:54 -06:00
device.ex Fix 21 Dialyzer errors by adding schema types and fixing unmatched returns 2026-01-17 10:40:47 -06:00
discovery.ex Add hierarchical SNMP configuration with org/site/equipment fallback 2026-01-17 11:47:17 -06:00
interface.ex Fix 21 Dialyzer errors by adding schema types and fixing unmatched returns 2026-01-17 10:40:47 -06:00
interface_stat.ex Add comprehensive Dialyzer type specifications 2026-01-17 10:52:02 -06:00
mib_parser.ex add MIB-based validation and generic profile tests 2026-01-08 08:57:21 -06:00
neighbor.ex fix neighbors 2026-01-16 16:09:15 -06:00
neighbor_cleanup_worker.ex add tests and add snmp neighbor discovery 2026-01-16 13:44:29 -06:00
neighbor_discovery.ex neighbor improvements 2026-01-16 16:25:49 -06:00
poller.ex Fix database schema mismatches preventing SNMP and monitoring data collection 2026-01-05 08:26:16 -06:00
poller_behaviour.ex snmp bits 2026-01-03 14:41:28 -06:00
poller_worker.ex Add hierarchical SNMP configuration with org/site/equipment fallback 2026-01-17 11:47:17 -06:00
sensor.ex Fix 21 Dialyzer errors by adding schema types and fixing unmatched returns 2026-01-17 10:40:47 -06:00
sensor_reading.ex Add comprehensive Dialyzer type specifications 2026-01-17 10:52:02 -06:00
snmp_behaviour.ex moar tests 2026-01-06 15:43:54 -06:00