freeformz/shh — pull request #57 by apg (2014-07-17 04:56:38+00:00)
Title: Sockstat support

Adds support for polling /proc/net/sockstat which gives statistics about inuse ports, and connections in time-wait to name a few things. This is turned off by default, but enabled with "sockstat" in the list of pollers. I've added one extra config variable which selects the *protocols* to collect data for, defaulting to TCP and UDP for both IPv4 and IPv6. Other *protocols* can be selected by looking at the first field of /proc/net/sockstat{,6}.