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.

Windows

banshee/windows-collection/windows/snmp/

tcp

The number of established TCP connections of a Windows, by SNMP

  • windows
  • snmp
  • tcp

by banshee1 installation2 versions

Keen 1.0.0 · 11 lines
// The number of established TCP connections of a Windows, by SNMP, from tcpCurrEstab (TCP-MIB):
// those in the state ESTABLISHED or CLOSE-WAIT.
need('protocol:snmp');

output('established', 'number', array('label' => 'Established TCP connections'));

// No threshold by default: what is normal depends on the role of the server.
watch.above('too-many', 'Too many TCP connections', 'established', array('enabled' => false));
watch.habit('unusual', 'Unusual number of connections', 'established', array('enabled' => false));

value('established', snmp.get('1.3.6.1.2.1.6.9.0'));