Add the item callback function to the rrdtool definitions.
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
module("luci.statistics.rrdtool.definitions.apcups",package.seeall)
+function item()
+ return luci.i18n.translate("APC UPS")
+end
+
function rrdargs( graph, plugin, plugin_instance )
local lu = require("luci.util")
module("luci.statistics.rrdtool.definitions.conntrack",package.seeall)
+function item()
+ return luci.i18n.translate("Conntrack")
+end
+
function rrdargs( graph, plugin, plugin_instance, dtype )
return {
module("luci.statistics.rrdtool.definitions.contextswitch",package.seeall)
+function item()
+ return luci.i18n.translate("Context Switches")
+end
+
function rrdargs( graph, plugin, plugin_instance, dtype )
return {
module("luci.statistics.rrdtool.definitions.cpu",package.seeall)
+function item()
+ return luci.i18n.translate("Processor")
+end
+
function rrdargs( graph, plugin, plugin_instance, dtype )
return {
module("luci.statistics.rrdtool.definitions.cpufreq",package.seeall)
+function item()
+ return luci.i18n.translate("CPU Frequency")
+end
+
function rrdargs( graph, plugin, plugin_instance, dtype )
return {
module("luci.statistics.rrdtool.definitions.curl", package.seeall)
+function item()
+ return luci.i18n.translate("cUrl")
+end
+
function rrdargs( graph, plugin, plugin_instance, dtype )
return {
module("luci.statistics.rrdtool.definitions.df", package.seeall)
+function item()
+ return luci.i18n.translate("Disk Space Usage")
+end
+
function rrdargs( graph, plugin, plugin_instance, dtype )
local df_complex = {
module("luci.statistics.rrdtool.definitions.disk", package.seeall)
+function item()
+ return luci.i18n.translate("Disk Usage")
+end
+
function rrdargs( graph, plugin, plugin_instance, dtype )
return {
module("luci.statistics.rrdtool.definitions.dns", package.seeall)
+function item()
+ return luci.i18n.translate("DNS")
+end
+
function rrdargs( graph, plugin, plugin_instance )
local traffic = {
module("luci.statistics.rrdtool.definitions.entropy", package.seeall)
+function item()
+ return luci.i18n.translate("Entropy")
+end
+
function rrdargs( graph, plugin, plugin_instance, dtype )
return {
module("luci.statistics.rrdtool.definitions.interface", package.seeall)
+function item()
+ return luci.i18n.translate("Interfaces")
+end
+
function rrdargs( graph, plugin, plugin_instance )
--
module("luci.statistics.rrdtool.definitions.iptables", package.seeall)
+function item()
+ return luci.i18n.translate("Firewall")
+end
+
function rrdargs( graph, plugin, plugin_instance, dtype )
return {
module("luci.statistics.rrdtool.definitions.irq", package.seeall)
+function item()
+ return luci.i18n.translate("Interrupts")
+end
+
function rrdargs( graph, plugin, plugin_instance, dtype )
return {
module("luci.statistics.rrdtool.definitions.iwinfo", package.seeall)
+function item()
+ return luci.i18n.translate("Wireless")
+end
+
function rrdargs( graph, plugin, plugin_instance )
--
module("luci.statistics.rrdtool.definitions.load", package.seeall)
+function item()
+ return luci.i18n.translate("System Load")
+end
+
function rrdargs( graph, plugin, plugin_instance, dtype )
return {
module("luci.statistics.rrdtool.definitions.memory",package.seeall)
+function item()
+ return luci.i18n.translate("Memory")
+end
+
function rrdargs( graph, plugin, plugin_instance, dtype )
return {
module("luci.statistics.rrdtool.definitions.netlink", package.seeall)
+function item()
+ return luci.i18n.translate("Netlink")
+end
+
function rrdargs( graph, plugin, plugin_instance )
--
module("luci.statistics.rrdtool.definitions.nut",package.seeall)
+function item()
+ return luci.i18n.translate("UPS")
+end
+
function rrdargs( graph, plugin, plugin_instance, dtype )
local voltages = {
module("luci.statistics.rrdtool.definitions.olsrd", package.seeall)
+function item()
+ return luci.i18n.translate("OLSRd")
+end
+
function rrdargs( graph, plugin, plugin_instance, dtype )
local g = { }
module("luci.statistics.rrdtool.definitions.openvpn", package.seeall)
+function item()
+ return luci.i18n.translate("OpenVPN")
+end
+
function rrdargs( graph, plugin, plugin_instance )
local inst = plugin_instance:gsub("^openvpn%.(.+)%.status$", "%1")
module("luci.statistics.rrdtool.definitions.ping", package.seeall)
+function item()
+ return luci.i18n.translate("Ping")
+end
+
function rrdargs( graph, plugin, plugin_instance, dtype )
return {
module("luci.statistics.rrdtool.definitions.processes", package.seeall)
+function item()
+ return luci.i18n.translate("Processes")
+end
+
function rrdargs( graph, plugin, plugin_instance, dtype )
if plugin_instance == "" then
module("luci.statistics.rrdtool.definitions.sensors", package.seeall)
+function item()
+ return luci.i18n.translate("Sensors")
+end
+
function rrdargs( graph, plugin, plugin_instance )
return {
module("luci.statistics.rrdtool.definitions.splash_leases", package.seeall)
+function item()
+ return luci.i18n.translate("Splash Leases")
+end
+
function rrdargs( graph, plugin, plugin_instance, dtype )
return {
module("luci.statistics.rrdtool.definitions.tcpconns", package.seeall)
+function item()
+ return luci.i18n.translate("TCP Connections")
+end
+
function rrdargs( graph, plugin, plugin_instance, dtype )
return {
module("luci.statistics.rrdtool.definitions.thermal",package.seeall)
+function item()
+ return luci.i18n.translate("Thermal")
+end
+
function rrdargs( graph, plugin, plugin_instance, dtype )
return {
module("luci.statistics.rrdtool.definitions.uptime", package.seeall)
+function item()
+ return luci.i18n.translate("Uptime")
+end
+
function rrdargs( graph, plugin, plugin_instance, dtype )
return {