HI & welcome to the icinga community,
First, for better readability please format your post as described here.
I’d assume your host.vars.client_endpoint
is empty or contains wrong content. However, it’s not needed anyway if you use this line instead:
command_endpoint = host.name
In addition you have two unnecessary assign statements when you fill host.vars.local_disks
for Windows machines only.