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
You would just write a shell script to do this using the script transport.
Adam.
Sent from BlueMail
On 14 Jan 2019, 15:25, at 15:25, chott--- via observium 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.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
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
Hello Adam,
We are try use Webhook transport for our script. But Observium send empty POST.
Is there some other settings in config file for this transport?
Thank you
Tom
Odesláno z mého chytrého telefonu Samsung Galaxy.
-------- Původní zpráva -------- Od: Adam Armstrong adama@memetic.org Datum: 14.01.19 16:57 (GMT+01:00) Komu: chott--- via observium observium@observium.org Cc: chott@praha1.net Předmět: 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.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
participants (2)
-
Adam Armstrong
-
chott@praha1.net