Module: check_mk
Branch: master
Commit: 68bca6399085ea7c00f6d0f6c09709fcd94ddd18
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=68bca6399085ea…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Feb 11 09:07:41 2016 +0100
Updated bug entries #2328
---
.bugs/2328 | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/.bugs/2328 b/.bugs/2328
new file mode 100644
index 0000000..4419080
--- /dev/null
+++ b/.bugs/2328
@@ -0,0 +1,16 @@
+Title: Disable SNMP checks for SNMP disabled hosts
+Component: core
+State: open
+Date: 2016-02-11 09:07:20
+Targetversion: 1.2.8
+Class: bug
+
+aktuell ist es so, dass - wenn SNMP checks mal da sind (autochecks, explizit),
+der Host auch SNMP machen wird, selbst wenn das per Tag ausgeschaltet ist.
+Beispiel:
+
+1. Host ist TCP+SNMP -> Discovery -> schöne Services kommen
+2. Jetzt SNMP wegnehmen und activate Changes -> Services bleiben da!
+
+Man könnte das in get_check_table() geradeziehen. Dann werden auch die
+"no agent" hosts so behandelt, dass dann alle Check_MK-Checks wegfallen.
Module: check_mk
Branch: master
Commit: 9257949669700a88834e390f5f2299d1a14a4dfa
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9257949669700a…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Feb 11 09:47:31 2016 +0100
#3050 FIX Fixed broken "Host state (first character)" painter
---
.werks/3050 | 9 +++++++++
ChangeLog | 1 +
web/plugins/views/painters.py | 10 ++++++++--
3 files changed, 18 insertions(+), 2 deletions(-)
diff --git a/.werks/3050 b/.werks/3050
new file mode 100644
index 0000000..d8a907b
--- /dev/null
+++ b/.werks/3050
@@ -0,0 +1,9 @@
+Title: Fixed broken "Host state (first character)" painter
+Level: 1
+Component: multisite
+Compatible: compat
+Version: 1.2.7i4
+Date: 1455180428
+Class: fix
+
+
diff --git a/ChangeLog b/ChangeLog
index da12669..8f85c07 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -323,6 +323,7 @@
* 2931 FIX: Do not load bookmarks, reports, view, etc. of non-existing users anymore
* 3171 FIX: Logout in one site will log out of all sites sharing the same auth.secret...
* 3048 FIX: It is now possible to add a context filter right after removing it from a view again...
+ * 3050 FIX: Fixed broken "Host state (first character)" painter
WATO:
* 2442 WATO remove host: improved cleanup of obsolete host files...
diff --git a/web/plugins/views/painters.py b/web/plugins/views/painters.py
index bb93b2e..67664c4 100644
--- a/web/plugins/views/painters.py
+++ b/web/plugins/views/painters.py
@@ -516,8 +516,8 @@ def paint_service_state_short(row):
state = str(state) + " stale"
return "state svcstate state%s" % state, name
-def paint_host_state_short(row):
-# return None, str(row)
+
+def paint_host_state_short(row, short=False):
if row["host_has_been_checked"] == 1:
state = row["host_state"]
# A state of 3 is sent by livestatus in cases where no normal state
@@ -526,10 +526,16 @@ def paint_host_state_short(row):
else:
state = "p"
name = _("PEND")
+
if is_stale(row):
state = str(state) + " stale"
+
+ if short:
+ name = name[0]
+
return "state hstate hstate%s" % state, name
+
multisite_painters["service_nagios_link"] = {
"title" : _("Icon with link to service in Nagios GUI"),
"short" : "",