When agents poll devices via SNMP and get successful results, the code was only processing sensor/interface data without updating device status or resolving alerts. This caused device_down alerts to persist even after devices came back online. This fix: - Updates device status to 'up' when SNMP polling succeeds - Auto-resolves any active device_down alerts - Creates device_up alert (matching DeviceMonitorWorker behavior) - Broadcasts device_status_changed via PubSub Also fixes device_up alert creation to include resolved_at timestamp (matching DeviceMonitorWorker behavior). Test coverage: Added test verifying auto-resolution when device recovers. |
||
|---|---|---|
| .. | ||
| mix/tasks | ||
| snmpkit | ||
| towerops | ||
| towerops_web | ||
| snmp_lib.ex | ||
| snmp_mgr.ex | ||
| snmpkit.ex | ||
| towerops.ex | ||
| towerops_native.ex | ||
| towerops_web.ex | ||