diff --git a/management/daemon.py b/management/daemon.py index 572b6b4a..3ab6f4c0 100755 --- a/management/daemon.py +++ b/management/daemon.py @@ -442,6 +442,11 @@ def system_status(): pool.terminate() 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 dc9233a5..aa11c67b 100644 --- a/management/templates/system-status.html +++ b/management/templates/system-status.html @@ -39,6 +39,9 @@