diff options
author | Steven Barth <steven@midlink.org> | 2008-05-27 12:23:39 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-05-27 12:23:39 +0000 |
commit | d35a620e9f5665a94967f4bd02c93581a1dd7e00 (patch) | |
tree | cbe7a9b9fe71e40d850c649361c87608d56ea48b /applications/luci-statistics/luasrc/view | |
parent | 5df565faba5eb0c26a7ce0e2d6e9092bf71cb1e8 (diff) |
commit 4f6198094cf4134179d1f9c9fa8f79759a27c87e
Author: Felix Fietkau <nbd@openwrt.org>
Date: Tue May 27 13:56:12 2008 +0200
rename src/ to luasrc/
Diffstat (limited to 'applications/luci-statistics/luasrc/view')
5 files changed, 72 insertions, 0 deletions
diff --git a/applications/luci-statistics/luasrc/view/admin_statistics/index.htm b/applications/luci-statistics/luasrc/view/admin_statistics/index.htm new file mode 100644 index 000000000..2c1befa50 --- /dev/null +++ b/applications/luci-statistics/luasrc/view/admin_statistics/index.htm @@ -0,0 +1,8 @@ +<%+header%> + +<h1><%:stat Statistiken%></h1> + +<p><%:stat_desc Die Statistiken bauen auf <a href="http://collectd.org/index.shtml">Collectd</a> auf und nutzen +<a href="http://oss.oetiker.ch/rrdtool/">RRD Tool</a> um Graphen aus den erfassten Daten zu rendern.%></p> + +<%+footer%> diff --git a/applications/luci-statistics/luasrc/view/admin_statistics/networkplugins.htm b/applications/luci-statistics/luasrc/view/admin_statistics/networkplugins.htm new file mode 100644 index 000000000..d3aa87eb1 --- /dev/null +++ b/applications/luci-statistics/luasrc/view/admin_statistics/networkplugins.htm @@ -0,0 +1,18 @@ +<%+header%> + +<h1><%:stat_networkplugins Netzwerkplugins%></h1> + +<p><%:stat_networkplugins_desc Netzwerkplugins sammeln Werte über offene TCP-Verbindung, allgemeines Verkehrsaufkommen +auf verschiedenen Schnittstellen, DNS-Verkehr u.v.m.%></p> + +<p><%:stat_networkplugins_installed Installierte Netzwerkplugins:%> + <ul> + <% for plugin, desc in pairs(plugins) do %> + <% 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> +</p> + +<%+footer%> diff --git a/applications/luci-statistics/luasrc/view/admin_statistics/outputplugins.htm b/applications/luci-statistics/luasrc/view/admin_statistics/outputplugins.htm new file mode 100644 index 000000000..5a8a76045 --- /dev/null +++ b/applications/luci-statistics/luasrc/view/admin_statistics/outputplugins.htm @@ -0,0 +1,19 @@ +<%+header%> + +<h1><%:stat_outputplugins Ausgabeplugins%></h1> + +<p><%:stat_outputplugins_desc Ausgabeplugins stellen verschiedene Möglichkeiten zur Speicherung +der Daten bereit. Es können auch mehrere Plugins gleichzeitig aktiviert werden um beispielsweise +die gesammelten Werte in RRD-Datenbanken zu sichern und zusätzlich über das Netzwerk zu versenden.%></p> + +<p><%:stat_outputplugins_installed Installierte Ausgabeplugins:%> + <ul> + <% for plugin, desc in pairs(plugins) do %> + <% 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> +</p> + +<%+footer%> diff --git a/applications/luci-statistics/luasrc/view/admin_statistics/systemplugins.htm b/applications/luci-statistics/luasrc/view/admin_statistics/systemplugins.htm new file mode 100644 index 000000000..2a32bf5ca --- /dev/null +++ b/applications/luci-statistics/luasrc/view/admin_statistics/systemplugins.htm @@ -0,0 +1,18 @@ +<%+header%> + +<h1><%:stat_systemplugins Systemplugins%></h1> + +<p><%:stat_systemplugins_desc Systemplugins sammeln Werte über den aktuellen Systemzustand und den Ressourcenverbrauch +auf dem Gerät.%></p> + +<p><%:stat_systemplugins_installed Installierte Systemplugins:%> + <ul> + <% for plugin, desc in pairs(plugins) do %> + <% 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> +</p> + +<%+footer%> diff --git a/applications/luci-statistics/luasrc/view/public_statistics/graph.htm b/applications/luci-statistics/luasrc/view/public_statistics/graph.htm new file mode 100644 index 000000000..093d76d0e --- /dev/null +++ b/applications/luci-statistics/luasrc/view/public_statistics/graph.htm @@ -0,0 +1,9 @@ +<%+header%> + +<h1>Statistik</h1> + +<% for i, img in ipairs(images) do %> + <img src="<%=img:gsub("/tmp/rrdimg/OpenWrt","/img")%>" /> +<% end %> + +<%+footer%> |