Checkmk service name with space

Hello team ,

i have written small local plugin in a host under “/usr/lib/check_mk_agent/plugins” this path

and at the end in the script i am giving as output
echo “$status ELASTICSEARCH count=$activeshards $msg”
where status give the status as ok,warn,critical and “ELASTICSEARCH” as service name and “$msg” as service state. as shown below

but i need service name as “Elastic Search” that is with space in the service name . For that when i give in the local plugin script output as
echo “$status ELASTIC SEARCH count=$activeshards $msg”


i am getting issue .so without space its working and with space in the name its having issue . and i need space in the name

So please help me how to get space in the service name .
Any help appreciated

so i need

Hi,

this will be fixed with Checkmk 2.0

BR
Anastasios

1 Like

Hello @athomaidis,
I have gone through the link mentioned
I am giving in my local check plugin script as below

echo “$status “ELASTIC SEARCH” count=$active_shards $msg”

but i am getting output as

Please help me to resolve the same.
Thanks

Your screenshot is not showing a CheckMK 2.0 installation (only beta at the moment available). It will be only possible with 2.0.
With your 1.6 you cannot have spaces in the service name from local checks.

2 Likes

Hello @andreas-doehler,

Thanks a ton for the reply but on small query

but for other services (not local) service name have space in this . Below is the Screenshot for the same


like “CPU Load” ., “NTP Time”, these all services have space in their name.

Thanks

That’s correct. Problem is with 1.6 that the function who is evaluating the local check cannot handle spaces. This is then fixed with 2.0

1 Like

This is a local check and should be placed in /usr/lib/check_mk_agent/local.

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.