Linux
banshee/linux-collection/linux/snmp/
users
Number of open sessions on a Linux host by SNMP.
by banshee1 installation2 versions
// 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('users', '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', 'users', array('enabled' => false));
value('users', snmp.get('1.3.6.1.2.1.25.1.5.0'));