banshee is under active development: collectors will keep changing, and a version you publish will likely need adjustments. For stable use, wait for version 1.0.0.

Linux

banshee/linux-collection/linux/snmp/

users

Number of open sessions on a Linux host by SNMP.

  • linux
  • snmp
  • users
  • sessions
  • net-snmp

by banshee1 installation2 versions

v2Latest

Published on October 28, 2026. One naming convention across collections; documentation completed.

Keen 1.0.0 · 10 lines
// The number of open sessions on a Linux host, by SNMP, from hrSystemNumUsers (HOST-RESOURCES-MIB):
// net-snmp counts the sessions the system records in utmp, on the console as well as remote ones.
need('protocol:snmp');

output('sessions', 'number', array('label' => 'Open sessions'));

// No default threshold: what is normal depends on the server, a jump host or a server without sessions.
watch.above('too-many', 'Too many open sessions', 'sessions', array('enabled' => false));

value('sessions', snmp.get('1.3.6.1.2.1.25.1.5.0'));