Good people of the Checkmk forum! I call upon you once again with a query for aid:
Our very own @lars.getwan is currently refactoring the checkmk.general.downtime module and we want to make sure it lands well. This is where y’all come into play: Go ahead and take a look, or even better, try out the current state yourself.
If you want to help, but do not know how, please do reach out in the thread.
Also, your feedback is valued both in the pull request directly and here in the thread, whichever you prefer.
at the moment I write at some tools to make it easier to make a downtime at the hosts to set a towntime on a host when someone is working on it, for example now + 1h…
My Idea was to use a API-Proxy where a server mus be registered one time so i can execute two commands on a host base instead of a user base where a user have to logon with user/password every time. And so it would be perfect to excute the two api endpoints
/objects/host_config/ (to check if the host exists at Checkmk)
and
/domain-types/downtime/collections/host ( to set a downtime)
with the registration key for the bakery and here only for the registred hostname not all hosts.
also “berear ” as authentication.
In this case i canwrite a small tool (CLI for linux and GUI for windows) which can read the registration key (all users are administrative users) and set a downtime for the host and only for the host the user is allowed for!
The touls would append the logged in User in windows as user who execute the script and root on a linus host (all users are working as root because the linux hosts are all server and we have tu work as root…)
This feature can be switched on in the General settings.
typically, you would use an automation user to access the REST API from a monitored host. Why have you decided not to do that?
I also wouldn’t use Ansible and access the REST API directly in that case, as Ansible is rather useful if you manage your Checkmk environment from a control node.