Module: check_mk
Branch: master
Commit: 6253bb9841e42000ca1f80b4e55beb0fea8c7ec0
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6253bb9841e420…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Dec 19 15:27:56 2017 +0100
5585 FIX Added missing icon "host is currently not being checked" to host views
Change-Id: I17da14bd396eadfad2babcfdaf2b39cd09d385e6
---
.werks/5585 | 11 +++++++++++
web/plugins/icons/builtin.py | 8 ++++++--
2 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/.werks/5585 b/.werks/5585
new file mode 100644
index 0000000..f8c1744
--- /dev/null
+++ b/.werks/5585
@@ -0,0 +1,11 @@
+Title: Added missing icon "host is currently not being checked" to host views
+Level: 1
+Component: multisite
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.5.0i2
+Date: 1513693650
+
+
diff --git a/web/plugins/icons/builtin.py b/web/plugins/icons/builtin.py
index 5ec70cd..9c3d10d 100644
--- a/web/plugins/icons/builtin.py
+++ b/web/plugins/icons/builtin.py
@@ -884,11 +884,15 @@ def paint_icon_check_period(what, row, tags, host_custom_vars):
if what == "service":
if row['%s_in_passive_check_period' % what] == 0\
or row['%s_in_check_period' % what] == 0:
- return 'pause', _("This service is currently not being
checked")
+ return "pause", _("This service is currently not being
checked")
+ elif what == "host":
+ if row['%s_in_check_period' % what] == 0:
+ return "pause", _("This host is currently not being
checked")
multisite_icons_and_actions['check_period'] = {
- 'service_columns' : ['in_passive_check_period',
'in_check_period'],
+ 'columns' : ['in_check_period'],
+ 'service_columns' : ['in_passive_check_period'],
'paint' : paint_icon_check_period,
'toplevel' : True,
}