Hello ![]()
I started experimenting with the Notifications module and got stuck on using the webhook channel.
The plan was to use that feature to trigger a call or a sms to the on-call person.
SMS Gateway is a Brevis.One, which handles all the information in the called URL.
Example:
https://smagateway/api.php?username=api_access&password=secure&mode=number&to=<number>&text=<text>
or with an added &ring=true to issue a call.
“Hardcoding” everything directly in the URL template works, but nothing with variables like &to=$contact.pager$&text=$host.name$
Were I get stuck is: How do I
- set the phone number information into the URL template?
- set the message text to contain host name, service name, state, time (the usual notification info)
Anyone played aroung with something like that already?
Is it something that is even doable in the current state of development?
Module version: v0.2.0
Icinga Web 2 version: 2.13.0
IcingaDB version: 1.4.0