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