diff --git a/management/daemon.py b/management/daemon.py index 2ad8c480..a4de121b 100755 --- a/management/daemon.py +++ b/management/daemon.py @@ -598,6 +598,11 @@ def system_status(): pool.join() return json_response(output.items) +@app.route('/system/uptime') +@authorized_personnel_only +def show_uptime(): + return utils.shell("check_output", ["/usr/bin/uptime", "--pretty"]) + @app.route('/system/updates') @authorized_personnel_only def show_updates(): diff --git a/management/templates/system-status.html b/management/templates/system-status.html index 12c8aa0b..8fd93264 100644 --- a/management/templates/system-status.html +++ b/management/templates/system-status.html @@ -39,6 +39,9 @@