Branch: refs/heads/2.0.0
Home:
https://github.com/tribe29/checkmk
Commit: 990b90d7365bd6cb778c3ebdb9802c15dfa2c78c
https://github.com/tribe29/checkmk/commit/990b90d7365bd6cb778c3ebdb9802c15d…
Author: Andreas Umbreit <andreas.umbreit(a)tribe29.com>
Date: 2021-05-27 (Thu, 27 May 2021)
Changed paths:
A .werks/12678
M agents/check_mk_agent.aix
M agents/check_mk_agent.linux
M agents/check_mk_agent.solaris
M cmk/base/checkers/agent.py
Log Message:
-----------
12678 UNIX agent: Better error communication for failed python plugins
Werk #12149 states out that, on UNIX, a python agent plugin called
<tt><em>plugin</em>.py</tt>
is always executed with Python 3, while a plugin called
<tt><em>plugin</em>_2.py</tt> is always
executed with Python 2.
While an error will be communicated if there is no suitable Python installation
available,
some other Python agent plugin related error situations pass silently. The cause for this
is
that the agent assumes that python plugins always come as a pair of Python 3 and Python 2
version,
but this is not always the case in reality.
With this Werk, the communication is improved, by showing a WARN state in the Check_MK
service
for the following situations:
<ul>
<li><tt><em>plugin</em>.py</tt> is deployed, but found no
Python 3 installation, and there is no
<tt><i>plugin</i>_2.py</tt> counterpart. The reason "Missing
Python 3 installation" will be
displayed alongside the failed plugin.</li>
<li>The other way round: <tt><em>plugin</em>_2.py</tt> is
deployed, but found no Python 2
installation, and there is no <tt><i>plugin</i>.py</tt>
counterpart. The reason "Missing Python 2
installation" will be displayed alongside the failed plugin.</li>
<ul>
SUP-6421
Change-Id: I43f58689b4c288f28548243a857209f1bfb444c9
Commit: ad3ffba62459f12b9d8d584d8200e3be7dc5e2d9
https://github.com/tribe29/checkmk/commit/ad3ffba62459f12b9d8d584d8200e3be7…
Author: Andreas Umbreit <andreas.umbreit(a)tribe29.com>
Date: 2021-05-27 (Thu, 27 May 2021)
Changed paths:
M agents/check_mk_agent.linux
M agents/check_mk_agent.solaris
Log Message:
-----------
Linux/Solaris agent: Remove "new" style substring expansion
Substring expansion with a negative length is only available
since bash 4.2. Replace it with a more compatible expansion.
Change-Id: I141b25d6bf6ac0b6ba45f5f840154e3c18f4f963
Compare:
https://github.com/tribe29/checkmk/compare/967a6c60cff0...ad3ffba62459