1 /* Licensed to the public under the Apache License 2.0. */
6 return baseclass
.extend({
9 rrdargs: function(graph
, host
, plugin
, plugin_instance
, dtype
) {
14 title
: "%H: Netlink - Transfer on %pi",
17 /* diagram data description */
19 /* defined sources for data types, if omitted assume a single DS named "value" (optional) */
21 if_octets
: [ "tx", "rx" ]
24 /* special options for single data lines */
28 total
: true, /* report total amount of bytes */
29 color
: "00ff00" /* tx is green */
34 flip
: true, /* flip rx line */
35 total
: true, /* report total amount of bytes */
36 color
: "0000ff" /* rx is blue */
46 title
: "%H: Netlink - Packets on %pi",
47 vlabel
: "Packets/s", detail
: true,
49 /* diagram data description */
52 types
: [ "if_packets", "if_dropped", "if_errors" ],
54 /* defined sources for data types */
56 if_packets
: [ "tx", "rx" ],
57 if_dropped
: [ "tx", "rx" ],
58 if_errors
: [ "tx", "rx" ]
61 /* special options for single data lines */
63 /* processed packets (tx DS) */
67 overlay
: true, /* don't summarize */
68 total
: true, /* report total amount of bytes */
69 color
: "00ff00" /* processed tx is green */
72 /* processed packets (rx DS) */
76 overlay
: true, /* don't summarize */
77 flip
: true, /* flip rx line */
78 total
: true, /* report total amount of bytes */
79 color
: "0000ff" /* processed rx is blue */
82 /* dropped packets (tx DS) */
85 title
: "Dropped (TX)",
86 overlay
: true, /* don't summarize */
87 total
: true, /* report total amount of bytes */
88 color
: "660055" /* dropped tx is ... dunno ;) */
91 /* dropped packets (rx DS) */
94 title
: "Dropped (RX)",
95 overlay
: true, /* don't summarize */
96 flip
: true, /* flip rx line */
97 total
: true, /* report total amount of bytes */
98 color
: "ff00ff" /* dropped rx is violett */
101 /* packet errors (tx DS) */
104 title
: "Errors (TX)",
105 overlay
: true, /* don't summarize */
106 total
: true, /* report total amount of packets */
107 color
: "ff5500" /* tx errors are orange */
110 /* packet errors (rx DS) */
113 title
: "Errors (RX)",
114 overlay
: true, /* don't summarize */
115 flip
: true, /* flip rx line */
116 total
: true, /* report total amount of packets */
117 color
: "ff0000" /* rx errors are red */
127 title
: "%H: Netlink - Multicast on %pi",
128 vlabel
: "Packets/s", detail
: true,
130 /* diagram data description */
132 /* data type order */
133 types
: [ "if_multicast" ],
135 /* special options for single data lines */
137 /* multicast packets */
140 total
: true, /* report total amount of packets */
141 color
: "0000ff" /* multicast is blue */
151 title
: "%H: Netlink - Collisions on %pi",
152 vlabel
: "Collisions/s", detail
: true,
154 /* diagram data description */
156 /* data type order */
157 types
: [ "if_collisions" ],
159 /* special options for single data lines */
164 total
: true, /* report total amount of packets */
165 color
: "ff0000" /* collsions are red */
175 title
: "%H: Netlink - Errors on %pi",
176 vlabel
: "Errors/s", detail
: true,
178 /* diagram data description */
180 /* data type order */
181 types
: [ "if_tx_errors", "if_rx_errors" ],
183 /* data type instances */
185 if_tx_errors
: [ "aborted", "carrier", "fifo", "heartbeat", "window" ],
186 if_rx_errors
: [ "length", "missed", "over", "crc", "fifo", "frame" ]
189 /* special options for single data lines */
191 if_tx_errors_aborted_value
: { total
: true, color
: "ffff00", title
: "Aborted (TX)" },
192 if_tx_errors_carrier_value
: { total
: true, color
: "ffcc00", title
: "Carrier (TX)" },
193 if_tx_errors_fifo_value
: { total
: true, color
: "ff9900", title
: "Fifo (TX)" },
194 if_tx_errors_heartbeat_value
: { total
: true, color
: "ff6600", title
: "Heartbeat (TX)" },
195 if_tx_errors_window_value
: { total
: true, color
: "ff3300", title
: "Window (TX)" },
197 if_rx_errors_length_value
: { flip
: true, total
: true, color
: "ff0000", title
: "Length (RX)" },
198 if_rx_errors_missed_value
: { flip
: true, total
: true, color
: "ff0033", title
: "Missed (RX)" },
199 if_rx_errors_over_value
: { flip
: true, total
: true, color
: "ff0066", title
: "Over (RX)" },
200 if_rx_errors_crc_value
: { flip
: true, total
: true, color
: "ff0099", title
: "CRC (RX)" },
201 if_rx_errors_fifo_value
: { flip
: true, total
: true, color
: "ff00cc", title
: "Fifo (RX)" },
202 if_rx_errors_frame_value
: { flip
: true, total
: true, color
: "ff00ff", title
: "Frame (RX)" }
207 return [ traffic
, packets
, multicast
, collisions
, errors
];