towerops/lib
Graham McIntire bd91e2a7c3
Add metadata support for storage sensors
Storage sensors (disk/memory usage) need to fetch two OIDs to calculate
percentages: the 'used' value and the 'size' value. Previously, only the
'used' OID was stored and polled, resulting in meaningless raw values.

Changes:
- Added metadata JSONB field to snmp_sensors table
- Updated Sensor schema to include metadata field
- Updated MikroTik profile to store size_oid in metadata for storage sensors
- Updated PollerWorker to handle percentage calculation sensors:
  - poll_simple_sensor: Standard OID fetch with divisor
  - poll_percentage_sensor: Fetches both used and size OIDs, calculates percentage

Storage sensors now properly calculate and store percentage values during polling.

NOTE: Existing MikroTik devices need to re-run SNMP discovery to populate
the metadata field for storage sensors.
2026-01-04 13:09:47 -06:00
..
towerops Add metadata support for storage sensors 2026-01-04 13:09:47 -06:00
towerops_web Move delete buttons to edit pages for sites and equipment 2026-01-04 12:25:31 -06:00
towerops.ex init 2025-12-21 11:10:43 -06:00
towerops_web.ex format 2025-12-21 11:31:08 -06:00