thanks for your quick answer pointing me in the right direction.
The bash examples work every minute if i install them in a dir named 60 → great.
I tried to run a python program with no success.
Is this possible? Do i need special shebangs?
Are there any logs i can follow when check_mk is not recognizing an output?
Running the python program via crontab and let it produce a bash script would not be as elegant as i want,
best,
Bodo
PS: Just managed to run a simple python script, i guess import pyodbc, psycopg2 of the full plugin is failing
PPS: No, it works, checkmk seems to be very strict with the output, will investigate further
with your hint and the excellent documentation for checkmk i was able to
write a local plugin in python which does an informix login and gets data from a table.
Very useful was the output of
/var/lib/check_mk_agent/cache/local_mk_.py.cache
which is produced when the program exists for example:
/usr/lib/check_mk_agent/local/6/<mk_my-python-program>.py
Cave: the env variables are not the same. I had to write a text-file and import them via load_dotenv,