Hi,
I manage several Plesk web servers monitored with Checkmk and I would like to automatically create HTTP/HTTPS active checks for the domains hosted on each server.
For example, if I have a Plesk host with the following domains:
-
www.domain1.tld
-
www.domain2.tld
I would like Checkmk to automatically create the corresponding HTTP(S) active checks for each domain.
The main requirement is that the configuration should stay dynamic: if I add a new domain in Plesk, the related HTTP/HTTPS check should be created automatically in Checkmk without manually adding a new endpoint or modifying the rules.
The number of hosted domains can change frequently, so maintaining active check endpoints manually is not really practical.
I was considering creating an agent-based plugin that returns the list of domains from Plesk, but I am not sure if this is the correct approach because the actual HTTP(S) checks should be executed as active checks from the monitoring server, not from the Plesk agent.
Is there a recommended/best practice approach for this scenario?
Would this be better handled with:
-
an agent-based plugin with some kind of discovery mechanism,
-
piggyback hosts,
-
the REST API,
-
or another Checkmk feature?
Thanks!