I’m trying to use Icinga’s notifications module to send webhooks to Teams when a host is down for longer than a specified time. I’m relatively new to APIs, so I apologize if this is a basic question.
I’ve followed the documentation to enable the API and create my credentials. However, I’m unsure which URL endpoint to use when adding Icinga as a source. Currently, I’ve configured it as follows:
Thanks for trying Icinga Notifications and posting your question.
For adding an “Icinga” Source to Notifications, the base URL of the Icinga 2 API server is required, in your case this should be https://localhost:5665.
More information is available in the Notification Web documentation section about Icinga 2 as a Source, including links to the Icinga 2 documentation about the required ApiUser.
One last unrelated thing: you provided “r2.14.2-1” as your Icinga 2 version. Unless the “-1” is another patch backport, I would urge you to upgrade to 2.14.3 as it closed a critical security issue.