towerops/priv
Graham McIntire 68a4ebf601
fix: correct misclassified MikroTik voltage sensors
Fixes voltage sensors that were incorrectly classified as temperature
sensors due to MikroTik devices reporting wrong mtxrGaugeUnit values.

Problem:
- Sensors with names like "psu1-voltage" and "psu2-voltage" were
  classified as temperature sensors with divisor=1
- This caused voltage readings to display as 469V instead of 46.9V
- The RouterOS profile already has name-based override logic for new
  discoveries, but existing sensors needed fixing

Solution:
- Migration identifies sensors by:
  - OID pattern: 1.3.6.1.4.1.14988.1.1.3.100.1.3.%
  - Type mismatch: sensor_type = 'temperature' but name contains 'voltage'
  - Incorrect divisor: sensor_divisor = 1
- Updates sensor metadata: type, unit, divisor
- Corrects historical sensor_reading values by dividing by 10

Future discoveries are already protected by the name-based override
logic in lib/towerops/snmp/profiles/vendors/routeros.ex:620-630

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-25 12:30:26 -06:00
..
gettext init 2025-12-21 11:10:43 -06:00
mibs Include MIB files in Docker image instead of using PVC 2026-01-19 14:01:03 -06:00
profiles import yamls 2026-01-21 14:30:04 -06:00
proto Add ICMP monitoring support to Phoenix agent channel 2026-01-19 13:46:20 -06:00
repo fix: correct misclassified MikroTik voltage sensors 2026-01-25 12:30:26 -06:00
static sanitize snmp data and fix some cpu things 2026-01-22 16:53:01 -06:00