I want to be able to set a service in Check_MK into downtime via a curl
command.
This is quite well documented here: https://mathias-kettner.de/checkmk_multisite_automation.html
So I followed the guide above and created the following curl
command to execute from a remote server.
curl -d "_do_confirm=yes" -d "_transid=-1" -d "_do_actions=yes" -d "service=Logins" -d "host=<HOSTNAME>" -d "view_name=service" -d "_down_minutes=5" -d "_down_comment=TEST" -d "_username=apiuser" -d "_secret=<SECRET>" "<MY_CHECK_MK>/check_mk/view.py"
I have the correct hostname and secret entered above too.
When I execute the above command it just returns a load of HTML from the page but it doesn't actually perform the action of entering the service into downtime.
I'm not really sure where I'm going wrong here...
Any help would be greatly appreciated. Thanks