![](https://secure.gravatar.com/avatar/11b54b3dd25b712395dab9818c67596f.jpg?s=120&d=mm&r=g)
Hi Tony,
If you create a contact and point it at the script you’re writing, you can use ./test_alert.php -c <contact_id> to send a test notification.
You can do the same sort of thing with a PHP script using the webhook transport. Script and webhook are intended for people to be able to quickly write their own code to handle notifications.
Adam.
From: observium observium-bounces@observium.org On Behalf Of Tony Guadagno via observium Sent: 01 April 2022 12:43 To: Observium observium@observium.org Cc: Tony Guadagno tonyg@guadagno.org Subject: Re: [Observium] questions about email alert notification formats
Hi, is there a way to test the script I created from within Observium? I know I can just run the script from the command line, but I don’t get the environment variables etc. I would like to have a way that I can use an Observium utility to launch the script and simulate a notification.
Thanks
From: observium <observium-bounces@observium.org mailto:observium-bounces@observium.org > On Behalf Of Tony Guadagno via observium Sent: Thursday, March 31, 2022 5:07 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
Ok, I will check this out. thanks
From: observium <observium-bounces@observium.org mailto:observium-bounces@observium.org > On Behalf Of Michael Smarsz via observium Sent: Thursday, March 31, 2022 4:09 PM To: Observium <observium@observium.org mailto:observium@observium.org > Cc: Michael Smarsz <obslist@smarsz.com mailto: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