Network
banshee/network-collection/network/snmp/
system
The name and the time since boot of a switch, a router or a firewall by SNMP, to see a reboot or a device replaced.
by banshee1 installation2 versions
v2Latest
Published on October 28, 2026. One naming convention across collections; documentation completed.
// The name of a switch, a router or a firewall and its time since boot, by SNMP (SNMPv2-MIB): sysName, and
// sysUpTime, the time since the SNMP agent started, which on such a device starts with it. A reboot shows
// as a time since boot shorter than the "Recent reboot" threshold.
// sysUpTime counts hundredths of a second on 32 bits: it wraps every 497 days, which the watch takes for a
// reboot.
need('protocol:snmp');
output('system-name', 'text', array('label' => 'Device name'));
output('uptime', 'number', array('label' => 'Time since boot', 'unit' => 'h'));
watch.below('rebooted', 'Recent reboot', 'uptime', array('warning' => 0.5));
watch.expect('system-name', 'Unexpected device name', 'system-name', array(
'help' => 'Raises when the device answers with a name other than those given: the address now reaches another device.',
'enabled' => false,
));
value('system-name', snmp.get('1.3.6.1.2.1.1.5.0'));
value('uptime', number.round(snmp.get('1.3.6.1.2.1.1.3.0') / 360000, 2));