@cryptotaxi247 / netdata-1 / commits / c6bd0d0d2

fix(go.d/snmp): use snmpEngineTime as primary uptime source (#22231)

Ilya Mashchenko committed Apr 20, 2026 at 10:58 UTC c6bd0d0d2eaf889e272b8520addbf5e1960362c4
1 file changed +15
src/go/plugin/go.d/config/go.d/snmp.profiles/default/_system-base.yaml
+15
@@ -9,6 +9,21 @@ metric_tags:
9 tag: device_hostname
10
11 metrics:
12 + # Prefer SNMP-FRAMEWORK-MIB (snmpEngineTime) as the primary uptime source.
13 + # It is reported in seconds and does not suffer from the ~497-day wrap
14 + # limitation of TimeTicks (uint32) used by hrSystemUptime/sysUpTime.
15 + # This makes it more reliable for long-running devices.
16 + # Note: this reflects SNMP engine uptime, which in practice usually
17 + # aligns with system uptime.
18 + # We keep the same metric name (systemUptime) so the fallback logic works.
19 + - MIB: SNMP-FRAMEWORK-MIB
20 + symbol:
21 + OID: 1.3.6.1.6.3.10.2.1.3.0
22 + name: systemUptime
23 + chart_meta:
24 + description: Time since the system was last rebooted or powered on.
25 + family: 'System/Uptime'
26 + unit: "s"
27 - MIB: HOST-RESOURCES-MIB
28 symbol:
29 OID: 1.3.6.1.2.1.25.1.1.0