Module: check_mk
Branch: master
Commit: fff455238c2a073f26cbe0930f0a8932acbecc23
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=fff455238c2a07…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Sep 21 11:45:36 2016 +0200
3887 Event contact groups are now handled in notifications (optionally)
Previously you could already configure contact groups in Event Console rules,
but those groups were only used to control the visibility of the events in
the GUI.
Now these groups can be used to control the visibility and also make them
relevant for the notifications created by the Event Console. Besides adding
the groups to the rule, you can configure whether or not to add the contact
groups to the notifications and also configure the precedence of the groups
in case there are host contact groups configured and event contact groups
in the rule.
Existing rules are treated as before. The contact groups of the rule will
not be added to the notifications until you open the rule, tick the checkbox
and save the rule again.
---
.werks/3887 | 22 ++++++
ChangeLog | 1 +
bin/mkeventd | 180 ++++++++++++++++++++++++++++++++++++++-----
modules/notify.py | 2 +
web/plugins/wato/mkeventd.py | 87 +++++++++++++--------
5 files changed, 239 insertions(+), 53 deletions(-)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=fff455238c…
Module: check_mk
Branch: master
Commit: f2ab5c3ff72c01a510714a8f018ea058135603c9
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f2ab5c3ff72c01…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Wed Sep 21 11:36:35 2016 +0200
3811 FIX HW/SW Inventory: Fixed GUI display crash when querying data from older software versions
Older software (livestatus) versions did not provide sufficient inventory data.
The crash happened when a site with a newer software version tried to query
data from a site running an older version.
---
.werks/3811 | 13 +++++++++++++
ChangeLog | 1 +
web/htdocs/inventory.py | 8 ++++++++
3 files changed, 22 insertions(+)
diff --git a/.werks/3811 b/.werks/3811
new file mode 100644
index 0000000..090bef1
--- /dev/null
+++ b/.werks/3811
@@ -0,0 +1,13 @@
+Title: HW/SW Inventory: Fixed GUI display crash when querying data from older software versions
+Level: 1
+Component: inv
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.4.0i1
+Date: 1474450273
+
+Older software (livestatus) versions did not provide sufficient inventory data.
+
+The crash happened when a site with a newer software version tried to query
+data from a site running an older version.
diff --git a/ChangeLog b/ChangeLog
index f309aa3..0dc1fd3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -726,6 +726,7 @@
* 3455 FIX: Fixed broken switch port filtering/sorting view
* 3663 FIX: Added missing system manufacturer filter/painter
* 3664 FIX: Fixed not working hardware/system serial and model painters and filters...
+ * 3811 FIX: HW/SW Inventory: Fixed GUI display crash when querying data from older software versions...
1.2.8b1:
diff --git a/web/htdocs/inventory.py b/web/htdocs/inventory.py
index 5f9a6ba..a13efb2 100644
--- a/web/htdocs/inventory.py
+++ b/web/htdocs/inventory.py
@@ -135,6 +135,14 @@ def get(tree, path):
path = path[1:]
node = tree
+
+ # The root node of the tree MUST be dictionary
+ # This info is taken from the host_inventory column in a livestatus table
+ # Older versions, which do not know this column, report None as fallback value
+ # This workaround prevents the inevitable crash
+ if node == None:
+ node = {}
+
current_what = "."
while path not in ('.', ':', ''):
parts = re.split("[:.]", path)
Module: check_mk
Branch: master
Commit: 2997db097d7f394ea35e3d15315fa6810fb937ab
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2997db097d7f39…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Wed Sep 21 08:27:06 2016 +0200
updated werk 3876
---
.werks/3876 | 2 +-
ChangeLog | 2 +-
web/plugins/visuals/filters.py | 8 ++++----
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/.werks/3876 b/.werks/3876
index 136eaae..c9f4f3d 100644
--- a/.werks/3876
+++ b/.werks/3876
@@ -1,4 +1,4 @@
-Title: new option "negation" for filter "several service groups"
+Title: New filter option: negation for several service and host groups
Level: 1
Component: multisite
Compatible: compat
diff --git a/ChangeLog b/ChangeLog
index ab0ec0e..9887a64 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -426,7 +426,7 @@
* 3864 tactical overview now shows the number of stale hosts and services
* 3847 Painter options can now be reset to defaults...
* 3856 Improved handling of Check_MK GUI request timeouts...
- * 3876 new option "negation" for filter "several service groups"
+ * 3876 New filter option: negation for several service and host groups
* 3059 FIX: Fixed highlighting of availability timeline time slices
* 3175 FIX: Fix timeranges of graphs that are embedded in a dashboard...
* 3076 FIX: fixed broken views in check_mk raw edition
diff --git a/web/plugins/visuals/filters.py b/web/plugins/visuals/filters.py
index a5b3d39..3eaf307 100644
--- a/web/plugins/visuals/filters.py
+++ b/web/plugins/visuals/filters.py
@@ -387,16 +387,16 @@ class FilterGroupCombo(Filter):
(table, lqencode(current_value)), current_value)
return alias
-declare_filter(104, FilterGroupCombo("host", _("Host is in Group"), False), _("Optional selection of host group"))
-declare_filter(105, FilterMultigroup("host", _("Several Host Groups")), _("Selection of multiple host groups"))
+declare_filter(104, FilterGroupCombo("host", _("Host is in Group"), False), _("Optional selection of host group"))
+declare_filter(105, FilterMultigroup("host", _("Several Host Groups"), True), _("Selection of multiple host groups"))
declare_filter(204, FilterGroupCombo("service", _("Service is in Group"), False), _("Optional selection of service group"))
declare_filter(205, FilterGroupCombo("service", _("Servicegroup (enforced)"), True), _("Dropdown list, selection of service group is <b>enforced</b>"))
-declare_filter(205, FilterMultigroup("service", _("Several Service Groups"), True), _("Selection of multiple service groups"))
+declare_filter(205, FilterMultigroup("service", _("Several Service Groups"), True), _("Selection of multiple service groups"))
declare_filter(106, FilterGroupCombo("host_contact", _("Host Contact Group"), False), _("Optional selection of host contact group"))
declare_filter(206, FilterGroupCombo("service_contact", _("Service Contact Group"), False), _("Optional selection of service contact group"))
-declare_filter(107, FilterText("host_ctc", _("Host Contact"), "host", "host_contacts", "host_ctc", ">="))
+declare_filter(107, FilterText("host_ctc", _("Host Contact"), "host", "host_contacts", "host_ctc", ">="))
declare_filter(207, FilterText("service_ctc", _("Service Contact"), "service", "service_contacts", "service_ctc", ">="))
Module: check_mk
Branch: master
Commit: f163fcc6615e6218c29b2c3990050fe227ddaee7
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f163fcc6615e62…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Sep 20 15:39:13 2016 +0200
3886 Notifications that do not match any rule are sent to fallback mail / contacts
When a notification is received and is not matched by any notification rule, it could
be sent to a globally configured and optional fallback email address.
So, if you did not configure this fallback email address, it was possible that generated
notifications, e.g. from the Event Console, were not sent to any user.
This has been extended so that you can either configure the global mail address or set
and attribute for your user accounts individually. For each of your users you can now
set the flag "Receive fallback notifications".
Another change: If you use the rule based notifications and have not configured any
fallback contact (either globally or user), there will be a warning message displayed
on the notification configuration page.
Another change: When having a notification rule that has a condition on contact groups,
or any user creates a custom notification rule, and a notification was generated which
had no contact group information at all, the notification was sent to ALL users, instead
of none.
That was implemented this way just to be sure that the notifications are not suppressed
by accident. This has been changed to be also processed like other notifications that
do not match any rule. Finally these notifications will be handled with the configured
fallback contacts.
---
.werks/3886 | 31 ++++++++++++++++++++
ChangeLog | 1 +
modules/events.py | 6 ++--
modules/notify.py | 32 +++++++++++++++-----
web/htdocs/wato.py | 50 +++++++++++++++++++++++++-------
web/plugins/wato/globals_notification.py | 3 +-
6 files changed, 101 insertions(+), 22 deletions(-)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=f163fcc661…