This is the correct way to do custom sms formats, imo.
The email templates are designed for email. The template system was never really fully implemented and no one really uses it, so it’s not a good way to do this sort of thing.
Adam.
From: observium observium-bounces@observium.org On Behalf Of Michael Smarsz via observium Sent: 31 March 2022 21:09 To: Observium observium@observium.org Cc: Michael Smarsz obslist@smarsz.com Subject: Re: [Observium] questions about email alert notification formats
We used (at a former workplace) an external bash script to generate shorter SMS notifications with just the relevant variables. In our case, we had our own SMS gateway, so the script did an authenticated curl push into the web interface. It also sent condensed recovery notifications.
https://docs.observium.org/alerting_transports/#script
There's no reason that you couldn't use an external script to generate the "normal" alert notifications and recoveries for standard email delivery.
Michael
On 1 Apr 2022, at 4:56 am, Tony Guadagno via observium <observium@observium.org mailto:observium@observium.org > wrote:
Kevin, great tip…I have made that change.
I would still like a way to have a different template for txt notifications…so I can shorten them etc… Can anyone tell me if this is possible?
From: Kevin Riahi <kevin.riahi@envoi.com mailto:kevin.riahi@envoi.com > Sent: Thursday, March 31, 2022 1:50 PM To: Observium <observium@observium.org mailto:observium@observium.org > Cc: Tony Guadagno <tonyg@guadagno.org mailto:tonyg@guadagno.org > Subject: Re: [Observium] questions about email alert notification formats
Tony,
We switched sending our emails to the SMS gateway instead of the text gateway of our carrier and its much better.
I believe Verizons SMS to email gateway is mailto:number@vzwpix.com number@vzwpix.com. Its worth a try.
Thank you
Kevin Riahi
_____
From: "Observium" < mailto:observium@observium.org observium@observium.org> To: "Observium" < mailto:observium@observium.org observium@observium.org> Cc: "Tony Guadagno" < mailto:tonyg@guadagno.org tonyg@guadagno.org> Sent: Thursday, March 31, 2022 8:09:12 AM Subject: [Observium] questions about email alert notification formats
Hi, I have 2 questions about this.
First, is it possible to attach a notification format per contact. We are sending out text alert notifications using mailto:number@vtext.com number@vtext.com and I think the format is too big for vtext.com http://vtext.com to accept. Is it possible that on a contact, scale down the notification?
Second, is it possible to change the format of the general “recover” email?
thanks
Tony
_______________________________________________ observium mailing list mailto:observium@observium.org observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
_______________________________________________ observium mailing list observium@observium.org mailto:observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium