c944d990d2099bf608866c7afbb740d3828a07db
[project/luci.git] / applications / luci-statistics / luasrc / statistics / rrdtool / definitions / tcpconns / tcp_connections.lua
1 module("luci.statistics.rrdtool.definitions.tcpconns.tcp_connections", package.seeall)
2
3 function rrdargs( graph, plugin, plugin_instance, dtype )
4
5         return {
6                 title  = "TCP-Verbindungen auf Port " .. plugin_instance,
7                 vlabel = "Anzahl/s",
8
9                 data = {
10                         instances = {
11                                 tcp_connections = {
12                                         "SYN_SENT", "SYN_RECV", "LISTEN", "ESTABLISHED",
13                                         "LAST_ACK", "TIME_WAIT", "CLOSING", "CLOSE_WAIT",
14                                         "CLOSED", "FIN_WAIT1", "FIN_WAIT2"
15                                 }
16                         },
17
18                         options = {
19                                 tcp_connections = {
20                                         total = true
21                                 }
22                         }
23                 }
24         }
25 end