1
0

tcpconns.lua 721 B

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