aboutsummaryrefslogtreecommitdiff
path: root/admin/api/serverLogSummary.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/api/serverLogSummary.php')
-rw-r--r--admin/api/serverLogSummary.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/admin/api/serverLogSummary.php b/admin/api/serverLogSummary.php
new file mode 100644
index 0000000..2d90fe1
--- /dev/null
+++ b/admin/api/serverLogSummary.php
@@ -0,0 +1,8 @@
+<?php
+
+require_once $_SERVER['DOCUMENT_ROOT'] . "/admin/private/header.api.php";
+
+exec("journalctl -b --quiet", $ret);
+$cnt = count($ret);
+
+echo("<b>" . $cnt . "</b> system log messages since last system startup"); \ No newline at end of file