Collectd 5.5.0 introduced new data to conntrack plugin: In addition to the number of tracked connections there is also the static max conntrack value and the calculated use percentage. Luci's conntrack plugin intrepretes "conntrack-max" as a new data instance and includes it in the graph in addition to the real "conntrack" number. Eliminate "max" from graph by specifying empty "" instance as data source. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
27 lines
610 B
Lua
27 lines
610 B
Lua
-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
|
|
-- Licensed to the public under the Apache License 2.0.
|
|
|
|
module("luci.statistics.rrdtool.definitions.conntrack",package.seeall)
|
|
|
|
function rrdargs( graph, plugin, plugin_instance, dtype )
|
|
return {
|
|
title = "%H: Conntrack entries",
|
|
vlabel = "Count",
|
|
number_format = "%5.0lf",
|
|
data = {
|
|
-- collectd 5.5+: specify "" to exclude "max" instance
|
|
instances = {
|
|
conntrack = { "" }
|
|
},
|
|
sources = {
|
|
conntrack = { "value" }
|
|
},
|
|
options = {
|
|
conntrack = {
|
|
color = "0000ff",
|
|
title = "Tracked connections"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
end
|