tcpconns.js 764 B

12345678910111213141516171819202122232425262728293031323334
  1. /* Licensed to the public under the Apache License 2.0. */
  2. 'use strict';
  3. 'require baseclass';
  4. return baseclass.extend({
  5. title: _('TCP Connections'),
  6. rrdargs: function(graph, host, 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. options: {
  24. tcp_connections__value: {
  25. title: '%di'
  26. }
  27. }
  28. }
  29. };
  30. }
  31. });