Module: check_mk
Branch: master
Commit: 641aded187da6f1539a6da8c05c4f1b0e8b15d40
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=641aded187da6f…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Jun 1 16:52:42 2015 +0200
#2324 FIX Add icon for those checks that cannot be rescheduled
The newest version of Check_MK (when using CMC) detects data that originates
from an agent cache. In such a case a rescheduling of the check is pointless an
the icon for doing that had been removed. In order to reduce confusion amongst
the users a replacement icon has been added instead with an explanatory text.
---
.werks/2324 | 13 +++++++++++++
ChangeLog | 1 +
web/htdocs/images/icon_cannot_reschedule.png | Bin 0 -> 3393 bytes
web/plugins/icons/builtin.py | 2 +-
4 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/.werks/2324 b/.werks/2324
new file mode 100644
index 0000000..d109da5
--- /dev/null
+++ b/.werks/2324
@@ -0,0 +1,13 @@
+Title: Add icon for those checks that cannot be rescheduled
+Level: 1
+Component: multisite
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.7i2
+Date: 1433170272
+
+The newest version of Check_MK (when using CMC) detects data that originates
+from an agent cache. In such a case a rescheduling of the check is pointless an
+the icon for doing that had been removed. In order to reduce confusion amongst
+the users a replacement icon has been added instead with an explanatory text.
diff --git a/ChangeLog b/ChangeLog
index 9037835..cfb5709 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,7 @@
Multisite:
* 2260 Improved load time of Check_MK GUI...
+ * 2324 FIX: Add icon for those checks that cannot be rescheduled...
1.2.7i1:
diff --git a/web/htdocs/images/icon_cannot_reschedule.png b/web/htdocs/images/icon_cannot_reschedule.png
new file mode 100644
index 0000000..f598c0d
Binary files /dev/null and b/web/htdocs/images/icon_cannot_reschedule.png differ
diff --git a/web/plugins/icons/builtin.py b/web/plugins/icons/builtin.py
index 5091506..9ed722f 100644
--- a/web/plugins/icons/builtin.py
+++ b/web/plugins/icons/builtin.py
@@ -133,7 +133,7 @@ multisite_icons_and_actions['icon_image'] = {
def paint_reschedule(what, row, tags, host_custom_vars):
if what == "service" and row["service_cached_at"]:
- return # No reschedule when agent caches the data anyway
+ return "cannot_reschedule", _("This service is based on cached agent data and cannot be rescheduled"), None
# Reschedule button
if (row[what + "_active_checks_enabled"] == 1