snmp6.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. /* Licensed to the public under the Apache License 2.0. */
  2. 'use strict';
  3. 'require baseclass';
  4. return baseclass.extend({
  5. title: _('SNMP6'),
  6. rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
  7. var traffic = {
  8. title: "%H: IPv6 on %pi",
  9. vlabel: "Bytes/s",
  10. data: {
  11. sources: {
  12. if_octets: [ "tx", "rx" ]
  13. },
  14. options: {
  15. if_octets__tx: {
  16. title: "Bytes (TX)",
  17. total: true,
  18. color: "00ff00"
  19. },
  20. if_octets__rx: {
  21. title: "Bytes (RX)",
  22. flip : true,
  23. total: true,
  24. color: "0000ff"
  25. }
  26. }
  27. }
  28. };
  29. var mcast_traffic = {
  30. title: "%H: IPv6 Multicast-Traffic on %pi",
  31. vlabel: "Bytes/s",
  32. data: {
  33. sources: {
  34. if_octets_mcast: [ "tx", "rx" ]
  35. },
  36. options: {
  37. if_octets_mcast__tx: {
  38. title: "Bytes (TX)",
  39. total: true,
  40. color: "00ff00"
  41. },
  42. if_octets_mcast__rx: {
  43. title: "Bytes (RX)",
  44. flip : true,
  45. total: true,
  46. color: "0000ff"
  47. }
  48. }
  49. }
  50. };
  51. var bcast_traffic = {
  52. title: "%H: IPv6 Broadcast-Traffic on %pi",
  53. vlabel: "Bytes/s",
  54. data: {
  55. sources: {
  56. if_octets_bcast: [ "tx", "rx" ]
  57. },
  58. options: {
  59. if_octets_bcast__tx: {
  60. title: "Bytes (TX)",
  61. total: true,
  62. color: "00ff00"
  63. },
  64. if_octets_bcast__rx: {
  65. title: "Bytes (RX)",
  66. flip : true,
  67. total: true,
  68. color: "0000ff"
  69. }
  70. }
  71. }
  72. };
  73. return [ traffic, mcast_traffic, bcast_traffic ]
  74. }
  75. });