Module: check_mk
Branch: master
Commit: dbb26f4b94ea2251cf49376cf7780278e6d3e772
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=dbb26f4b94ea22…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Mon Dec 10 14:44:47 2018 +0100
added WK6697: Fix incorrect warning message when checking for unique title
Change-Id: Ib93782ba98dbf6816fc4e389ff450d87818c3c3c
---
.werks/6697 | 12 ++++++++++++
cmk/gui/bi.py | 2 +-
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/.werks/6697 b/.werks/6697
new file mode 100644
index 0000000..561a66d
--- /dev/null
+++ b/.werks/6697
@@ -0,0 +1,12 @@
+Title: BI aggregations: Fix incorrect warning message when checking for unique title
+Level: 1
+Component: bi
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.6.0i1
+Date: 1544431938
+
+It was not possible to configure two identical BI aggregations with different aggregation groups.
+You had to configure one aggregation, which includes both groups.
diff --git a/cmk/gui/bi.py b/cmk/gui/bi.py
index f73d08b..c5fdadf 100644
--- a/cmk/gui/bi.py
+++ b/cmk/gui/bi.py
@@ -441,7 +441,7 @@ class JobWorker(multiprocessing.Process):
# Generates a unique id for the given entry
def get_hash(entry):
- return hashlib.md5(repr(entry) + repr(job)).hexdigest()
+ return hashlib.md5(repr(entry)).hexdigest()
for group in {g for g in groups}: # Flattened groups
new_entries_hash = map(get_hash, new_entries)
Module: check_mk
Branch: master
Commit: d3c0569f5e2114ff2569af166c508bdf35a3659e
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d3c0569f5e2114…
Author: Sergey Kipnis <sk(a)mathias-kettner.de>
Date: Fri Dec 7 13:26:39 2018 +0100
6865 FIX Windows Agent's fileinfo section produces correct output
Previously, fileinfo section may contain invalid data, usually nulls.
With the fix this section works as intended and sends to the output correct
file information.
[CMK-1417] - fixed invalid behavior of the fileinfo section provider in Windows Agent
Now the provider writes correct data to section.
Change-Id: Idaf41c3ec803edf4671b75642a2c5f733bdc9685
---
.werks/6865 | 13 +++++++++++++
agents/windows/build_version | 2 +-
agents/windows/sections/SectionFileinfo.cc | 31 +++++++++++++++++++++++++-----
3 files changed, 40 insertions(+), 6 deletions(-)
diff --git a/.werks/6865 b/.werks/6865
new file mode 100644
index 0000000..33e84be
--- /dev/null
+++ b/.werks/6865
@@ -0,0 +1,13 @@
+Title: Windows Agent's fileinfo section produces correct output
+Level: 1
+Component: checks
+Compatible: compat
+Edition: cre
+Version: 1.6.0i1
+Date: 1544186240
+Class: fix
+
+Previously, fileinfo section may contain invalid data, usually nulls.
+With the fix this section works as intended and sends to the output correct
+file information.
+
diff --git a/agents/windows/build_version b/agents/windows/build_version
index 74de7d2..7c85d65 100644
--- a/agents/windows/build_version
+++ b/agents/windows/build_version
@@ -1 +1 @@
-3264
+3266
diff --git a/agents/windows/sections/SectionFileinfo.cc b/agents/windows/sections/SectionFileinfo.cc
index ae298c5..da641b4 100644
--- a/agents/windows/sections/SectionFileinfo.cc
+++ b/agents/windows/sections/SectionFileinfo.cc
@@ -97,21 +97,42 @@ struct IteratorTraits<false> {
* @param[in/out] files The container for storing found files
* @param[in/out] dirs The container for storing found dirs
*/
+// The function works not so good as we are expecting:
+// dir traverse doesn't work, symlinks are not processed too,
+// unit tests are absent(refactoring is forbidden)
+// i.e. pure disaster. Do not reuse without careful testing.
+// Or just do not reuse.
template <bool recursive>
void addFilesAndDirs(const fs::path &searchPath, const fs::path &filePattern,
const fs::path &dirPattern, PathsT &files, PathsT &dirs) {
using IteratorT = typename IteratorTraits<recursive>::iterator_type;
for (const auto &p : IteratorT(searchPath)) {
// Found files must match the entire path pattern.
- if (auto status = p.symlink_status();
- fs::is_regular_file(status) &&
+
+ // *******************************************
+ // we have to check status, not symlink_status
+ // if you are not sure, test behavior before
+ // putting the code into production
+ auto status = p.status(); // CMK-1417, to be confirmed in ticket
+
+ // Logic below is a bit crazy and ineffective(we check status twice)
+ // correct is "double if", not logical AND.
+
+ // normal file
+ if (fs::is_regular_file(status) &&
globmatch(filePattern.wstring(), p.path().wstring())) {
files.push_back(p.path());
// Only consider dirs if not iterating recursively.
- // Found dirs must match the pattern only on the next subdir level.
- } else if (!recursive && fs::is_directory(status) &&
- globmatch(dirPattern.wstring(), p.path().wstring())) {
+ // Found dirs must match the pattern only on the next subdir
+ // level.
+ continue;
+ }
+
+ // directory
+ if (!recursive && fs::is_directory(status) &&
+ globmatch(dirPattern.wstring(), p.path().wstring())) {
dirs.push_back(p.path());
+ continue;
}
}
}
Module: check_mk
Branch: master
Commit: 7a26118ea46ebbd5ef2e176b0ff6237041601204
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7a26118ea46ebb…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Dec 10 08:26:00 2018 +0100
6927 FIX MAC OS X agent: Fixed missing root filesystem when using apfs
OS X systems since 10.13 High Sierra can format disks using APFS. The
OS X agent was only reporting hfs filesystems in the past. This lead
to e.g. a missing root filesystem on newer OS X installations.
FEED-3094
Change-Id: Ib7a5138251011df617f24b1e9737abd01b7ac090
---
.werks/6927 | 13 +++++++++++++
agents/check_mk_agent.macosx | 14 ++++++++++----
2 files changed, 23 insertions(+), 4 deletions(-)
diff --git a/.werks/6927 b/.werks/6927
new file mode 100644
index 0000000..0bc9318
--- /dev/null
+++ b/.werks/6927
@@ -0,0 +1,13 @@
+Title: MAC OS X agent: Fixed missing root filesystem when using apfs
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.6.0i1
+Date: 1544426643
+
+OS X systems since 10.13 High Sierra can format disks using APFS. The
+OS X agent was only reporting hfs filesystems in the past. This lead
+to e.g. a missing root filesystem on newer OS X installations.
diff --git a/agents/check_mk_agent.macosx b/agents/check_mk_agent.macosx
index 20bcfcc..d997dce 100755
--- a/agents/check_mk_agent.macosx
+++ b/agents/check_mk_agent.macosx
@@ -58,8 +58,12 @@ echo "LocalDirectory: $LOCALDIR"
osver="$(uname -r)"
-echo '<<<df>>>';
-df -kPt hfs | sed -e 's/^\([^ ][^ ]*\) \(.*\)$/\1 hfs \2/' | sed 1d
+echo '<<<df>>>'
+df -kPT hfs,apfs | sed 1d | \
+while read DEV REST; do
+ TYPE=$(diskutil info "$DEV" | grep '^\s*Type' | cut -d: -f2 | tr -d '[:space:]')
+ echo "$DEV $TYPE $REST"
+done
echo '<<<cpu>>>';
echo `sysctl -n vm.loadavg | tr -d '{}'` `top -l 1 -n 1 | egrep ^Processes: |
@@ -90,8 +94,10 @@ echo '<<<ps>>>'
ps ax -o user,vsz,rss,pcpu,command | sed -e 1d -e 's/ *\([^ ]*\) *\([^ ]*\) *\([^ ]*\) *\([^ ]*\) */(\1,\2,\3,\4) /'
# NTP seems to be enabled as a default
-echo '<<<ntp>>>'
-ntpq -np | sed -e 1,2d -e 's/^\(.\)/\1 /' -e 's/^ /%/'
+if which ntpq >/dev/null; then
+ echo '<<<ntp>>>'
+ ntpq -np | sed -e 1,2d -e 's/^\(.\)/\1 /' -e 's/^ /%/'
+fi
# TCP Conn stats
echo '<<<tcp_conn_stats>>>'
Module: check_mk
Branch: master
Commit: 803e2b4f5414a8fd09a44d6ce6c46d92c2f65c3d
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=803e2b4f5414a8…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Dec 5 12:12:16 2018 +0100
6923 Parent scan is now based on the background job logic
The parent scan is no longer affected by GUI timeouts because it is executed in a
background job. The progress dialog is now based on the generic background job
handling. The execution logic of the parent scan hasn't changed.
CMK-1001
Change-Id: I3a8496a3daf9e635885bbbe12fb39033deeaba89
---
.werks/6923 | 12 +
cmk/gui/wato/pages/parentscan.py | 478 +++++++++++++++++++++++----------------
2 files changed, 294 insertions(+), 196 deletions(-)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=803e2b4f54…