Module: check_mk
Branch: master
Commit: d43dc093a23c641d03a15b05aa4d555d20a010f6
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d43dc093a23c64…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Mar 31 08:51:44 2014 +0200
NagVis-Maps-Snapin: Now visualizes downtime / acknowledgment states of maps
The NagVis-Maps sidebar snapin now shows a green box with yellow or red borders when
maps have a problematic summary state, but have been acknowledged or set into downtime.
---
.werks/765 | 9 +++++++++
ChangeLog | 3 +++
web/plugins/sidebar/nagvis_maps.py | 21 ++++++++++++++++++++-
3 files changed, 32 insertions(+), 1 deletion(-)
diff --git a/.werks/765 b/.werks/765
new file mode 100644
index 0000000..62b9129
--- /dev/null
+++ b/.werks/765
@@ -0,0 +1,9 @@
+Title: NagVis-Maps-Snapin: Now visualizes downtime / acknowledgment states of maps
+Level: 1
+Component: multisite
+Version: 1.2.5i2
+Date: 1396248631
+Class: feature
+
+The NagVis-Maps sidebar snapin now shows a green box with yellow or red borders when
+maps have a problematic summary state, but have been acknowledged or set into downtime.
diff --git a/ChangeLog b/ChangeLog
index 59ec71b..5c95b6f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,9 @@
* 0764 lnx_quota: Added new check to monitor Linux File System Quota...
* 0740 FIX: winperf_if: now able to handle bandwidth > 4GBit...
+ Multisite:
+ * 0765 NagVis-Maps-Snapin: Now visualizes downtime / acknowledgment states of
maps...
+
1.2.5i1:
Core & Setup:
diff --git a/web/plugins/sidebar/nagvis_maps.py b/web/plugins/sidebar/nagvis_maps.py
index cbb4f29..89b5d23 100644
--- a/web/plugins/sidebar/nagvis_maps.py
+++ b/web/plugins/sidebar/nagvis_maps.py
@@ -44,5 +44,24 @@ sidebar_snapins["nagvis_maps"] = {
"render": render_nagvis_maps,
"allowed": [ "user", "admin", "guest" ],
"refresh": True,
- "styles": ""
+ "styles": """
+div.state1.statea {
+ border-color: #ff0;
+}
+div.state2.statea {
+ border-color: #f00;
+}
+div.statea {
+ background-color: #0b3;
+}
+div.state1.stated {
+ border-color: #ff0;
+}
+div.state2.stated {
+ border-color: #f00;
+}
+div.stated {
+ background-color: #0b3;
+}
+"""
}