banshee est en développement actif : les collecteurs vont encore changer, et une version que vous publiez demandera sans doute des ajustements. Pour un usage stable, attendez la version 1.0.0.

Windows

banshee/windows-collection/windows/snmp/

uptime

The time since a Windows started, and its recent restarts, by SNMP

  • windows
  • snmp
  • uptime

par banshee1 installation2 versions

v2Dernière

Publiée le 28 octobre 2026. One naming convention across collections; documentation completed.

Keen 1.0.0 · 12 lignes
// The time since a Windows started, by SNMP, from hrSystemUptime (HOST-RESOURCES-MIB):
// the system's, not the SNMP agent's (sysUpTime), which starts again at each restart of the service.
// A restart shows as a time since boot shorter than the threshold of "Recent reboot".
// hrSystemUptime counts hundredths of a second on 32 bits: it wraps to zero every 497 days,
// which the watch takes for a restart.
need('protocol:snmp');

output('uptime', 'number', array('label' => 'Time since boot', 'unit' => 'h'));

watch.below('rebooted', 'Recent reboot', 'uptime', array('warning' => 0.5));

value('uptime', number.round(snmp.get('1.3.6.1.2.1.25.1.1.0') / 360000, 2));