summaryrefslogtreecommitdiffstats
path: root/openntpd-status-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'openntpd-status-html.lsp')
-rw-r--r--openntpd-status-html.lsp29
1 files changed, 29 insertions, 0 deletions
diff --git a/openntpd-status-html.lsp b/openntpd-status-html.lsp
new file mode 100644
index 0000000..d1211c5
--- /dev/null
+++ b/openntpd-status-html.lsp
@@ -0,0 +1,29 @@
+<? local view = ... ?>
+
+<h1>SYSTEM INFO</h1>
+
+<h2>SYSTEM INFO</h2>
+
+<dt>Program status</dt>
+<DD><? if (view.status.enabled) then io.write('Enabled') else io.write('Disabled') end ?></DD>
+
+<dt>Program version</dt>
+<dd><?= view.status.version ?></dd>
+
+<H3>PROGRAM SPECIFIC OPTIONS/INFORMATION</H3>
+
+<dt>Configured as server (listens)</dt>
+<dd><? io.write(view.status.listenstate) ?></dd>
+
+<dt>Current time</dt>
+<dd><? io.write(view.status.date) ?></dd>
+
+<dt>Previous time adjustment</dt>
+<dd><? io.write(view.status.timechanged) ?></dd>
+
+<?
+--[[ DEBUG INFORMATION
+require("debugs")
+io.write(debugs.variables(view))
+--]]
+?>