iptables.js 778 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* Licensed to the public under the Apache License 2.0. */
  2. 'use strict';
  3. 'require baseclass';
  4. return baseclass.extend({
  5. title: _('Firewall'),
  6. rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
  7. return [{
  8. title: "%H: Firewall: Processed bytes in %pi",
  9. vlabel: "Bytes/s",
  10. number_format: "%5.1lf%sB/s",
  11. totals_format: "%5.1lf%sB",
  12. data: {
  13. types: [ "ipt_bytes" ],
  14. options: {
  15. ipt_bytes: {
  16. total: true,
  17. title: "%di"
  18. }
  19. }
  20. }
  21. }, {
  22. title: "%H: Firewall: Processed packets in %pi",
  23. vlabel: "Packets/s",
  24. number_format: "%5.1lf P/s",
  25. totals_format: "%5.1lf%s",
  26. data: {
  27. types: [ "ipt_packets" ],
  28. options: {
  29. ipt_packets: {
  30. total: true,
  31. title: "%di"
  32. }
  33. }
  34. }
  35. }];
  36. }
  37. });