Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: 23326776a0028262bf0a7e253f53b263569b67a7
https://github.com/tribe29/checkmk/commit/23326776a0028262bf0a7e253f53b2635…
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/core_helpers/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: 992dff53f832c2ed268a2b83243b6ee83065fbb9
https://github.com/tribe29/checkmk/commit/992dff53f832c2ed268a2b83243b6ee83…
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/bb616295eca1...992dff53f832