Module: check_mk
Branch: master
Commit: c451cc3f6cb52aee4908b2b5dd38c9cf31b1e20b
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c451cc3f6cb52a…
Author: Sebastian Herbord <sh(a)mathias-kettner.de>
Date: Thu Feb 11 11:08:49 2016 +0100
windows agent: overhauled the eventlog-related code
improvements:
- cleaner code
- improved performance (mostly by reducing the number of times dlls get loaded fresh)
- should now be able to handle eventlogs where seeking fails due to this bug:
https://support.microsoft.com/en-us/kb/177199
- dllpath-lookup now supports all environment variables, improving the likelyhood we
find message texts
- when loading message dlls, the dll initialization no longer happens as we only need
the message table
- the above also fixes problems where dependend dlls can't be loaded and subsequent
error messages may pause the process
---
agents/windows/EventLog.cc | 178 +++++++++
agents/windows/EventLog.h | 95 +++++
agents/windows/Makefile | 6 +-
agents/windows/build_version | 2 +-
agents/windows/check_mk_agent-64.exe | Bin 6614210 -> 906240 bytes
agents/windows/check_mk_agent-64.unversioned.exe | Bin 6614210 -> 906240 bytes
agents/windows/check_mk_agent.cc | 428 +++++++++-------------
agents/windows/check_mk_agent.exe | Bin 5267934 -> 830464 bytes
agents/windows/check_mk_agent.msi | Bin 12225536 -> 1997312 bytes
agents/windows/check_mk_agent.unversioned.exe | Bin 5267934 -> 830464 bytes
agents/windows/install_agent-64.exe | Bin 1558611 -> 416143 bytes
agents/windows/install_agent.exe | Bin 1422553 -> 406731 bytes
12 files changed, 444 insertions(+), 265 deletions(-)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=c451cc3f6c…
Module: check_mk
Branch: master
Commit: 79143f6f98f10e5dfa929a99ffeaa0b0e9004c97
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=79143f6f98f10e…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Feb 11 08:42:17 2016 +0100
Updated bug entries #2377
---
.bugs/2377 | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/.bugs/2377 b/.bugs/2377
index 1ee8566..8ab842b 100644
--- a/.bugs/2377
+++ b/.bugs/2377
@@ -1,9 +1,9 @@
Title: Deleting a context filter should, but does not put it back into the dropdown
Component: multisite
-State: open
+Class: bug
+State: done
Date: 2015-09-16 11:58:25
Targetversion: 1.2.8
-Class: bug
When you edit the Context/Search Filters section of a report, dashboard or
view then for each context type (e.g. services) there is a dropdown where you
@@ -14,3 +14,5 @@ not contained in the dropdown - not even grayed out. When you now delete
such a filter you cannot re-add it without saving and coming back.
Fix: Add the already present filters greyed out to the initial drop down.
+
+2016-02-11 08:42:14: changed state open -> done
Module: check_mk
Branch: master
Commit: d540962903e299d70b38b5d3322ae993aff9f040
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d540962903e299…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Feb 11 08:41:42 2016 +0100
#3048 FIX It is now possible to add a context filter right after removing it from a view again
The view editor had a bug which made it impossible to add a context filter again after
removing it from the view when it was already in the view during loading of the view
editor. It could be worked around by saving the view and opening up the editor again
to add the filter again.
---
.werks/3048 | 12 ++++++++++++
ChangeLog | 1 +
web/htdocs/js/checkmk.js | 18 +++++++++++++++++-
web/htdocs/valuespec.py | 2 +-
web/htdocs/visuals.py | 3 ++-
5 files changed, 33 insertions(+), 3 deletions(-)
diff --git a/.werks/3048 b/.werks/3048
new file mode 100644
index 0000000..0797333
--- /dev/null
+++ b/.werks/3048
@@ -0,0 +1,12 @@
+Title: It is now possible to add a context filter right after removing it from a view again
+Level: 1
+Component: multisite
+Compatible: compat
+Version: 1.2.7i4
+Date: 1455176396
+Class: fix
+
+The view editor had a bug which made it impossible to add a context filter again after
+removing it from the view when it was already in the view during loading of the view
+editor. It could be worked around by saving the view and opening up the editor again
+to add the filter again.
diff --git a/ChangeLog b/ChangeLog
index 82ca4ab..8497636 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -318,6 +318,7 @@
* 3046 FIX: Acknowledging all incompatible werks when creating new sites
* 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...
WATO:
* 2442 WATO remove host: improved cleanup of obsolete host files...
diff --git a/web/htdocs/js/checkmk.js b/web/htdocs/js/checkmk.js
index 2050463..3b82665 100644
--- a/web/htdocs/js/checkmk.js
+++ b/web/htdocs/js/checkmk.js
@@ -2069,7 +2069,9 @@ function vs_listofmultiple_toggle_fields(root, varprefix, enable) {
function vs_listofmultiple_init(varprefix) {
document.getElementById(varprefix + '_choice').value = '';
- // Mark fields of unused elements as disabled
+ vs_listofmultiple_disable_selected_options(varprefix);
+
+ // Mark input fields of unused elements as disabled
var container = document.getElementById(varprefix + '_table');
var unused = document.getElementsByClassName('unused', container);
for (var i in unused) {
@@ -2077,6 +2079,20 @@ function vs_listofmultiple_init(varprefix) {
}
}
+// The <option> elements in the <select> field of the currently choosen
+// elements need to be disabled.
+function vs_listofmultiple_disable_selected_options(varprefix)
+{
+ var active_choices = document.getElementById(varprefix + '_active').value.split(";");
+
+ var choice_field = document.getElementById(varprefix + '_choice');
+ for (var i = 0; i < choice_field.childNodes.length; i++) {
+ if (active_choices.indexOf(choice_field.childNodes[i].value) !== -1) {
+ choice_field.childNodes[i].disabled = true;
+ }
+ }
+}
+
//#.
//# .-Help Toggle--------------------------------------------------------.
//# | _ _ _ _____ _ |
diff --git a/web/htdocs/valuespec.py b/web/htdocs/valuespec.py
index 68090c5..451a918 100644
--- a/web/htdocs/valuespec.py
+++ b/web/htdocs/valuespec.py
@@ -1081,7 +1081,7 @@ class ListOfMultiple(ValueSpec):
html.write("</table>")
html.write("<br>")
- choosable = [('', '')] + [ (ident, vs.title()) for ident, vs in self._choices if ident not in value ]
+ choosable = [('', '')] + [ (ident, vs.title()) for ident, vs in self._choices ]
attrs = {}
if self._size != None:
attrs["style"] = "width: %dex" % self._size
diff --git a/web/htdocs/visuals.py b/web/htdocs/visuals.py
index 9751459..2b0c763 100644
--- a/web/htdocs/visuals.py
+++ b/web/htdocs/visuals.py
@@ -1090,7 +1090,7 @@ class VisualFilterList(ListOfMultiple):
self._filters = {}
for info in self._infos:
for fname, filter in filters_allowed_for_info(info).items():
- if fname not in fspecs: # and fname not in ubiquitary_filters:
+ if fname not in fspecs:
fspecs[fname] = VisualFilter(fname,
title = filter.title,
)
@@ -1110,6 +1110,7 @@ class VisualFilterList(ListOfMultiple):
def filter_names(self):
return self._filters.keys()
+
# Realizes a Multisite/visual filter in a valuespec. It can render the filter form, get
# the filled in values and provide the filled in information for persistance.
class VisualFilter(ValueSpec):
Module: check_mk
Branch: master
Commit: b0fcd452dbcedad52e0a0a2a0d5446ad18495088
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b0fcd452dbceda…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Feb 10 16:34:08 2016 +0100
Updated bug entries #2327
---
.bugs/2327 | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/.bugs/2327 b/.bugs/2327
new file mode 100644
index 0000000..f1da348
--- /dev/null
+++ b/.bugs/2327
@@ -0,0 +1,14 @@
+Title: Cleanup Version: output of special agents
+Component: checks
+State: open
+Date: 2016-02-10 16:31:17
+Targetversion: future
+Class: bug
+
+Some special agents use the Version: field of the <<<check_mk>>> section for sending
+their e.g. firmware version or something different. But this version is only meant for
+Check_MK agent versions. So they should leave the field empty or provide the Check_MK
+version.
+
+The special agents which currently have a version should still provide it e.g. in a separate
+agent section and have a check for it which at least displays this info.