Apache Status plugin not working on Debian 13 Trixie

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

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.

They anticipate Debian 13 support in the near future per this post from Mattias:

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 :wink:

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:

1 Like