Module: check_mk
Branch: master
Commit: 57b3eea665c6b2dd430e8076059ddb7dab347faf
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=57b3eea665c6b2…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Sat Feb 6 21:38:29 2016 +0100
Added conveniance link into help of discovery check
---
web/plugins/wato/check_mk_configuration.py | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/web/plugins/wato/check_mk_configuration.py b/web/plugins/wato/check_mk_configuration.py
index ac09533..69336c2 100644
--- a/web/plugins/wato/check_mk_configuration.py
+++ b/web/plugins/wato/check_mk_configuration.py
@@ -1120,9 +1120,11 @@ register_configvar(group,
help = _("If enabled, Check_MK will create one additional service per host "
"that does a regular check, if the service discovery would find new services "
"currently un-monitored. <b>Note:</b> This option is deprecated and has been "
- "replaced by the rule set <i>Periodic Service Discovery</i>, which allows "
- "a per-host configuration and additional features such as automatic rediscovery. "
- "Rules in that rule set will override the global settings done here.")),
+ "replaced by the rule set <a href='%s'>Periodic Service Discovery</a>, "
+ "which allows a per-host configuration and additional features such as "
+ "automatic rediscovery. Rules in that rule set will override the global "
+ "settings done here.") % "wato.py?mode=edit_ruleset&varname=periodic_discovery",
+ ),
need_restart = True)
register_configvar(group,
Module: check_mk
Branch: master
Commit: ca6af98597ba9d5d81eab2a208f6d1fb34f4421d
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ca6af98597ba9d…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Sat Feb 6 21:33:58 2016 +0100
Fixed typo in help text
---
web/plugins/wato/check_mk_configuration.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/plugins/wato/check_mk_configuration.py b/web/plugins/wato/check_mk_configuration.py
index 93d39b2..ac09533 100644
--- a/web/plugins/wato/check_mk_configuration.py
+++ b/web/plugins/wato/check_mk_configuration.py
@@ -1122,7 +1122,7 @@ register_configvar(group,
"currently un-monitored. <b>Note:</b> This option is deprecated and has been "
"replaced by the rule set <i>Periodic Service Discovery</i>, which allows "
"a per-host configuration and additional features such as automatic rediscovery. "
- "Rule in that rule set will override the global settings done here.")),
+ "Rules in that rule set will override the global settings done here.")),
need_restart = True)
register_configvar(group,
Module: check_mk
Branch: master
Commit: f26ba18bf3d7181d0a8d179a50df2f2301e76c68
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f26ba18bf3d718…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Sat Feb 6 21:31:19 2016 +0100
#3166 FIX Fixed problem where scheduled report did not honor host or service group filter
---
.bugs/856 | 6 ++++--
.werks/3166 | 9 +++++++++
ChangeLog | 1 +
web/htdocs/views.py | 8 ++++----
4 files changed, 18 insertions(+), 6 deletions(-)
diff --git a/.bugs/856 b/.bugs/856
index b9eb931..b4181d1 100644
--- a/.bugs/856
+++ b/.bugs/856
@@ -1,11 +1,13 @@
Title: Report scheduler doesn't pass "Group of Host" filter to the report
Component: core
-State: open
+Class: bug
+State: done
Date: 2015-12-15 16:20:50
Targetversion: 1.2.8
-Class: bug
If you create a Report with context "Hostgroup", add a View with Service
errors, this will work but not when the report is used in the scheduler. If
the scheduler is used, the report shows all systems regradless of the given
hostgroup.
+
+2016-02-06 21:30:50: changed state open -> done
diff --git a/.werks/3166 b/.werks/3166
new file mode 100644
index 0000000..f3d11c0
--- /dev/null
+++ b/.werks/3166
@@ -0,0 +1,9 @@
+Title: Fixed problem where scheduled report did not honor host or service group filter
+Level: 1
+Component: reporting
+Compatible: compat
+Version: 1.2.7i4
+Date: 1454790655
+Class: fix
+
+
diff --git a/ChangeLog b/ChangeLog
index 9424539..a8191dc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -362,6 +362,7 @@
Reporting & Availability:
* 2823 FIX: Availability: Fixed division by zero error on rendering the availability table
+ * 3166 FIX: Fixed problem where scheduled report did not honor host or service group filter
Event Console:
* 2733 Visibility of Event Console events more flexible now...
diff --git a/web/htdocs/views.py b/web/htdocs/views.py
index d1db483..958a38b 100644
--- a/web/htdocs/views.py
+++ b/web/htdocs/views.py
@@ -954,10 +954,10 @@ def show_view(view, show_heading = False, show_buttons = True,
# FIXME TODO HACK to make grouping single contextes possible on host/service infos
# Is hopefully cleaned up soon.
if view['datasource'] in ['hosts', 'services']:
- if 'hostgroup' in view['single_infos']:
- html.set_var('opthost_group', html.var('hostgroup'))
- if 'servicegroup' in view['single_infos']:
- html.set_var('optservice_group', html.var('servicegroup'))
+ if html.has_var('hostgroup') and not html.has_var("opthost_group"):
+ html.set_var("opthost_group", html.var("hostgroup"))
+ if html.has_var('servicegroup') and not html.has_var("optservice_group"):
+ html.set_var("optservice_group", html.var("servicegroup"))
# Now populate the HTML vars with context vars from the view definition. Hard
# coded default values are treated differently:
Module: check_mk
Branch: master
Commit: df6fa0d3a78f0c4a042ece03a21706717405eca3
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=df6fa0d3a78f0c…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Feb 5 15:13:03 2016 +0100
Updated bug entries #2318
---
.bugs/2318 | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/.bugs/2318 b/.bugs/2318
index 44484bd..d91d5f8 100644
--- a/.bugs/2318
+++ b/.bugs/2318
@@ -1,11 +1,15 @@
Title: network interface groups are broken
Component: checks
-State: open
+Class: bug
+State: done
Date: 2015-10-28 15:32:21
Targetversion: 1.2.8
-Class: bug
Seems that the interface grouping feature is not working since the
interface check has been made cluster aware.
An exception "ValueError: need more than 19 values to unpack" is raised for interface group checks.
+
+2016-02-05 15:12:51: changed state open -> done
+Should now work. I've not found *that* exception but another one and fixed
+it.
Module: check_mk
Branch: master
Commit: d149a3616f612fcf1f509f684302b382f59bf1fc
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d149a3616f612f…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Feb 5 14:54:54 2016 +0100
#3163 FIX Treat interface name '1' and '01' as identical when grouping interfaces
Problem was that in the discovery rule for creating interface groups you had
to specify <tt>01</tt> as item (just it appeared in the service), while the
actual check compared agains the index (<tt>1</tt>). Both are treated identical
now and in the rule you may specify either <tt>01</tt> or <tt>1</tt>.
---
.werks/3163 | 12 ++++++++++++
ChangeLog | 1 +
checks/if.include | 7 ++++---
3 files changed, 17 insertions(+), 3 deletions(-)
diff --git a/.werks/3163 b/.werks/3163
new file mode 100644
index 0000000..58b8d9e
--- /dev/null
+++ b/.werks/3163
@@ -0,0 +1,12 @@
+Title: Treat interface name '1' and '01' as identical when grouping interfaces
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.2.7i4
+Date: 1454680372
+Class: fix
+
+Problem was that in the discovery rule for creating interface groups you had
+to specify <tt>01</tt> as item (just it appeared in the service), while the
+actual check compared agains the index (<tt>1</tt>). Both are treated identical
+now and in the rule you may specify either <tt>01</tt> or <tt>1</tt>.
diff --git a/ChangeLog b/ChangeLog
index 757213b..1a61316 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -253,6 +253,7 @@
* 3068 FIX: ps: added performance graphs for process handle count (windows only)
* 3069 FIX: unitrend_backup: fixed broken plugin output
* 2930 FIX: juniper_cpu_util: Better detection, find more devices...
+ * 3163 FIX: Treat interface name '1' and '01' as identical when grouping interfaces...
Multisite:
* 2684 Added icons for downloading agent data / walks of hosts...
diff --git a/checks/if.include b/checks/if.include
index d3bc4e1..9576910 100644
--- a/checks/if.include
+++ b/checks/if.include
@@ -286,7 +286,7 @@ def inventory_if_common(info, has_nodeinfo = False):
is_only_in_group = False
for group_name, pattern in group_patterns.items():
# Interfaces can be grouped by item and iftype
- match_item = not pattern.get("include_items") or (item in pattern["include_items"])
+ match_item = not pattern.get("include_items") or (tryint(item) in map(tryint, pattern["include_items"]))
match_type = not pattern.get("iftype") or (pattern["iftype"] == saveint(ifType))
if match_item and match_type:
have_groups.setdefault(group_name, {"interfaces": [],
@@ -392,7 +392,8 @@ def check_if_common(item, params, info, has_nodeinfo = False, group_name = "Grou
if ifGroup and ifGroup == item:
matching_interfaces.append((if_member_item, element))
- elif if_member_item in params.get("include_items", []) or\
+ # tryint -> force "01" and "1" to be identical.
+ elif (params.get("include_items") == None or tryint(if_member_item) in map(tryint, params["include_items"])) or\
saveint(element[2 + node_offset]) == params.get("iftype"):
matching_interfaces.append((if_member_item, element))
@@ -488,7 +489,7 @@ def check_if_common(item, params, info, has_nodeinfo = False, group_name = "Grou
if params.get("iftype"):
alias_info.append("iftype %s" % params["iftype"])
if params.get("include_items"):
- alias_info.append("grouped items")
+ alias_info.append("%d grouped interfaces" % len(matching_interfaces))
if has_nodeinfo:
group_entry = [None]