we have several Windows virtual machines, where Check_MK-agent is automatically installed when deploying the machine.
Is it possible to automatically create the corresponding host in Check_MK just because of the agent communication? Or is there any other interface to create hosts automatically with?
As @neeloj said, you can use this for example with your IPAM solution or just do a dns query for all systems and add all missing hostnames with the api
You can also do it with a network scan (regular). This is an option of a folder. You can decide what is happening to new hosts if they are found.
Hosts -> Folder properties -> Network Scan.
I used the add_host-action in combination with Invoke-WebRequest (powershell) and included this in the software, which installs the machines that I want to integrate. It works just as required, thanks!
I do not know Ansible yet and did not use it either. I integrated the creation of the CheckMK-host into our software deployment system (Matrix42 Empirum).