summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-statistics
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-statistics')
-rw-r--r--applications/luci-statistics/src/controller/luci_statistics/luci_statistics.lua12
-rw-r--r--applications/luci-statistics/src/model/cbi/luci_statistics/collectd.lua4
-rw-r--r--applications/luci-statistics/src/model/cbi/luci_statistics/dns.lua4
-rw-r--r--applications/luci-statistics/src/model/cbi/luci_statistics/interface.lua4
-rw-r--r--applications/luci-statistics/src/model/cbi/luci_statistics/iptables.lua4
-rw-r--r--applications/luci-statistics/src/model/cbi/luci_statistics/netlink.lua12
-rw-r--r--applications/luci-statistics/src/statistics/datatree.lua10
-rw-r--r--applications/luci-statistics/src/statistics/rrdtool.lua26
-rw-r--r--applications/luci-statistics/src/statistics/rrdtool/colors.lua14
-rw-r--r--applications/luci-statistics/src/statistics/rrdtool/definitions.lua8
-rw-r--r--applications/luci-statistics/src/statistics/rrdtool/definitions/cpu/cpu.lua2
-rw-r--r--applications/luci-statistics/src/statistics/rrdtool/definitions/iptables/ipt_packets.lua2
-rw-r--r--applications/luci-statistics/src/statistics/rrdtool/definitions/netlink.lua2
-rw-r--r--applications/luci-statistics/src/statistics/rrdtool/definitions/ping/ping.lua2
-rw-r--r--applications/luci-statistics/src/statistics/rrdtool/definitions/processes/ps_state.lua2
-rw-r--r--applications/luci-statistics/src/statistics/rrdtool/definitions/tcpconns/tcp_connections.lua2
-rw-r--r--applications/luci-statistics/src/statistics/rrdtool/definitions/wireless.lua2
-rw-r--r--applications/luci-statistics/src/view/admin_statistics/networkplugins.htm4
-rw-r--r--applications/luci-statistics/src/view/admin_statistics/outputplugins.htm4
-rw-r--r--applications/luci-statistics/src/view/admin_statistics/systemplugins.htm4
20 files changed, 62 insertions, 62 deletions
diff --git a/applications/luci-statistics/src/controller/luci_statistics/luci_statistics.lua b/applications/luci-statistics/src/controller/luci_statistics/luci_statistics.lua
index a30db7c09c..df262a1154 100644
--- a/applications/luci-statistics/src/controller/luci_statistics/luci_statistics.lua
+++ b/applications/luci-statistics/src/controller/luci_statistics/luci_statistics.lua
@@ -1,9 +1,9 @@
-module("ffluci.controller.luci_statistics.luci_statistics", package.seeall)
+module("luci.controller.luci_statistics.luci_statistics", package.seeall)
-local fs = require("ffluci.fs")
-local tpl = require("ffluci.template")
-local rrd = require("ffluci.statistics.rrdtool")
-local data = require("ffluci.statistics.datatree").Instance()
+local fs = require("luci.fs")
+local tpl = require("luci.template")
+local rrd = require("luci.statistics.rrdtool")
+local data = require("luci.statistics.datatree").Instance()
function _entry( path, ... )
@@ -93,7 +93,7 @@ end
function statistics_render()
- local plugin = ffluci.dispatcher.request[3]
+ local plugin = luci.dispatcher.request[3]
local images = { }
for i, inst in ipairs( data:plugin_instances( plugin ) ) do
diff --git a/applications/luci-statistics/src/model/cbi/luci_statistics/collectd.lua b/applications/luci-statistics/src/model/cbi/luci_statistics/collectd.lua
index 21ff457e33..e09a11df1b 100644
--- a/applications/luci-statistics/src/model/cbi/luci_statistics/collectd.lua
+++ b/applications/luci-statistics/src/model/cbi/luci_statistics/collectd.lua
@@ -13,7 +13,7 @@ $Id$
]]--
-require("ffluci.sys")
+require("luci.sys")
m = Map("luci_statistics", "Collector Daemon",
@@ -56,7 +56,7 @@ readthreads.isnumber = true
-- general.hostname (Hostname)
hostname = s:option( Value, "Hostname", "Hostname zur Identifikation des Collector Dienstes (leer lassen um den Namen automatisch zu bestimmen)" )
-hostname.default = ffluci.sys.hostname()
+hostname.default = luci.sys.hostname()
hostname.optional = true
-- general.fqdnlookup (FQDNLookup)
diff --git a/applications/luci-statistics/src/model/cbi/luci_statistics/dns.lua b/applications/luci-statistics/src/model/cbi/luci_statistics/dns.lua
index ed71a55a3a..dc7f57d68f 100644
--- a/applications/luci-statistics/src/model/cbi/luci_statistics/dns.lua
+++ b/applications/luci-statistics/src/model/cbi/luci_statistics/dns.lua
@@ -13,7 +13,7 @@ $Id$
]]--
-require("ffluci.sys")
+require("luci.sys")
m = Map("luci_statistics", "DNS Plugin",
@@ -30,7 +30,7 @@ enable.default = 0
interfaces = s:option( ListValue, "Interface", "Folgende Schnittstelle überwachen:" )
interfaces:depends( "enable", 1 )
interfaces:value("any")
-for k, v in pairs(ffluci.sys.net.devices()) do
+for k, v in pairs(luci.sys.net.devices()) do
interfaces:value(v)
end
diff --git a/applications/luci-statistics/src/model/cbi/luci_statistics/interface.lua b/applications/luci-statistics/src/model/cbi/luci_statistics/interface.lua
index 5acd4e93ca..3cd71a15d4 100644
--- a/applications/luci-statistics/src/model/cbi/luci_statistics/interface.lua
+++ b/applications/luci-statistics/src/model/cbi/luci_statistics/interface.lua
@@ -13,7 +13,7 @@ $Id$
]]--
-require("ffluci.sys")
+require("luci.sys")
m = Map("luci_statistics", "Interface Plugin",
@@ -30,7 +30,7 @@ enable.default = 0
interfaces = s:option( MultiValue, "Interfaces", "Überwachte Schnittstellen", "mehrere Einträge mit Strg selektieren" )
interfaces.widget = "select"
interfaces:depends( "enable", 1 )
-for k, v in pairs(ffluci.sys.net.devices()) do
+for k, v in pairs(luci.sys.net.devices()) do
interfaces:value(v)
end
diff --git a/applications/luci-statistics/src/model/cbi/luci_statistics/iptables.lua b/applications/luci-statistics/src/model/cbi/luci_statistics/iptables.lua
index 4757295897..4b6d9dbf43 100644
--- a/applications/luci-statistics/src/model/cbi/luci_statistics/iptables.lua
+++ b/applications/luci-statistics/src/model/cbi/luci_statistics/iptables.lua
@@ -13,9 +13,9 @@ $Id$
]]--
-require("ffluci.sys.iptparser")
+require("luci.sys.iptparser")
-ip = ffluci.sys.iptparser.IptParser()
+ip = luci.sys.iptparser.IptParser()
chains = { }
targets = { }
diff --git a/applications/luci-statistics/src/model/cbi/luci_statistics/netlink.lua b/applications/luci-statistics/src/model/cbi/luci_statistics/netlink.lua
index 478560f973..a27def8eb0 100644
--- a/applications/luci-statistics/src/model/cbi/luci_statistics/netlink.lua
+++ b/applications/luci-statistics/src/model/cbi/luci_statistics/netlink.lua
@@ -13,7 +13,7 @@ $Id$
]]--
-require("ffluci.sys")
+require("luci.sys")
m = Map("luci_statistics", "Interface Plugin",
@@ -32,7 +32,7 @@ interfaces.widget = "select"
interfaces.optional = true
interfaces:depends( "enable", 1 )
interfaces:value("")
-for i, v in ipairs(ffluci.sys.net.devices()) do
+for i, v in ipairs(luci.sys.net.devices()) do
interfaces:value(v)
end
@@ -42,7 +42,7 @@ verboseinterfaces.widget = "select"
verboseinterfaces.optional = true
verboseinterfaces:depends( "enable", 1 )
verboseinterfaces:value("")
-for i, v in ipairs(ffluci.sys.net.devices()) do
+for i, v in ipairs(luci.sys.net.devices()) do
verboseinterfaces:value(v)
end
@@ -52,7 +52,7 @@ qdiscs.widget = "select"
qdiscs.optional = true
qdiscs:depends( "enable", 1 )
qdiscs:value("")
-for i, v in ipairs(ffluci.sys.net.devices()) do
+for i, v in ipairs(luci.sys.net.devices()) do
qdiscs:value(v)
end
@@ -62,7 +62,7 @@ classs.widget = "select"
classs.optional = true
classs:depends( "enable", 1 )
classs:value("")
-for i, v in ipairs(ffluci.sys.net.devices()) do
+for i, v in ipairs(luci.sys.net.devices()) do
classs:value(v)
end
@@ -72,7 +72,7 @@ filters.widget = "select"
filters.optional = true
filters:depends( "enable", 1 )
filters:value("")
-for i, v in ipairs(ffluci.sys.net.devices()) do
+for i, v in ipairs(luci.sys.net.devices()) do
filters:value(v)
end
diff --git a/applications/luci-statistics/src/statistics/datatree.lua b/applications/luci-statistics/src/statistics/datatree.lua
index 99e7e44425..957b230a96 100644
--- a/applications/luci-statistics/src/statistics/datatree.lua
+++ b/applications/luci-statistics/src/statistics/datatree.lua
@@ -1,9 +1,9 @@
-module("ffluci.statistics.datatree", package.seeall)
+module("luci.statistics.datatree", package.seeall)
-local util = require("ffluci.util")
-local sys = require("ffluci.sys")
-local fs = require("ffluci.fs")
-local uci = require("ffluci.model.uci").Session()
+local util = require("luci.util")
+local sys = require("luci.sys")
+local fs = require("luci.fs")
+local uci = require("luci.model.uci").Session()
local sections, names = uci:sections( "luci_statistics" )
diff --git a/applications/luci-statistics/src/statistics/rrdtool.lua b/applications/luci-statistics/src/statistics/rrdtool.lua
index 97772cc38f..b399866a85 100644
--- a/applications/luci-statistics/src/statistics/rrdtool.lua
+++ b/applications/luci-statistics/src/statistics/rrdtool.lua
@@ -1,23 +1,23 @@
-module("ffluci.statistics.rrdtool", package.seeall)
+module("luci.statistics.rrdtool", package.seeall)
-require("ffluci.statistics.datatree")
-require("ffluci.statistics.rrdtool.colors")
-require("ffluci.statistics.rrdtool.definitions")
-require("ffluci.util")
-require("ffluci.bits")
-require("ffluci.fs")
+require("luci.statistics.datatree")
+require("luci.statistics.rrdtool.colors")
+require("luci.statistics.rrdtool.definitions")
+require("luci.util")
+require("luci.bits")
+require("luci.fs")
-Graph = ffluci.util.class()
+Graph = luci.util.class()
function Graph.__init__( self, timespan, opts )
opts = opts or { }
opts.width = opts.width or "400"
- self.colors = ffluci.statistics.rrdtool.colors.Instance()
- self.defs = ffluci.statistics.rrdtool.definitions.Instance()
- self.tree = ffluci.statistics.datatree.Instance()
+ self.colors = luci.statistics.rrdtool.colors.Instance()
+ self.defs = luci.statistics.rrdtool.definitions.Instance()
+ self.tree = luci.statistics.datatree.Instance()
-- rrdtool defalt args
self.args = {
@@ -77,7 +77,7 @@ function Graph._rrdtool( self, png, rrd )
-- prepare directory
local dir = png:gsub("/[^/]+$","")
- ffluci.fs.mkdir( dir, true )
+ luci.fs.mkdir( dir, true )
-- construct commandline
local cmdline = "rrdtool graph " .. png
@@ -195,7 +195,7 @@ function Graph.render( self, host, plugin, plugin_instance )
local pngs = { }
-- check for a whole graph handler
- local plugin_def = "ffluci.statistics.rrdtool.definitions." .. plugin
+ local plugin_def = "luci.statistics.rrdtool.definitions." .. plugin
local stat, def = pcall( require, plugin_def )
if stat and def and type(def.rrdargs) == "function" then
diff --git a/applications/luci-statistics/src/statistics/rrdtool/colors.lua b/applications/luci-statistics/src/statistics/rrdtool/colors.lua
index cd1e52d199..cdd6f71057 100644
--- a/applications/luci-statistics/src/statistics/rrdtool/colors.lua
+++ b/applications/luci-statistics/src/statistics/rrdtool/colors.lua
@@ -1,16 +1,16 @@
-module("ffluci.statistics.rrdtool.colors", package.seeall)
+module("luci.statistics.rrdtool.colors", package.seeall)
-require("ffluci.util")
-require("ffluci.bits")
+require("luci.util")
+require("luci.bits")
-Instance = ffluci.util.class()
+Instance = luci.util.class()
function Instance.from_string( self, s )
return {
- ffluci.bits.Hex2Dec(s:sub(1,2)),
- ffluci.bits.Hex2Dec(s:sub(3,4)),
- ffluci.bits.Hex2Dec(s:sub(5,6))
+ luci.bits.Hex2Dec(s:sub(1,2)),
+ luci.bits.Hex2Dec(s:sub(3,4)),
+ luci.bits.Hex2Dec(s:sub(5,6))
}
end
diff --git a/applications/luci-statistics/src/statistics/rrdtool/definitions.lua b/applications/luci-statistics/src/statistics/rrdtool/definitions.lua
index 9d06fa4b6d..add69e4b64 100644
--- a/applications/luci-statistics/src/statistics/rrdtool/definitions.lua
+++ b/applications/luci-statistics/src/statistics/rrdtool/definitions.lua
@@ -1,10 +1,10 @@
-module("ffluci.statistics.rrdtool.definitions", package.seeall)
+module("luci.statistics.rrdtool.definitions", package.seeall)
-require("ffluci.util")
-require("ffluci.fs")
+require("luci.util")
+require("luci.fs")
-Instance = ffluci.util.class()
+Instance = luci.util.class()
function Instance.__init__( self, ... )
diff --git a/applications/luci-statistics/src/statistics/rrdtool/definitions/cpu/cpu.lua b/applications/luci-statistics/src/statistics/rrdtool/definitions/cpu/cpu.lua
index 557c5dafe1..2626d276d1 100644
--- a/applications/luci-statistics/src/statistics/rrdtool/definitions/cpu/cpu.lua
+++ b/applications/luci-statistics/src/statistics/rrdtool/definitions/cpu/cpu.lua
@@ -1,4 +1,4 @@
-module("ffluci.statistics.rrdtool.definitions.cpu.cpu",package.seeall)
+module("luci.statistics.rrdtool.definitions.cpu.cpu",package.seeall)
function rrdargs( graph, host, plugin, plugin_instance, dtype )
diff --git a/applications/luci-statistics/src/statistics/rrdtool/definitions/iptables/ipt_packets.lua b/applications/luci-statistics/src/statistics/rrdtool/definitions/iptables/ipt_packets.lua
index 1b45e25a91..b16add995d 100644
--- a/applications/luci-statistics/src/statistics/rrdtool/definitions/iptables/ipt_packets.lua
+++ b/applications/luci-statistics/src/statistics/rrdtool/definitions/iptables/ipt_packets.lua
@@ -1,4 +1,4 @@
-module("ffluci.statistics.rrdtool.definitions.iptables.ipt_packets", package.seeall)
+module("luci.statistics.rrdtool.definitions.iptables.ipt_packets", package.seeall)
function rrdargs( graph, host, plugin, plugin_instance, dtype )
diff --git a/applications/luci-statistics/src/statistics/rrdtool/definitions/netlink.lua b/applications/luci-statistics/src/statistics/rrdtool/definitions/netlink.lua
index de3924dc74..3cee6abc00 100644
--- a/applications/luci-statistics/src/statistics/rrdtool/definitions/netlink.lua
+++ b/applications/luci-statistics/src/statistics/rrdtool/definitions/netlink.lua
@@ -1,4 +1,4 @@
-module("ffluci.statistics.rrdtool.definitions.netlink", package.seeall)
+module("luci.statistics.rrdtool.definitions.netlink", package.seeall)
function rrdargs( graph, host, plugin, plugin_instance )
diff --git a/applications/luci-statistics/src/statistics/rrdtool/definitions/ping/ping.lua b/applications/luci-statistics/src/statistics/rrdtool/definitions/ping/ping.lua
index 48a5673ada..b041c015da 100644
--- a/applications/luci-statistics/src/statistics/rrdtool/definitions/ping/ping.lua
+++ b/applications/luci-statistics/src/statistics/rrdtool/definitions/ping/ping.lua
@@ -1,4 +1,4 @@
-module("ffluci.statistics.rrdtool.definitions.ping.ping", package.seeall)
+module("luci.statistics.rrdtool.definitions.ping.ping", package.seeall)
function rrdargs( graph, host, plugin, plugin_instance, dtype )
diff --git a/applications/luci-statistics/src/statistics/rrdtool/definitions/processes/ps_state.lua b/applications/luci-statistics/src/statistics/rrdtool/definitions/processes/ps_state.lua
index 4261e09890..07cbe1d4af 100644
--- a/applications/luci-statistics/src/statistics/rrdtool/definitions/processes/ps_state.lua
+++ b/applications/luci-statistics/src/statistics/rrdtool/definitions/processes/ps_state.lua
@@ -1,4 +1,4 @@
-module("ffluci.statistics.rrdtool.definitions.processes.ps_state", package.seeall)
+module("luci.statistics.rrdtool.definitions.processes.ps_state", package.seeall)
function rrdargs( graph, host, plugin, plugin_instance, dtype )
diff --git a/applications/luci-statistics/src/statistics/rrdtool/definitions/tcpconns/tcp_connections.lua b/applications/luci-statistics/src/statistics/rrdtool/definitions/tcpconns/tcp_connections.lua
index 81860d0990..0493574948 100644
--- a/applications/luci-statistics/src/statistics/rrdtool/definitions/tcpconns/tcp_connections.lua
+++ b/applications/luci-statistics/src/statistics/rrdtool/definitions/tcpconns/tcp_connections.lua
@@ -1,4 +1,4 @@
-module("ffluci.statistics.rrdtool.definitions.tcpconns.tcp_connections", package.seeall)
+module("luci.statistics.rrdtool.definitions.tcpconns.tcp_connections", package.seeall)
function rrdargs( graph, host, plugin, plugin_instance, dtype )
diff --git a/applications/luci-statistics/src/statistics/rrdtool/definitions/wireless.lua b/applications/luci-statistics/src/statistics/rrdtool/definitions/wireless.lua
index 5b3acc51f8..e315ca5210 100644
--- a/applications/luci-statistics/src/statistics/rrdtool/definitions/wireless.lua
+++ b/applications/luci-statistics/src/statistics/rrdtool/definitions/wireless.lua
@@ -1,4 +1,4 @@
-module("ffluci.statistics.rrdtool.definitions.wireless", package.seeall)
+module("luci.statistics.rrdtool.definitions.wireless", package.seeall)
function rrdargs( graph, host, plugin, plugin_instance )
diff --git a/applications/luci-statistics/src/view/admin_statistics/networkplugins.htm b/applications/luci-statistics/src/view/admin_statistics/networkplugins.htm
index 0c6d7f7ad3..d3aa87eb17 100644
--- a/applications/luci-statistics/src/view/admin_statistics/networkplugins.htm
+++ b/applications/luci-statistics/src/view/admin_statistics/networkplugins.htm
@@ -8,8 +8,8 @@ auf verschiedenen Schnittstellen, DNS-Verkehr u.v.m.%></p>
<p><%:stat_networkplugins_installed Installierte Netzwerkplugins:%>
<ul>
<% for plugin, desc in pairs(plugins) do %>
- <% if ffluci.fs.isfile("/usr/lib/collectd/" .. plugin .. ".so") then %>
- <li><a href="/cgi-bin/ffluci/admin/statistics/network/<%=plugin%>"><%=desc%></a></li>
+ <% if luci.fs.isfile("/usr/lib/collectd/" .. plugin .. ".so") then %>
+ <li><a href="/cgi-bin/luci/admin/statistics/network/<%=plugin%>"><%=desc%></a></li>
<% end %>
<% end %>
</ul>
diff --git a/applications/luci-statistics/src/view/admin_statistics/outputplugins.htm b/applications/luci-statistics/src/view/admin_statistics/outputplugins.htm
index ed86514074..5a8a76045a 100644
--- a/applications/luci-statistics/src/view/admin_statistics/outputplugins.htm
+++ b/applications/luci-statistics/src/view/admin_statistics/outputplugins.htm
@@ -9,8 +9,8 @@ die gesammelten Werte in RRD-Datenbanken zu sichern und zusätzlich über das Ne
<p><%:stat_outputplugins_installed Installierte Ausgabeplugins:%>
<ul>
<% for plugin, desc in pairs(plugins) do %>
- <% if ffluci.fs.isfile("/usr/lib/collectd/" .. plugin .. ".so") then %>
- <li><a href="/cgi-bin/ffluci/admin/statistics/output/<%=plugin%>"><%=desc%></a></li>
+ <% if luci.fs.isfile("/usr/lib/collectd/" .. plugin .. ".so") then %>
+ <li><a href="/cgi-bin/luci/admin/statistics/output/<%=plugin%>"><%=desc%></a></li>
<% end %>
<% end %>
</ul>
diff --git a/applications/luci-statistics/src/view/admin_statistics/systemplugins.htm b/applications/luci-statistics/src/view/admin_statistics/systemplugins.htm
index cbb469a1f1..2a32bf5ca9 100644
--- a/applications/luci-statistics/src/view/admin_statistics/systemplugins.htm
+++ b/applications/luci-statistics/src/view/admin_statistics/systemplugins.htm
@@ -8,8 +8,8 @@ auf dem Gerät.%></p>
<p><%:stat_systemplugins_installed Installierte Systemplugins:%>
<ul>
<% for plugin, desc in pairs(plugins) do %>
- <% if ffluci.fs.isfile("/usr/lib/collectd/" .. plugin .. ".so") then %>
- <li><a href="/cgi-bin/ffluci/admin/statistics/system/<%=plugin%>"><%=desc%></a></li>
+ <% if luci.fs.isfile("/usr/lib/collectd/" .. plugin .. ".so") then %>
+ <li><a href="/cgi-bin/luci/admin/statistics/system/<%=plugin%>"><%=desc%></a></li>
<% end %>
<% end %>
</ul>