Automatically Set Host Downtime on Reboots

'host_name'\s*:\s*'([^']*)' could be a bit more explicit and white-space robust

You could also get the registered server, site and protocol from the /etc/check_mk/cmk-update-agent.cfg to build the URI for the API call.

3 Likes