From 3ebd1102ed17d3a013278128fbea23069051fefc Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 10 Jul 2018 13:33:10 +0300 Subject: add `systemctl --failed` output --- index.html | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'index.html') diff --git a/index.html b/index.html index 1dc8ab6..29549c1 100644 --- a/index.html +++ b/index.html @@ -49,6 +49,16 @@ h1, .h1 {

           
           
+

systemctl --system list-units --failed

+
+

+          
+
+

systemctl --user list-units --failed

+
+

+          
+

systemctl --system list-timers --all updated every - seconds


@@ -98,6 +108,18 @@ function refresh_systemctl_status_user() {
     });
 }
 
+function refresh_systemctl_failed_system() {
+    $.get('cgi-bin/systemctl_failed_system.sh', function(data) {
+        $('#systemctl_failed_system').text(data);
+    });
+}
+
+function refresh_systemctl_failed_user() {
+    $.get('cgi-bin/systemctl_failed_user.sh', function(data) {
+        $('#systemctl_failed_user').text(data);
+    });
+}
+
 function refresh_systemctl_timers_system() {
     $.get('cgi-bin/systemctl_timers_system.sh', function(data) {
         $('#systemctl_timers_system').text(data);
@@ -115,6 +137,8 @@ function refresh() {
     refresh_top();
     refresh_systemctl_status_system();
     refresh_systemctl_status_user();
+    refresh_systemctl_failed_system();
+    refresh_systemctl_failed_user();
     refresh_systemctl_timers_system();
     refresh_systemctl_timers_user();
 }
-- 
cgit v1.2.3