Hello Adam,
Provider support JSON POST like this
Maybe i can use Webhook, is there some example of config?
POST /sms/2/text/single HTTP/1.1
Host: {base_url}https://dev.infobip.com/getting-started/base-url
Authorization: Basic XYZ
Content-Type: application/json
Accept: application/json
{
"from":"InfoSMS",
"to":"41793026727",
"text":"Test SMS."
}
From: Adam Armstrong adama@memetic.org Sent: Monday, January 14, 2019 4:48 PM To: chott--- via observium observium@observium.org Cc: chott@praha1.net Subject: Re: [Observium] Generic Notification API SMS
You would just write a shell script to do this using the script transport. Adam. Sent from BlueMailhttp://www.bluemail.me/r?b=14063 On 14 Jan 2019, at 15:25, chott--- via observium <observium@observium.orgmailto:observium@observium.org> wrote: Hello,
Is there some method how we can set notification via generic HTTP GET ?
We have SMS provider and there is example of GET command
https://%7Bbase_url%7Dhttps://dev.infobip.com/getting-started/base-url/sms/1/text/query?username=myUsername&password=myPassword&to=41793026727,41793026834&text=Message text
Where for example variable „text“ will be Environment Variable from Observium like
text=OBSERVIUM_ALERT_STATE, OBSERVIUM_DEVICE_HOSTNAME, OBSERVIUM_DEVICE_LOCATION
Thank you
Tom
________________________________
observium mailing list observium@observium.orgmailto:observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium