towerops/lib/towerops/snmp
Graham McIntire ae64ec2576
feat: add automatic polling job cleanup on deployment
Added JobCleanupTask that runs on production startup to cancel all
existing polling jobs and reschedule them with the latest worker code.

This ensures:
- No stale jobs run with old code after deployment (e.g., missing SNMPv3 credentials)
- All devices get fresh polling jobs with current logic
- Production deployments are seamless without manual intervention

The task:
- Only runs in production environment (skipped in dev/test)
- Runs asynchronously after supervisor initialization
- Cancels all DevicePollerWorker and DeviceMonitorWorker jobs
- Reschedules polling for all SNMP-enabled devices
- Is idempotent and safe to run multiple times

Removed debug logging from Client and DevicePollerWorker as SNMPv3
implementation is now verified and working correctly.
2026-02-05 08:28:27 -06:00
..
adapters enable agent debugging 2026-01-27 13:25:04 -06:00
profiles fix: resolve MikroTik sensor values and empty SNMP communities 2026-02-02 17:12:36 -06:00
adapter.ex enable agent debugging 2026-01-27 13:25:04 -06:00
agent_discovery.ex nif ci fix complie in ci 2026-01-30 13:01:44 -06:00
arp_discovery.ex arp 2026-01-23 08:40:57 -06:00
arp_entry.ex arp 2026-01-23 08:40:57 -06:00
client.ex feat: add automatic polling job cleanup on deployment 2026-02-05 08:28:27 -06:00
deferred_discovery.ex agent debug improvements 2026-01-27 14:21:50 -06:00
device.ex better discovery 2026-01-22 17:40:58 -06:00
discovery.ex feat: add SNMPv3 support to discovery and SNMP client 2026-02-04 18:18:37 -06:00
interface.ex add network map 2026-01-25 15:24:35 -06:00
interface_stat.ex moduledocs 2026-01-17 15:08:49 -06:00
ip_address.ex feat: add IP address discovery (Phase 1.3) 2026-01-21 10:36:19 -06:00
mac_address.ex mac discovery 2026-01-23 09:22:08 -06:00
mac_discovery.ex mac discovery 2026-01-23 09:22:08 -06:00
memory_pool.ex feat: add memory pool and storage discovery (Phase 1.5) 2026-01-21 10:57:08 -06:00
mib_parser.ex add MIB-based validation and generic profile tests 2026-01-08 08:57:21 -06:00
mib_translator.ex complete overhaul of snmp engine to C nif 2026-01-30 12:27:12 -06:00
neighbor.ex moduledocs 2026-01-17 15:08:49 -06:00
neighbor_cleanup_worker.ex refactor: convert periodic workers to Oban Cron for better resilience 2026-01-24 16:56:28 -06:00
neighbor_discovery.ex arp 2026-01-23 08:40:57 -06:00
physical_entity.ex feat: add physical inventory discovery (Phase 1.4) 2026-01-21 10:46:27 -06:00
poller.ex snmp overhaul 2026-01-18 16:00:01 -06:00
poller_behaviour.ex snmp bits 2026-01-03 14:41:28 -06:00
processor.ex sanitize snmp data and fix some cpu things 2026-01-22 16:53:01 -06:00
processor_reading.ex sanitize snmp data and fix some cpu things 2026-01-22 16:53:01 -06:00
sanitizer.ex sanitize snmp data and fix some cpu things 2026-01-22 16:53:01 -06:00
sensor.ex moduledocs 2026-01-17 15:08:49 -06:00
sensor_reading.ex track more snmp things 2026-01-28 09:18:31 -06:00
snmp_behaviour.ex complete overhaul of snmp engine to C nif 2026-01-30 12:27:12 -06:00
state_sensor.ex add state sensor schema, migration, and discovery 2026-01-21 10:25:01 -06:00
storage.ex feat: add memory pool and storage discovery (Phase 1.5) 2026-01-21 10:57:08 -06:00
storage_reading.ex fix mikrotik sensors 2026-01-22 18:07:20 -06:00
vlan.ex add VLAN schema, migration, and discovery 2026-01-21 10:31:21 -06:00