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. |
||
|---|---|---|
| .. | ||
| channels | ||
| components | ||
| controllers | ||
| helpers | ||
| integration | ||
| live | ||
| plugs | ||
| permissions_test.exs | ||
| plug_exceptions_test.exs | ||
| user_auth_test.exs | ||