CheckMK Local Check Details Output not working

@aeckstein the code is just an example. My problem is just the missing Details Output. Not sure why it isnt working anymore. Instead of writing the Details into the check, the monitoring tries to create another service instead.