API/ANSIBLE - Reschedule check all services on host

Hi,

I use Ansible CheckMK module to do some operations.

When i apply the update for a Server, i create a downtime with Ansible Module.

During the process, after updates are installed, i restarted the server.

At the end of the process, i want to force the check of all services on the host.

In CheckMK GUI, i find the [RESCHEDULE] button but with API Explorer or Ansible CheckMK, i can’t find how can i do this ?

Do you know how to reschedule check service of all host by API or Ansible CheckMK module please ?

Thanks for your help,

Matt

Hi,
It seems the only way to force check whitout GUI is to clean the cache for Linux and restart service agent for Windows.
Can you confirm ?
Thanks for your help,
Matt

Hi @Matt. Why would you want to reschedule services in the first place? The default check interval in Checkmk is one minute. No need to reschedule. There are some exceptions, like the discovery or hardware/software inventory service, but you also would not want to reschedule them, especially without spreading.

Say, you really have a compelling use case here, then the only way to do it automatically would be to run a Livestatus command from within the site.