Module: check_mk
Branch: master
Commit: caf3989badef61947d15b4251378075de7970420
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=caf3989badef61…
Author: Sebastian Herbord <sh(a)mathias-kettner.de>
Date: Thu Apr 28 10:41:54 2016 +0200
3127 new icon on services that are outside their check period
---
.werks/3127 | 9 +++++++++
ChangeLog | 1 +
web/htdocs/images/icon_pause.png | Bin 0 -> 1538 bytes
web/plugins/icons/builtin.py | 28 ++++++++++++++++++++++++++++
4 files changed, 38 insertions(+)
diff --git a/.werks/3127 b/.werks/3127
new file mode 100644
index 0000000..19166eb
--- /dev/null
+++ b/.werks/3127
@@ -0,0 +1,9 @@
+Title: new icon on services that are outside their check period
+Level: 1
+Component: multisite
+Compatible: compat
+Version: 1.2.9i1
+Date: 1461826524
+Class: feature
+
+
diff --git a/ChangeLog b/ChangeLog
index 134e27f..e7afa21 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -196,6 +196,7 @@
* 3443 FIX: mk_logwatch: Fixed exception in agent plugin configuration parsing error
handling
Multisite:
+ * 3127 new icon on services that are outside their check period
* 3187 notification view: new filter for log command via regex
* 3228 The BI Treestate painter now exports the aggregation tree as real json
structure
* 3288 Implemented grouping of services in table views...
diff --git a/web/htdocs/images/icon_pause.png b/web/htdocs/images/icon_pause.png
new file mode 100644
index 0000000..12a3626
Binary files /dev/null and b/web/htdocs/images/icon_pause.png differ
diff --git a/web/plugins/icons/builtin.py b/web/plugins/icons/builtin.py
index 297fb6f..b28453a 100644
--- a/web/plugins/icons/builtin.py
+++ b/web/plugins/icons/builtin.py
@@ -856,3 +856,31 @@ multisite_icons_and_actions['crashed_check'] = {
'paint' : paint_icon_crashed_check,
'toplevel' : True,
}
+
+#.
+# .--Check Period--------------------------------------------------------.
+# | ____ _ _ ____ _ _ |
+# | / ___| |__ ___ ___| | __ | _ \ ___ _ __(_) ___ __| | |
+# | | | | '_ \ / _ \/ __| |/ / | |_) / _ \ '__| |/ _ \ / _` | |
+# | | |___| | | | __/ (__| < | __/ __/ | | | (_) | (_| | |
+# | \____|_| |_|\___|\___|_|\_\ |_| \___|_| |_|\___/ \__,_| |
+# | |
+# +----------------------------------------------------------------------+
+# | Icon shown if the check is outside its check period |
+# '----------------------------------------------------------------------'
+
+
+def paint_icon_check_period(what, row, tags, host_custom_vars):
+ if row['%s_in_passive_check_period' % what] == 0\
+ or row['%s_in_check_period' % what] == 0:
+ return 'pause', _("This %s is currently not being checked") %
_(what)
+
+
+multisite_icons_and_actions['check_period'] = {
+ 'columns' : ['in_passive_check_period', 'in_check_period'],
+ 'paint' : paint_icon_check_period,
+ 'toplevel' : True,
+}
+
+
+#.