Example for a check_by_ssh using the Director

Hi there,
is there someone who has an example for a check_by_ssh-Check created with the director? I found some input but nothing really works, everytime getting some errors while deploying the configuration:

2019-08-28 10:39:58 +0200] critical/config: Error: syntax error, unexpected $undefined, expecting }} (T_NULLARY_LAMBDA_END)
Location: in [stage]/zones.d/director-global/commands.conf: 502:13-502:13
[stage]/zones.d/director-global/commands.conf(500):         }
[stage]/zones.d/director-global/commands.conf(501):         "-C" = {{
[stage]/zones.d/director-global/commands.conf(502):             $by_ssh_command$
                                                                ^
[stage]/zones.d/director-global/commands.conf(503):         }}
[2019-08-28 10:36:12 +0200] critical/config: Error: syntax error, unexpected / (T_DIVIDE_OP), expecting }} (T_NULLARY_LAMBDA_END)
Location: in [stage]/zones.d/director-global/commands.conf: 502:13-502:13
[stage]/zones.d/director-global/commands.conf(500):         }
[stage]/zones.d/director-global/commands.conf(501):         "-C" = {{
[stage]/zones.d/director-global/commands.conf(502):             /usr/lib/nagios/plugins/check_users -w $users_wgreater$ -c $users_cgreater$
                                                                ^
[stage]/zones.d/director-global/commands.conf(503):         }}

Also I found the following articel which seems to be a really good way, but I have no idea how to do something like that using the director:

Would be great if someone has an example or a good working solution.

Best regards Alicia