Globally reduce copyright headers
[project/luci.git] / applications / luci-app-statistics / luasrc / statistics / rrdtool / definitions / tcpconns.lua
1 -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
2 -- Licensed to the public under the Apache License 2.0.
3
4 module("luci.statistics.rrdtool.definitions.tcpconns", package.seeall)
5
6 function rrdargs( graph, plugin, plugin_instance, dtype )
7         return {
8                 title = "%H: TCP connections to port %pi",
9                 vlabel = "Connections/s",
10                 number_format = "%5.0lf",
11                 data = {
12                         types = { "tcp_connections" },
13                         instances = {
14                                 tcp_connections = {
15                                         "SYN_SENT", "SYN_RECV", "LISTEN", "ESTABLISHED",
16                                         "LAST_ACK", "TIME_WAIT", "CLOSING", "CLOSE_WAIT",
17                                         "CLOSED", "FIN_WAIT1", "FIN_WAIT2"
18                                 },
19                                 options = {
20                                         load__ESTABLISHED = { title = "%di", noarea = true }
21                                 }
22                         }
23                 }
24         }
25 end