Module: check_mk
Branch: master
Commit: 66b2c2b79e8090d0fdade7f8ea33048bb9a83159
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=66b2c2b79e8090…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Wed Jul 25 09:24:30 2018 +0200
Classify redefined-builtin warning.
Change-Id: I29117e5bfa5bca7adef76f0531d9b7d44c456f0f
---
tests/pylint/pylintrc | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/tests/pylint/pylintrc b/tests/pylint/pylintrc
index 8e8f59f..0809cc2 100644
--- a/tests/pylint/pylintrc
+++ b/tests/pylint/pylintrc
@@ -25,7 +25,6 @@ disable=
no-self-use,
protected-access,
redefined-argument-from-local,
- redefined-builtin,
reimported,
relative-import,
ungrouped-imports,
@@ -81,6 +80,11 @@ disable=
redefined-outer-name,
#---------------------------------------------------------------------------
# Enabling this would be nice, but not crucial. At the moment, we have quite
+ # a few violations (about 200 in roughly 50 modules), so we postpone fixing
+ # this.
+ redefined-builtin,
+ #---------------------------------------------------------------------------
+ # Enabling this would be nice, but not crucial. At the moment, we have quite
# a few violations, so we postpone fixing this. When we do it eventually, we
# probably want to use "include-naming-hint=yes" in the BASIC section.
invalid-name,
Module: check_mk
Branch: master
Commit: c20f26fe72665a81b1504ba9e53311a11bf3fa28
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c20f26fe72665a…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Wed Jul 25 09:19:06 2018 +0200
Classify redefined-outer-name warning.
Change-Id: If61637fd9864b5b51828a47d51887f11053ab63c
---
tests/pylint/pylintrc | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/tests/pylint/pylintrc b/tests/pylint/pylintrc
index 9e1154e..8e8f59f 100644
--- a/tests/pylint/pylintrc
+++ b/tests/pylint/pylintrc
@@ -26,7 +26,6 @@ disable=
protected-access,
redefined-argument-from-local,
redefined-builtin,
- redefined-outer-name,
reimported,
relative-import,
ungrouped-imports,
@@ -76,6 +75,11 @@ disable=
bare-except,
broad-except,
#---------------------------------------------------------------------------
+ # Enabling this would enhance readability quite a bit and it might even
+ # uncover bugs. Fixing this is not rocket science, just some work: Roughly
+ # 400 warnings in about 60 modules, but this can be fixed step by step.
+ redefined-outer-name,
+ #---------------------------------------------------------------------------
# Enabling this would be nice, but not crucial. At the moment, we have quite
# a few violations, so we postpone fixing this. When we do it eventually, we
# probably want to use "include-naming-hint=yes" in the BASIC section.
Module: check_mk
Branch: master
Commit: 853dc81b47a266815aba50c73166b0aeb81cd19e
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=853dc81b47a266…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Wed Jul 25 10:42:14 2018 +0200
Classify unsubscriptable-object and unsupported-membership warnings.
Change-Id: Id5cfaed50e9767778400d5519e28507a23e466f4
---
tests/pylint/pylintrc | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/tests/pylint/pylintrc b/tests/pylint/pylintrc
index 4f75d2b..ca3f8cc 100644
--- a/tests/pylint/pylintrc
+++ b/tests/pylint/pylintrc
@@ -27,8 +27,6 @@ disable=
reimported,
relative-import,
ungrouped-imports,
- unsubscriptable-object,
- unsupported-membership-test,
unused-argument,
unused-wildcard-import,
wildcard-import,
@@ -119,6 +117,13 @@ disable=
too-many-return-statements,
too-many-statements,
#---------------------------------------------------------------------------
+ # Enabling these would be nice, but at the moment pylint is a bit too dumb,
+ # so it stumbles over e.g. initialization with None. It ignores control
+ # flow, so even adding e.g. isinstance() guards wouldn't help, see:
+ # https://github.com/PyCQA/pylint/issues/1498.
+ unsubscriptable-object,
+ unsupported-membership-test,
+ #---------------------------------------------------------------------------
# Our code is still full of FIXMEs/XXXs/TODOs, perhaps fixing or removing
# them might be a good idea some day...
fixme,
Module: check_mk
Branch: master
Commit: 16b58a584d25a7f4632eb0caa9a6118545c56897
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=16b58a584d25a7…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Wed Jul 25 09:50:56 2018 +0200
Classify len-as-condition warning.
Change-Id: Ibfade615a8e25d3ca57a524a1e2e537a8436e8ce
---
tests/pylint/pylintrc | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/tests/pylint/pylintrc b/tests/pylint/pylintrc
index 0809cc2..4f75d2b 100644
--- a/tests/pylint/pylintrc
+++ b/tests/pylint/pylintrc
@@ -17,7 +17,6 @@ disable=
consider-using-enumerate,
consider-using-ternary,
inconsistent-return-statements,
- len-as-condition,
logging-not-lazy,
missing-docstring,
multiple-imports,
@@ -85,6 +84,12 @@ disable=
redefined-builtin,
#---------------------------------------------------------------------------
# Enabling this would be nice, but not crucial. At the moment, we have quite
+ # a few violations (about 220 in roughly 40 modules), so we postpone fixing
+ # this. Note that due to our arcane use of types, we need to be very careful
+ # when fixing these warnings!
+ len-as-condition,
+ #---------------------------------------------------------------------------
+ # Enabling this would be nice, but not crucial. At the moment, we have quite
# a few violations, so we postpone fixing this. When we do it eventually, we
# probably want to use "include-naming-hint=yes" in the BASIC section.
invalid-name,
Module: check_mk
Branch: master
Commit: a7fd419c0bef49f85bf2effd4b5474f9c3a878d3
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a7fd419c0bef49…
Author: Andreas Umbreit <au(a)mathias-kettner.de>
Date: Wed Jul 25 07:11:28 2018 +0200
CMK-600: Add Werk 5507
5507 FIX Prevent cmk-update-agent from being prelinked on Linux
Since Check_MK 1.5, the Agent Updater gets packaged via the tool "PyInstaller" to ensure a better compatibility. Unfortunately, PyInstaller-packaged binaries will break when tthey get prelinked. You would experience this by getting an error message like
<pre>
Cannot open self /usr/lib/check_mk_agent/plugins/3600/cmk-update-agent or archive /usr/lib/check_mk_agent/plugins/3600/cmk-update-agent.pkg
</pre>
when cmk-update-agent gets executed after a prelink.
To mitigate this problem, and because there may be some systems that run a prelink-job frequently on all executables, the Check_MK agent package now blacklists the cmk-update-agent binary from being prelinked. It does this by writing to the prelink-config (if it finds one on the system) on installation. The corresponding config entries will be removed on uninstallation.
Change-Id: Ia0a83b76da4bedafa27e8513812a258ea37ef871
---
.werks/5507 | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/.werks/5507 b/.werks/5507
new file mode 100644
index 0000000..18eaa55
--- /dev/null
+++ b/.werks/5507
@@ -0,0 +1,19 @@
+Title: Prevent cmk-update-agent from being prelinked on Linux
+Level: 1
+Component: agents
+Class: fix
+Compatible: compat
+Edition: cee
+State: unknown
+Version: 1.6.0i1
+Date: 1532494783
+
+Since Check_MK 1.5, the Agent Updater gets packaged via the tool "PyInstaller" to ensure a better compatibility. Unfortunately, PyInstaller-packaged binaries will break when tthey get prelinked. You would experience this by getting an error message like
+
+<pre>
+Cannot open self /usr/lib/check_mk_agent/plugins/3600/cmk-update-agent or archive /usr/lib/check_mk_agent/plugins/3600/cmk-update-agent.pkg
+</pre>
+
+when cmk-update-agent gets executed after a prelink.
+
+To mitigate this problem, and because there may be some systems that run a prelink-job frequently on all executables, the Check_MK agent package now blacklists the cmk-update-agent binary from being prelinked. It does this by writing to the prelink-config (if it finds one on the system) on installation. The corresponding config entries will be removed on uninstallation.
Module: check_mk
Branch: master
Commit: c967f497736746cec34f6e5b11341575e4974e66
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c967f497736746…
Author: Tom Baerwinkel <tb(a)mathias-kettner.de>
Date: Wed Jul 25 12:23:53 2018 +0200
Update comment in ucd_hr.include
Change-Id: I5d1f8433c34790c64e51ee7baa5d779ae260bc04
---
checks/ucd_hr.include | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/checks/ucd_hr.include b/checks/ucd_hr.include
index a29d43b..9f39f31 100644
--- a/checks/ucd_hr.include
+++ b/checks/ucd_hr.include
@@ -97,7 +97,7 @@ def _is_ucd_mem(oid):
if name in sys_descr and not oid(".1.3.6.1.2.1.25.1.1.0"):
return True
- # Astaro Firewall is Linux but should use hr_mem
+ # Astaro and Synology are Linux but should use hr_mem
# Otherwise Cache/Buffers are included in used memory
# generating critical state
if oid(".1.3.6.1.2.1.1.2.0").startswith(".1.3.6.1.4.1.8072."):