Branch: refs/heads/2.2.0
Home:
https://github.com/Checkmk/checkmk
Commit: 267fa27ce44b36ca91fbd6446837c5713df736fc
https://github.com/Checkmk/checkmk/commit/267fa27ce44b36ca91fbd6446837c5713…
Author: Lukas Lengler <lukas.lengler(a)tribe29.com>
Date: 2023-06-06 (Tue, 06 Jun 2023)
Changed paths:
A .werks/15545
M agents/plugins/.gitignore
M agents/plugins/Makefile
M agents/plugins/mk_sap.py
A agents/plugins/mk_sap_2.py
M tests/agent-plugin-unit/test_mk_sap.py
Log Message:
-----------
15545 Introduce Python 3 compatibilty for mk_sap agent plugin
The mk_sap agent plugin can now be used with Python 3.
Previous to this werk, mk_sap could only be used with Python 2, as it was
dependent on the sapnwrfc library which is not compatible with python3.
This werk ports mk_sap to use pyrfc which is only compatible with Python 3
The old mk_sap plugin can still be used with Python 2 and is now called mk_sap_2
If the host this agent plugin is executed on has Python 3 installed:
<ul>
<li>install pyrfc on this host (for more details have a look at the mk_sap.py agent
plugin source code)</li>
<li>redeploy agent via bakery or manually</li>
</ul>
If the host this agent plugin is executed on has only Python 2 installed nothing changes.
The Python 2 agent plugin
will automatically be used in this case.
Pull request:
https://github.com/tribe29/checkmk/pull/367
bb8f622d47e5fd14c95b21df8c7ecaadafe90cd0
CMK-10866
Change-Id: Ibd91bb7b23f392779f803afb19e2ca927e31aa4d
Co-authored-by: Stefan Brinkmann <brinkmann.stefan(a)muenchener-verein.de>