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. |
||
|---|---|---|
| .. | ||
| gettext | ||
| repo | ||
| static | ||