From a242b42d30d91d3e69dade146778bd7c6286b749 Mon Sep 17 00:00:00 2001 From: saravanan30erd Date: Tue, 10 Dec 2019 11:12:50 +0400 Subject: [PATCH] changes based on feedback --- .gitignore | 1 + README.md | 1 + bin/monit-dashboard.py | 3 +-- templates/index.html | 4 ++-- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 1bb99d7..f707949 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ *.pyc .*.swp conf/servers.json +*.xlsx diff --git a/README.md b/README.md index 03c42e0..5c6bfb8 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,7 @@ thanks to the built-in web server, it is displayed in a single HTML page. #### Python libaries - `yum install python-requests python-xmltodict python-simplejson` +- `pip install xlsxwriter` ## Requisites diff --git a/bin/monit-dashboard.py b/bin/monit-dashboard.py index daf3755..9cb90b1 100755 --- a/bin/monit-dashboard.py +++ b/bin/monit-dashboard.py @@ -87,8 +87,7 @@ class monitDashboard(web.application): class index(object): def GET(self): return render.index(output=getMonit(), - now=datetime.datetime.now(), - download_api=os.environ['DOWNLOAD_API_URL']) + now=datetime.datetime.now()) class help(object): def GET(self): diff --git a/templates/index.html b/templates/index.html index e33cafc..ea8169f 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,11 +1,11 @@ -$def with (output, now, download_api) +$def with (output, now) $ errors = 0 $ color = "green"
- +
$for server in range(len(output)):