diff --git a/bin/monit-dashboard.py b/bin/monit-dashboard.py index 8549c9a..25bfab0 100755 --- a/bin/monit-dashboard.py +++ b/bin/monit-dashboard.py @@ -72,6 +72,7 @@ def getMonit(): output.append(server) print(datetime.datetime.now()) + output.append({'url': u'https://monit.xxx.xxx', 'result': OrderedDict([(u'staging', 32), (u'monitoring1', 0)]), 's_rate': {'green': 70.0, 'red': 30.0}, 'name': u'MY Environment2'}) return(output) # Classes diff --git a/static/monit-dashboard.css b/static/monit-dashboard.css index 271d8d4..9e34d2e 100644 --- a/static/monit-dashboard.css +++ b/static/monit-dashboard.css @@ -69,4 +69,4 @@ div.panel.show { .red:hover { background-color: #c9302c; -} \ No newline at end of file +} diff --git a/templates/index.html b/templates/index.html index 92d0b7b..689cd3c 100644 --- a/templates/index.html +++ b/templates/index.html @@ -3,7 +3,8 @@ $def with (output, now) $ errors = 0 $ color = "green" - +
+
$for server in range(len(output)): $code: errors = 0 @@ -18,7 +19,7 @@ $for server in range(len(output)): $if errors > 0: $code: color = "red" - +

@@ -48,7 +49,7 @@ $for server in range(len(output)): $else: $code: color = "green" - +

@@ -75,15 +76,17 @@ $for server in range(len(output)):
+
-


+
+ +


Latest update: $now.day/$now.month/$now.year, $now.hour:$now.minute:$now.second

+
- - - +
diff --git a/templates/layout.html b/templates/layout.html index b17136e..62fc37c 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -8,11 +8,11 @@ $def with (content) - + $:content - Home | Help + Home | Help