* modules/admin-core: Reintroduced ffluci.controller.admin.status

* modules/admin-core: Added Syslog status page
This commit is contained in:
Steven Barth 2008-05-13 17:32:11 +00:00
parent fbc9bf4c5b
commit bac04441f1
6 changed files with 27 additions and 1 deletions

View file

@ -122,6 +122,11 @@ function sysinfo()
return s, m, r
end
-- Reads the syslog
function syslog()
return exec("logread")
end
group = {}
group.getgroup = posix.getgroup

View file

@ -0,0 +1,6 @@
module("ffluci.controller.admin.status", package.seeall)
function action_syslog()
local syslog = ffluci.sys.syslog()
ffluci.template.render("admin_status/syslog", {syslog=syslog})
end

View file

@ -1,6 +1,9 @@
add("admin", "index", "Übersicht", 10)
act("luci", "Oberfläche")
add("admin", "status", "Status", 20)
act("syslog", "Systemprotokoll")
add("admin", "system", "System", 30)
act("packages", "Paketverwaltung")
act("passwd", "Passwort ändern")

View file

@ -0,0 +1,7 @@
<%+header%>
<h1><%:status Status%></h1>
<p><%:status1 Hier finden sich Informationen über den aktuellen Status des Systems, beispielsweise
Prozessortakt, Speicherauslastung und Netzwerkschnittstellen.%></p>
<p><%:status2 Zusätzlich können hier Protokolldaten, des Kernels und diverser Systemdienste eingesehen werden,
um deren Zustand zu kontrollieren.%></p>
<%+footer%>

View file

@ -0,0 +1,5 @@
<%+header%>
<h1><%:status Status%></h1>
<h2><%:syslog Systemprotokoll%></h2>
<code><%=syslog%></code>
<%+footer%>

View file

@ -1,7 +1,7 @@
<%+header%>
<h1><%:config Konfiguration%></h1>
<h2><%:changes Änderungen%></h2>
<code><%=(ffluci.model.uci.changes() or "-")%></code>
<code><%=ffluci.model.uci.changes()%></code>
<form class="inline" method="get" action="<%=controller%>/admin/uci/apply">
<input type="submit" value="<%:apply Anwenden%>" />
</form>