Hi,
In the directory doc/treasures/localchecks, there are examples that are outdated.
Since agent 2.0.0, word separator for <<<local>>> section is NUL (\0) :
Code in check_mk_agent :
echo '<<<local:sep(0)>>>'
So the code should be, e.g in bash :
echo -e "0\0Plugin_Name\0perfdata=42\0Long description of the plugin"
The documentation at https://docs.checkmk.com/latest/en/localchecks.html should be updated accordingly
Xavier
This has another meaning than what you think. Separator 0 means for CheckMK → no sparator. I use “sep(0)” in all my sections where JSON data is included and inside CheckMK i get the whole line is one string. The same happens for local check line and the local check inside CMK.
The code examples from the mentioned directory are perfectly fine from the output standpoint.
1 Like
You are right, I messed with an old check_mk (1.2.7p27) with the latest agent