Difference between revisions of "Plugin:TCPConns"

From collectd Wiki
Jump to: navigation, search
m (Added DEFAULTSORT magic word.)
(add a few examples for new options)
 
Line 12: Line 12:
  
 
== Synopsis ==
 
== Synopsis ==
 +
 +
=== Single port ===
  
 
  <Plugin "tcpconns">
 
  <Plugin "tcpconns">
Line 18: Line 20:
 
   RemotePort "25"
 
   RemotePort "25"
 
  </Plugin>
 
  </Plugin>
 +
 +
=== Multiple ports ===
 +
 +
 +
<Plugin "tcpconns">
 +
  ListeningPorts false
 +
  LocalPort "25"
 +
  LocalPort "22"
 +
</Plugin>
 +
 +
=== All listening ports ===
 +
 +
 +
<Plugin "tcpconns">
 +
  ListeningPorts true
 +
</Plugin>
 +
 +
=== Summary of all ports ===
 +
 +
<Plugin "tcpconns">
 +
  AllPortsSummary true
 +
</Plugin>
 +
  
 
== Example graphs ==
 
== Example graphs ==

Latest revision as of 15:04, 22 September 2017

TCPConns plugin
Type: read
Callbacks: config, init, read
Status: supported
First version: 4.2
Copyright: 2007–2008 Florian octo Forster
2008 Michael Stapelberg
License: GPLv2
BSD (revised)
Manpage: collectd.conf(5)
List of Plugins

The TCPConns plugin counts the number of TCP connections to or from a specified port. Typically the connections where you specify the local port are incoming connections while the connections where you specify the remote port are outgoing connections.

Synopsis

Single port

<Plugin "tcpconns">
  ListeningPorts false
  LocalPort "25"
  RemotePort "25"
</Plugin>

Multiple ports

<Plugin "tcpconns">
  ListeningPorts false
  LocalPort "25"
  LocalPort "22"
</Plugin>

All listening ports

<Plugin "tcpconns">
  ListeningPorts true
</Plugin>

Summary of all ports

<Plugin "tcpconns">
  AllPortsSummary true
</Plugin>


Example graphs

Plugin-tcpconns-local.png Plugin-tcpconns-remote.png

Dependencies

  • Linux
    • /proc-file system
  • Mac OS X (possibly also other *BSDs)
    • sysctlbyname(3)