API: disable all notifications

I was looking thru the API docs, and either i’m being thick, or its not there.
The following is the case:

I run updates on CMK agents/plugins after updating a/the CMK server via Ansible (on RAW edition).

My goal is to - when updating agents - disabling (all) alerts/notifications, as with notifications enabled it will produce a lot of them.
So i’d like to flip the global (under Master control) switch to disable notification at the beginning of a/the playbook.
And then of course re-enable it at the end of the playbook.

To be clear, this is to be done without the checkmk collection… so just basic interaction with a/the API via default means.

  • Glowsome
1 Like

I see three different solutions:

  • Create a downtime using the API (Preferred)
  • Create a Host Tag that is associated with a ruleset that disables notifications. The Host Tag change could be performed at the Main Folder and this action could be triggered using the API
  • Run a livestatus commands that Disables notifications (Like the Master Switch)