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}
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 BlueMail

On 14 Jan 2019, 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://{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