CMK version: OMD - Open Monitoring Distribution Version 2.3.0p35.cee
OS version: Debian GNU/Linux 13 (trixie)
Error message:
$ MK_CONFDIR=/etc/check_mk/ /usr/lib/check_mk_agent/plugins/apache_status.py
<<<apache_status:sep(124)>>>
Exception ([::1]:443): urlopen() got an unexpected keyword argument 'cafile'
Exception ([::1]:80): urlopen() got an unexpected keyword argument 'cafile'
Apparently this is because of urllib.request: Remove deprecated cafile, capath and cadefault parameters in Python 3.13 Ā· Issue #105382 Ā· python/cpython Ā· GitHub
briand
(Brian)
August 21, 2025, 12:21pm
2
Clarification question, are you running 2.3.0p35 on Debian 13 Trixie?
If so, that is not a supported OS for CheckMK 2.3 at this time.
briand
(Brian)
August 21, 2025, 12:26pm
3
They anticipate Debian 13 support in the near future per this post from Mattias:
There are issues with the CXX ABI (GCC changed to 14). So, it will probably take until p11 or p12.
We are working on it.
Yes, but this is on the monitored nodes, where the agent runs, not the monitoring node itself.
I think the supported operating systems are of a much greater variety there
briand
(Brian)
August 22, 2025, 2:07pm
5
Not sure. I spent a few minutes before a meeting this morning trying to monitor apache on a deb13 test system and the plugin didnāt detect apache. Not sure and at the moment I donāt have any further thoughts. Maybe someone else will. Sorry
Iāve made a PR to fix this:
Checkmk:master ā moschlar:fix-apache-status-trixie
opened 08:24AM - 25 Aug 25 UTC
## General information
The cafile parameter to urlopen has been deprecated an⦠d is now finally removed: https://github.com/python/cpython/issues/105382
ssl contexts are only available from 2.7.9 on, but since that is already used in get_ssl_no_verify_context(), I assume it is a good choice going forward.
https://docs.python.org/2.7/library/ssl.html#ssl.create_default_context
See also https://forum.checkmk.com/t/apache-status-plugin-not-working-on-debian-13-trixie/55294?u=schlarbm
## Bug reports
Please include:
**CMK version:** OMD - Open Monitoring Distribution Version 2.3.0p35.cee
**OS version:** Debian GNU/Linux 13 (trixie)
**Error message:**
```
$ MK_CONFDIR=/etc/check_mk/ /usr/lib/check_mk_agent/plugins/apache_status.py
<<<apache_status:sep(124)>>>
Exception ([::1]:443): urlopen() got an unexpected keyword argument 'cafile'
Exception ([::1]:80): urlopen() got an unexpected keyword argument 'cafile'
```
Apparently this is because of https://github.com/python/cpython/issues/105382
## Proposed changes
ssl contexts are only available from 2.7.9 on, but since that is already used in get_ssl_no_verify_context(), I assume it is a good choice going forward.
https://docs.python.org/2.7/library/ssl.html#ssl.create_default_context
1 Like