Module: check_mk
Branch: master
Commit: e66bb81267d3af9dcf26337f5705e4aa472fab62
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e66bb81267d3af…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Jun 6 16:00:47 2016 +0200
3620 FIX Do not longer put SNMP MIB files into WATO snapshots
WATO used to put uploaded MIB files into the automatically created
snapshots. The snapshots are used for configuration roll back in
case of a manually garbled configuration. They are not ment to replace
a real backup. MIB files slew down configuration creation on
{{Activate changes}} a lot. No any longer...
---
.werks/3620 | 14 ++++++++++++++
ChangeLog | 1 +
web/plugins/wato/backup_domains.py | 1 -
3 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/.werks/3620 b/.werks/3620
new file mode 100644
index 0000000..7dde0ac
--- /dev/null
+++ b/.werks/3620
@@ -0,0 +1,14 @@
+Title: Do not longer put SNMP MIB files into WATO snapshots
+Level: 1
+Component: wato
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.9i1
+Date: 1465221527
+
+WATO used to put uploaded MIB files into the automatically created
+snapshots. The snapshots are used for configuration roll back in
+case of a manually garbled configuration. They are not ment to replace
+a real backup. MIB files slew down configuration creation on
+{{Activate changes}} a lot. No any longer...
diff --git a/ChangeLog b/ChangeLog
index 99a5756..e3e8e5c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -422,6 +422,7 @@
* 3579 FIX: Fixed visibility of SNMP community attribute when SNMP tag is inherited
* 3583 FIX: Fixed loosing some services after saving services in WATO...
* 3588 FIX: BI aggregation: Fixed folding of tag groups in aggregation rules using host/service searches
+ * 3620 FIX: Do not longer put SNMP MIB files into WATO snapshots...
Notifications:
* 3263 Notifications: allow users to restrict by their contact groups...
diff --git a/web/plugins/wato/backup_domains.py b/web/plugins/wato/backup_domains.py
index f50898a..f354096 100644
--- a/web/plugins/wato/backup_domains.py
+++ b/web/plugins/wato/backup_domains.py
@@ -216,7 +216,6 @@ else:
"paths" : [
("dir", "local/share/check_mk/mibs"),
],
- "default" : True
},
"extensions" : {
"title" : _("Extensions in <tt>~/local/</tt> and MKPs"),
Module: check_mk
Branch: master
Commit: 5b336305baec12eed346d82876a5d0e776b70911
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=5b336305baec12…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Jun 6 15:02:05 2016 +0200
Fixed bug where view sort links could set wrong display options
---
web/htdocs/views.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/web/htdocs/views.py b/web/htdocs/views.py
index 236f0db..ad955ee 100644
--- a/web/htdocs/views.py
+++ b/web/htdocs/views.py
@@ -364,8 +364,7 @@ def prepare_display_options():
# "DisplayOptions.options" but this contains the implicit options which should
# not be added to the URLs. So the real parameters need to be preserved for
# this case.
- if html.var('display_options'):
- DisplayOptions.title_options = html.var("display_options")
+ DisplayOptions.title_options = html.var("display_options")
# If display option 'M' is set, then all links are targetet to the 'main'
# frame. Also the display options are removed since the view in the main
Module: check_mk
Branch: master
Commit: 2f6e0b09080e9b3d760e2580649aada26ac90731
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2f6e0b09080e9b…
Author: Sven Rueß <sr(a)mathias-kettner.de>
Date: Mon Jun 6 13:40:29 2016 +0200
2239 FIX Fixed exception in WATO snapins Folders, Tree of folders and Virtual Host Tree
An exception is thrown, if you want to use the WATO snapins Folders, Tree of folders and
Virtual Host Tree in a distributed monitoring setup. The master site is used as viewer
for the slave sites. If you create folders on slave sites and activate one of the snapins
at teh master site there is an error shown like No WATO folder ... . This have been fixed.
---
.werks/2239 | 13 +++++++++++++
ChangeLog | 1 +
web/plugins/sidebar/shipped.py | 3 ++-
web/plugins/sidebar/wato.py | 9 +++++----
4 files changed, 21 insertions(+), 5 deletions(-)
diff --git a/.werks/2239 b/.werks/2239
new file mode 100644
index 0000000..07c04f0
--- /dev/null
+++ b/.werks/2239
@@ -0,0 +1,13 @@
+Title: Fixed exception in WATO snapins Folders, Tree of folders and Virtual Host Tree
+Level: 1
+Component: multisite
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.9i1
+Date: 1465212884
+
+An exception is thrown, if you want to use the WATO snapins Folders, Tree of folders and
+Virtual Host Tree in a distributed monitoring setup. The master site is used as viewer
+for the slave sites. If you create folders on slave sites and activate one of the snapins
+at teh master site there is an error shown like No WATO folder ... . This have been fixed.
diff --git a/ChangeLog b/ChangeLog
index 4f45f9e..99a5756 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -338,6 +338,7 @@
* 3576 FIX: LDAP: Fixed "Internal error" when using the "Filter Group" option in an LDAP connection...
* 3627 FIX: fixed double graphs of database size
* 3586 FIX: Fixed file locking issues (rare and random errors that settings file could not be loaded)
+ * 2239 FIX: Fixed exception in WATO snapins Folders, Tree of folders and Virtual Host Tree...
WATO:
* 3244 WATO BI Module: swap order of aggregation function and child node selection...
diff --git a/web/plugins/sidebar/shipped.py b/web/plugins/sidebar/shipped.py
index c3f54f8..640450e 100644
--- a/web/plugins/sidebar/shipped.py
+++ b/web/plugins/sidebar/shipped.py
@@ -1619,7 +1619,8 @@ def compute_tag_tree(taglist):
if wato_folder.startswith("/wato/"):
folder_path = wato_folder[6:-9]
folder_path_components = folder_path.split("/")
- folder_titles = wato.get_folder_title_path(folder_path)[1:] # omit main folder
+ if wato.Folder.folder_exists(folder_path):
+ folder_titles = wato.get_folder_title_path(folder_path)[1:] # omit main folder
else:
folder_titles = []
diff --git a/web/plugins/sidebar/wato.py b/web/plugins/sidebar/wato.py
index 74b2cf8..f1dc800 100644
--- a/web/plugins/sidebar/wato.py
+++ b/web/plugins/sidebar/wato.py
@@ -146,10 +146,11 @@ def compute_foldertree():
for num_parts in range(0, len(path_parts)):
this_folder_path = '/'.join(path_parts[:num_parts])
- if this_folder_path not in user_folders:
- user_folders[this_folder_path] = get_folder(this_folder_path, num)
- else:
- user_folders[this_folder_path]['.num_hosts'] += num
+ if wato.Folder.folder_exists(this_folder_path):
+ if this_folder_path not in user_folders:
+ user_folders[this_folder_path] = get_folder(this_folder_path, num)
+ else:
+ user_folders[this_folder_path]['.num_hosts'] += num
#
# Now build the folder tree
Module: check_mk
Branch: master
Commit: 3d2cd7f9498f6e75974ca66191e70f1b347eb62b
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3d2cd7f9498f6e…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Jun 6 12:08:24 2016 +0200
Addition to Werk #3394: service non-downtime annotation also disable host downtimes now
---
web/htdocs/availability.py | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/web/htdocs/availability.py b/web/htdocs/availability.py
index 9c1dbd8..be04b12 100644
--- a/web/htdocs/availability.py
+++ b/web/htdocs/availability.py
@@ -834,6 +834,14 @@ def reclassify_service_by_annotation(history_entry, annotation, key_to_change):
new_entry["duration"] = p_until - p_from
if is_in:
new_entry[key_to_change] = annotation["downtime"] and 1 or 0
+ # If the annotation removes a downtime from the services, but
+ # the actual reason for the service being in downtime is a host
+ # downtime, then we must cancel the host downtime (also), or else
+ # that would override the unset service downtime.
+ if key_to_change == "in_downtime" \
+ and history_entry.get("in_host_downtime") \
+ and annotation["downtime"] == False:
+ new_entry["in_host_downtime"] = 0
new_history.append(new_entry)
else:
new_history.append(history_entry)