CheckMK problem with showing output data

It might be because check_mk is interpreting the | as a separator for perfdata.

Try running your command in a subshell: $(your-command) and see if that does the trick for you.