Module: check_mk
Branch: master
Commit: 618d0b1294d7787f3d9dce9b4063d88d8787c8d5
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=618d0b1294d778…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Fri Nov 14 15:01:31 2014 +0100
liveproxyd: create inventory dir if it does not exist
---
doc/treasures/liveproxy/liveproxyd | 3 +++
1 file changed, 3 insertions(+)
diff --git a/doc/treasures/liveproxy/liveproxyd b/doc/treasures/liveproxy/liveproxyd
index 4f6d6f4..afc4ff6 100755
--- a/doc/treasures/liveproxy/liveproxyd
+++ b/doc/treasures/liveproxy/liveproxyd
@@ -716,6 +716,9 @@ def check_inventory_update(mk_inventory_last, sitename):
if not opt_inventory_dir:
return # only works if this is set
+ if not os.path.exists(opt_inventory_dir):
+ os.makedirs(opt_inventory_dir)
+
sitestatus = g_sites[sitename]
if sitestatus["inventory_pid"]:
return # Sync already running
Module: check_mk
Branch: master
Commit: 554e56aa8233c4d547eaff7b80fddaede60e7629
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=554e56aa8233c4…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Fri Nov 14 12:02:54 2014 +0100
#1438 FIX quicksearch: fixed various non-working quicksearch filters
Some of the view filters got renamed in the latest releases.
These changes were not considered in the quicksearch plugins which refer to these filters.
As a result the hostgroup (<i>hg:</i>) search did not work properly.
Also the some multiple search filters (e.g. <i>h: test s: cpu hg: testgroup</i>) did omit the
specified host- and servicegroup patterns.
---
.werks/1438 | 15 +++++++++++++++
ChangeLog | 1 +
web/htdocs/sidebar.py | 2 +-
web/plugins/sidebar/search.py | 16 ++++++++--------
4 files changed, 25 insertions(+), 9 deletions(-)
diff --git a/.werks/1438 b/.werks/1438
new file mode 100644
index 0000000..090a7e5
--- /dev/null
+++ b/.werks/1438
@@ -0,0 +1,15 @@
+Title: quicksearch: fixed various non-working quicksearch filters
+Level: 2
+Component: multisite
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.5i7
+Date: 1415962691
+
+Some of the view filters got renamed in the latest releases.
+These changes were not considered in the quicksearch plugins which refer to these filters.
+
+As a result the hostgroup (<i>hg:</i>) search did not work properly.
+Also the some multiple search filters (e.g. <i>h: test s: cpu hg: testgroup</i>) did omit the
+specified host- and servicegroup patterns.
diff --git a/ChangeLog b/ChangeLog
index eebd7e1..0fe476a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -50,6 +50,7 @@
* 1494 FIX: Fixed error in NagVis Maps snapin when some users had no contact groups assigned
* 1496 FIX: Fixed exception after editing a dashboard as user without permission to publish dashboards...
* 1436 FIX: quicksearch: search with multiple patterns (h: / s:) no longer discards the host pattern...
+ * 1438 FIX: quicksearch: fixed various non-working quicksearch filters...
WATO:
* 1170 Added buttons to move rules to top/bottom of the list to ruleset edit dialog
diff --git a/web/htdocs/sidebar.py b/web/htdocs/sidebar.py
index 4f4e212..faf8b34 100644
--- a/web/htdocs/sidebar.py
+++ b/web/htdocs/sidebar.py
@@ -783,7 +783,7 @@ def search_url_tmpl(used_filters, row, exact = True):
if ty == 'hosts':
return 'view.py?view_name=searchhost&host_regex=%(name)s&filled_in=filter'
elif ty == 'hostgroups':
- return 'view.py?view_name=hostgroups&hostgroup_name=%(name)s&site=%(site)s'
+ return 'view.py?view_name=hostgroups&hostgroup_regex=%(name)s&site=%(site)s'
elif ty == 'servicegroups':
return 'view.py?view_name=svcgroups&servicegroup_name=%(name)s&site=%(site)s'
elif ty == 'services':
diff --git a/web/plugins/sidebar/search.py b/web/plugins/sidebar/search.py
index 9b7aae8..7494ab6 100644
--- a/web/plugins/sidebar/search.py
+++ b/web/plugins/sidebar/search.py
@@ -211,17 +211,17 @@ def search_host_service_filter(filters, host_is_ip = False):
def match_host_service_url_tmpl(used_filters, row_dict, host_is_ip = False):
tmpl = 'view.py?view_name=searchsvc&filled_in=filter'
- # Sorry, no support for multiple host- or servicegroups filters in match templates
+ # Sorry, no support for multiple host- or servicegroups filters in match templates (yet)
for ty, entry in [ ("hostgroup", "host_groups"), ("servicegroup", "service_groups")]:
if row_dict.get(entry):
if type(row_dict[entry]) == list:
row_dict[entry] = row_dict[entry][0]
- for param, key in [ ("service_regex", "service_description"),
- (host_is_ip and "host_address" or "host", "host_name"),
- ("opthostgroup", "host_groups"),
- ("optservicegroup", "service_groups"),
- ("site", "site")]:
+ for param, key in [ ("service_regex", "service_description"),
+ (host_is_ip and "host_address" or "host_regex", "host_name"),
+ ("opthost_group", "host_groups"),
+ ("optservice_group", "service_groups"),
+ ("site", "site")]:
if row_dict.get(key):
tmpl_pre = "&%s=%%(%s)s" % (param, key)
tmpl += tmpl_pre % row_dict
@@ -245,8 +245,8 @@ def search_host_service_url_tmpl(used_filters, data, host_is_ip = False):
for url_param, qs_name in [ ("service_regex", "services" ),
host_is_ip and ("host_address", "host" )\
or ("host_regex", "hosts" ),
- ("opthostgroup", "hostgroups" ),
- ("optservicegroup", "servicegroups")]:
+ ("opthost_group", "hostgroups" ),
+ ("optservice_group", "servicegroups")]:
if filters_combined.get(qs_name):
tmpl_pre = "&%s=%%(%s)s" % (url_param, qs_name)
tmpl += tmpl_pre % filters_combined
Module: check_mk
Branch: master
Commit: 1b433023b7a23e64a759c21bf29d7f9784c6b6dc
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1b433023b7a23e…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Nov 13 17:44:36 2014 +0100
Updated bug entries #1016, #1015
---
.bugs/1015 | 17 +++++++++++++----
.bugs/1016 | 16 +++++++++++-----
2 files changed, 24 insertions(+), 9 deletions(-)
diff --git a/.bugs/1015 b/.bugs/1015
index 7534a2c..76b0a83 100644
--- a/.bugs/1015
+++ b/.bugs/1015
@@ -1,9 +1,18 @@
-Title: HW/SW Inventory Check should not be applied to clusters
+Title: HW/SW-Inventory Check should not be applied to clusters
Component: inv
State: open
Date: 2014-11-13 17:11:09
Targetversion: future
-Class: bug
+Class: nastiness
-When HW/SW Inventory is set to be applied to a group of hosts, clusters should be automatically excluded
-since it does not make sense to include themn in the inventory
+When HW/SW-Inventory is set to be applied to a group of hosts,
+clusters should be automatically excluded
+since it does not make sense to include them in the inventory.
+
+Problem: it is not clear of how to implement this. Check_MK rules
+always apply to all hosts. Inventory is just one active check -
+like many others. We would need a general enhancement for all
+rules. Or we might restrict all active checks to physical
+nodes. It <b>could</b> be helpful, however, to place something
+like HTTP checks to cluster nodes that have IP-addresses,
+though.
diff --git a/.bugs/1016 b/.bugs/1016
index d28f5fc..4903548 100644
--- a/.bugs/1016
+++ b/.bugs/1016
@@ -3,9 +3,15 @@ Component: inv
State: open
Date: 2014-11-13 17:20:46
Targetversion: future
-Class: nastiness
+Class: cleanup
-the inventory data stored in var/check_mk/inventory are stored in a regular text file as well as a gzipped version
-for the file. This is redundant, and also may lead to problems when a hostname itself contains the postfix ".gz".
-It also makes using scripts on the stored data inconvenient.
-Data should be stored either in gzip format, or in text files, not both
+the inventory data stored in var/check_mk/inventory are stored in a regular
+text file as well as a gzipped version for the file. This is redundant, and
+also may lead to problems when a hostname itself contains the postfix ".gz".
+It also makes using scripts on the stored data inconvenient. Data should
+be stored either in gzip format, or in text files, not both.
+
+On the other hand we need the gzipped file for fast replication. And we
+need the unpacked files for fast access by the local Web-GUI.
+
+A solution could be to use two different directories.
Module: check_mk
Branch: master
Commit: 5750c3855869722b9f6015a9a4bdce06e8745cf6
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=5750c385586972…
Author: Goetz Golla <gg(a)mathias-kettner.de>
Date: Thu Nov 13 17:33:32 2014 +0100
Updated bug entries #1016
---
.bugs/1016 | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/.bugs/1016 b/.bugs/1016
new file mode 100644
index 0000000..d28f5fc
--- /dev/null
+++ b/.bugs/1016
@@ -0,0 +1,11 @@
+Title: inventory data are stored in both a regular file and a gzipped file
+Component: inv
+State: open
+Date: 2014-11-13 17:20:46
+Targetversion: future
+Class: nastiness
+
+the inventory data stored in var/check_mk/inventory are stored in a regular text file as well as a gzipped version
+for the file. This is redundant, and also may lead to problems when a hostname itself contains the postfix ".gz".
+It also makes using scripts on the stored data inconvenient.
+Data should be stored either in gzip format, or in text files, not both
Module: check_mk
Branch: master
Commit: fc7b3887188940311c7b29e6b18d6a738d72dd0d
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=fc7b3887188940…
Author: Goetz Golla <gg(a)mathias-kettner.de>
Date: Thu Nov 13 17:13:51 2014 +0100
Updated bug entries #1015
---
.bugs/1015 | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/.bugs/1015 b/.bugs/1015
new file mode 100644
index 0000000..7534a2c
--- /dev/null
+++ b/.bugs/1015
@@ -0,0 +1,9 @@
+Title: HW/SW Inventory Check should not be applied to clusters
+Component: inv
+State: open
+Date: 2014-11-13 17:11:09
+Targetversion: future
+Class: bug
+
+When HW/SW Inventory is set to be applied to a group of hosts, clusters should be automatically excluded
+since it does not make sense to include themn in the inventory