CMK version: 2.3.0p36
OS version: rhel-9.6
Hello, I’m new to CheckMK, but I have a problem — I’m trying to add my first script/plugin and ran into a rather strange issue.
I’m testing the functionality with the simplest echo/print,
and for example, when I placed a script in /usr/lib/check_mk_agent/local on the monitored host, it worked immediately:
#!/bin/sh
echo “test”
It works perfectly, and right away I get a new metric.
But when I try to run something in Python, like:
#!/usr/bin/env python3
print(“TEST”)
I don’t get any metric.
I tried adding #!/usr/bin/env python and #!/usr/bin/python3, but it doesn’t help. When I run the script manually, it works fine, but CheckMK doesn’t seem to return any metrics from Python at all.
I even tried to:
Limit script types to execute: py, sh — also without effect.
Maybe someone can give me a hint, because I feel like I’m making some very basic mistake — but which one?
