Module: check_mk
Branch: master
Commit: 285e022feeff264f3cf0c3a469cfe7a9429aa448
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=285e022feeff26…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Dec 4 14:43:13 2013 +0100
Multisite: (.) is now rendered as OK, like (!) and (!!)
---
web/htdocs/lib.py | 5 ++++-
web/htdocs/status.css | 2 +-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/lib.py b/web/htdocs/lib.py
index 43d9808..b96bdf5 100644
--- a/web/htdocs/lib.py
+++ b/web/htdocs/lib.py
@@ -226,6 +226,7 @@ def pnp_cleanup(s):
.replace('/', '_') \
.replace('\\', '_')
+ok_marker = '<b class="stmark state0">OK</b>'
warn_marker = '<b class="stmark state1">WARN</b>'
crit_marker = '<b class="stmark state2">CRIT</b>'
unknown_marker = '<b class="stmark state3">UNKN</b>'
@@ -251,7 +252,9 @@ def format_plugin_output(output, row = None):
output = output.replace("(!)", warn_marker) \
.replace("(!!)", crit_marker) \
- .replace("(?)", unknown_marker)
+ .replace("(?)", unknown_marker) \
+ .replace("(.)", ok_marker)
+
if row and "[running on" in output:
a = output.index("[running on")
e = output.index("]", a)
diff --git a/web/htdocs/status.css b/web/htdocs/status.css
index 8c74566..7fc12af 100644
--- a/web/htdocs/status.css
+++ b/web/htdocs/status.css
@@ -91,7 +91,7 @@ table.data td.perfometer.stale div.title {
/* inline state markers in check output */
b.stmark {
- margin-left: 4px;
+ margin-left: 2px;
padding: 1px 3px;
border-radius: 4px;
font-size: 7pt;