I'm trying to automatically have a host in Icinga be disabled temporarily while Foreman rebuilds it. This prevents dozens of unnecessary alerts being generated.
The API call is as follows:
http://icinga.sal01.datacentred.co.uk/icinga-web/web/api/cmd/cmd=DISABLE_ALL_NOTIFICATIONS/authkey=mykey/target=host/data=myhost
The JSON result is:
{"success":true,"errors":[]}
There are no errors in the icinga or icinga-web log files and the host notifications remain enabled. I can disable them in the UI and this works fine (the red megaphone icon appears to denote the host is disabled).
Anything I'm doing incorrectly or anywhere I can look to debug further?
Thanks!
Hi,
the API call must be:
for debugging execute
and restart icinga2. There should be something like this in /var/log/icinga2/debug.log
Hope this helps,
Clifford