1 module("luci.statistics.rrdtool.definitions.netlink", package.seeall)
3 function rrdargs( graph, plugin, plugin_instance )
16 -- diagram data description
18 -- defined sources for data types, if ommitted assume a single DS named "value" (optional)
20 if_octets = { "tx", "rx" }
23 -- special options for single data lines
26 total = true, -- report total amount of bytes
27 color = "00ff00" -- tx is green
31 flip = true, -- flip rx line
32 total = true, -- report total amount of bytes
33 color = "0000ff" -- rx is blue
51 -- diagram data description
54 types = { "if_packets", "if_dropped", "if_errors" },
56 -- defined sources for data types
58 if_packets = { "tx", "rx" },
59 if_dropped = { "tx", "rx" },
60 if_errors = { "tx", "rx" }
63 -- special options for single data lines
65 -- 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)
74 overlay = true, -- don't summarize
75 flip = true, -- flip rx line
76 total = true, -- report total amount of bytes
77 color = "0000ff" -- processed rx is blue
80 -- dropped packets (tx DS)
82 overlay = true, -- don't summarize
83 total = true, -- report total amount of bytes
84 color = "660055" -- dropped tx is ... dunno ;)
87 -- dropped packets (rx DS)
89 overlay = true, -- don't summarize
90 flip = true, -- flip rx line
91 total = true, -- report total amount of bytes
92 color = "440066" -- dropped rx is violett
95 -- packet errors (tx DS)
97 overlay = true, -- don't summarize
98 total = true, -- report total amount of packets
99 color = "ff5500" -- tx errors are orange
102 -- packet errors (rx DS)
104 overlay = true, -- don't summarize
105 flip = true, -- flip rx line
106 total = true, -- report total amount of packets
107 color = "ff0000" -- rx errors are red
120 title = "Multicast-Pakete",
125 -- diagram data description
128 types = { "if_multicast" },
130 -- special options for single data lines
134 total = true, -- report total amount of packets
135 color = "0000ff" -- multicast is blue
148 title = "Paketkollisionen",
151 vlabel = "Kollisionen/s",
153 -- diagram data description
156 types = { "if_collisions" },
158 -- special options for single data lines
162 total = true, -- report total amount of packets
163 color = "ff0000" -- collsions are red
176 title = "TX/RX-Fehler",
179 vlabel = "Kollisionen/s",
181 -- diagram data description
184 types = { "if_tx_errors", "if_rx_errors" },
186 -- data type instances
188 if_tx_errors = { "aborted", "carrier", "fifo", "heartbeat", "window" },
189 if_rx_errors = { "length", "missed", "over", "crc", "fifo", "frame" }
192 -- special options for single data lines
193 options = { -- XXX: fixme (define colors...)
207 return { traffic, packets, multicast, collisions, errors }