Open spauldingportraits opened 4 years ago
I also had this issue, what is the correct way to setup this script in the media type settings?
This is what mine looks like:
https://github.com/ericallenpaul/Zabbix-Twilio.sh/blob/master/Image%2010.jpg
This is what my action looks like: https://github.com/ericallenpaul/Zabbix-Twilio.sh/blob/master/Image%2011.jpg
Hello, I did test this out and POC, seems to work great. my question is, are there any settings via twilio console I will need to set or tweak.
Currently using a free trial account and according to twilio, should be functional with no restrictions.
I do get sms messages to my phone, however it says something along the lines of,
sent via twilio to free account to "my name"
thanks a bunch...other than that this seems fairly easy to implement. appreciate you.
having that said, it wont send the actual zabbix messages. I did check the .jpg files you sent up to mimic what you have.
No. No settings on yeillio need to be tweaked
Sent from my Galaxy
-------- Original message -------- From: ang3lwitch notifications@github.com Date: 12/5/20 9:07 AM (GMT-05:00) To: "ericallenpaul/Zabbix-Twilio.sh" Zabbix-Twilio.sh@noreply.github.com Cc: Eric Paul ericallenpaul@hotmail.com, Comment comment@noreply.github.com Subject: Re: [ericallenpaul/Zabbix-Twilio.sh] Issue finding twilio-sms.conf file (#1)
Hello, I did test this out and POC, seems to work great. my question is, are there any settings via twilio console I will need to set or tweak.
Currently using a free trial account and according to twilio, should be functional with no restrictions.
I do get sms messages to my phone, however it says something along the lines of,
sent via twilio to free account to "my name"
thanks a bunch...other than that this seems fairly easy to implement. appreciate you.
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fericallenpaul%2FZabbix-Twilio.sh%2Fissues%2F1%23issuecomment-739255511&data=04%7C01%7C%7Cad19043c727948b5d01608d899270a2b%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637427740228864613%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=SpteM2VqgsEJQJwqORh9W50vKmkSyB2LViHfQfC%2BrLs%3D&reserved=0, or unsubscribehttps://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAAGO5AKPDQUOLPB2AMZL6BLSTI5ANANCNFSM4P76A7AA&data=04%7C01%7C%7Cad19043c727948b5d01608d899270a2b%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637427740228874608%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=F%2Bfagxuc1vjXixg6Fmr6cNcmJECC4%2FdEceujJGQyXEI%3D&reserved=0.
ok, thanks for that Enjoy the weekend
I know I ended up having to download the latest twillio config file to get mine to work properly, but everything else worked perfectly once I got that up and going.
On Sat, Dec 5, 2020 at 9:47 AM ang3lwitch notifications@github.com wrote:
ok, thanks for that Enjoy the weekend
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ericallenpaul/Zabbix-Twilio.sh/issues/1#issuecomment-739319601, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHGNMN3RYZROU7DK4KZIIILSTJPZDANCNFSM4P76A7AA .
Have a link or location for the new file?
On Sat, Dec 5, 2020, 4:48 PM spauldingportraits notifications@github.com wrote:
I know I ended up having to download the latest twillio config file to get mine to work properly, but everything else worked perfectly once I got that up and going.
On Sat, Dec 5, 2020 at 9:47 AM ang3lwitch notifications@github.com wrote:
ok, thanks for that Enjoy the weekend
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/ericallenpaul/Zabbix-Twilio.sh/issues/1#issuecomment-739319601 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AHGNMN3RYZROU7DK4KZIIILSTJPZDANCNFSM4P76A7AA
.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ericallenpaul/Zabbix-Twilio.sh/issues/1#issuecomment-739420487, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF4T3VX6GCK27YFNDJMCD2LSTKTDRANCNFSM4P76A7AA .
Eric put it in the readme, but it should be here - https://www.twilio.com/labs/bash/sms
On Sat, Dec 5, 2020 at 3:52 PM ang3lwitch notifications@github.com wrote:
Have a link or location for the new file?
On Sat, Dec 5, 2020, 4:48 PM spauldingportraits notifications@github.com wrote:
I know I ended up having to download the latest twillio config file to get mine to work properly, but everything else worked perfectly once I got that up and going.
On Sat, Dec 5, 2020 at 9:47 AM ang3lwitch notifications@github.com wrote:
ok, thanks for that Enjoy the weekend
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <
https://github.com/ericallenpaul/Zabbix-Twilio.sh/issues/1#issuecomment-739319601
, or unsubscribe <
https://github.com/notifications/unsubscribe-auth/AHGNMN3RYZROU7DK4KZIIILSTJPZDANCNFSM4P76A7AA
.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub < https://github.com/ericallenpaul/Zabbix-Twilio.sh/issues/1#issuecomment-739420487 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AF4T3VX6GCK27YFNDJMCD2LSTKTDRANCNFSM4P76A7AA
.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ericallenpaul/Zabbix-Twilio.sh/issues/1#issuecomment-739426919, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHGNMNYFWO7WKSOIFMWE7SDSTK2UPANCNFSM4P76A7AA .
Well, I do get alerts every time I manipulate a trigger. A message does come to my phone, that is good.
What I am failing to understand or do is to get the whole body of the zabbix alert, i.e. "host is down" or " diskspace is low on {HOST.NAME} etc...
All i get is "Sent from your Twilio trial account: then nothing else. Is that by design or am i doing it wrong, lol?
I would not think the trial account would limit my messages, they say it is fully functional.
so my guess is either I am possibly missing an rpm package to assist (CentOS7) and zabbix 5.0.5.
you need to setup your actions accordingly, this is handled in Zabbix with plenty of documentation on it, the trial account will always send the " sent from Twilio trial" before the text in the action that gets triggered.
On Sun, Dec 6, 2020 at 6:42 AM ang3lwitch notifications@github.com wrote:
Well, I do get alerts every time I manipulate a trigger. A message does come to my phone, that is good.
What I am failing to understand or do is to get the whole body of the zabbix alert, i.e. "host is down" or " diskspace is low on {HOST.NAME} etc...
All i get is "Sent from your Twilio trial account: then nothing else. Is that by design or am i doing it wrong, lol?
I would not think the trial account would limit my messages, they say it is fully functional.
so my guess is either I am possibly missing an rpm package to assist (CentOS7) and zabbix 5.0.5.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ericallenpaul/Zabbix-Twilio.sh/issues/1#issuecomment-739504435, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHGNMN7XOR3GJHSYG4HEFNTSTOC4FANCNFSM4P76A7AA .
Yep. You just need to make sure you're using the right variables in your action based on the text message you want to see. My default message is: {TRIGGER.STATUS} : {TRIGGER.NAME} - {HOSTNAME} ({IPADDRESS}) Trigger severity: {TRIGGER.SEVERITY}
what is the best way to filter our hosts from the SMS, for example I do not want to be altered if dev or testing servers have an event?
Put the hosts in maintenance. Add a rule to your action for "Maintenance status not in maintenance"
trying to implement this in my zabbix install.
using the script test command works correctly and sends SMS. Once I add it as a media type and try to test it, it fails with an error saying it can't find the configuration file.
The error I get is as follow's. Details Media type test failed. AccountSid not set, it must be provided in the config file, or on the command line. Usage: twilio-sms [-v] [-c configfile] [-d callerid] [-u accountsid] [-p authtoken] number [number[number[...]]]
I've provided the -c /usr/lib/zabbix/alertscripts/twilio-sms.conf both in the script name and as a parameter and it still fails to find the script.
i got the same problem with my sms alerts. did someone find a solution to this problem?
Here are some screenshots of my setup. This is Zabbix 3.2 so your screens may be slightly different. So this is what my action looks like:
@.***
And this is my media setup. @.***
The conf file and the script are in the same directory. Hope this helps.
Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows
From: @.> Sent: Tuesday, February 15, 2022 9:31 AM To: @.> Cc: Eric @.>; @.> Subject: Re: [ericallenpaul/Zabbix-Twilio.sh] Issue finding twilio-sms.conf file (#1)
trying to implement this in my zabbix install.
using the script test command works correctly and sends SMS. Once I add it as a media type and try to test it, it fails with an error saying it can't find the configuration file.
The error I get is as follow's. Details Media type test failed. AccountSid not set, it must be provided in the config file, or on the command line. Usage: twilio-sms [-v] [-c configfile] [-d callerid] [-u accountsid] [-p authtoken] number [number[number[...]]]
I've provided the -c /usr/lib/zabbix/alertscripts/twilio-sms.conf both in the script name and as a parameter and it still fails to find the script.
i got the same problem with my sms alerts. did someone find a solution to this problem? [image]https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fuser-images.githubusercontent.com%2F99742083%2F154082576-d24d1ccd-6d34-49db-b15f-281ebcd64b5c.png&data=04%7C01%7C%7C5703b1c3c43948534c0808d9f08fdfd2%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637805322990098449%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=CLQwhYgTX3JJtxWBCyDp4SEAHjGTHkEHNm6zpxQhfso%3D&reserved=0
— Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fericallenpaul%2FZabbix-Twilio.sh%2Fissues%2F1%23issuecomment-1040342425&data=04%7C01%7C%7C5703b1c3c43948534c0808d9f08fdfd2%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637805322990098449%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=pP11bltwqVu%2FiIQRkD%2Fm6eYDyFeEyo82RK0fvtLp4Xw%3D&reserved=0, or unsubscribehttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAAGO5AITJE2L4EE6FWLKF2DU3JPUTANCNFSM4P76A7AA&data=04%7C01%7C%7C5703b1c3c43948534c0808d9f08fdfd2%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637805322990255008%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=5VwPoOWv%2Bz9CJMpEjYnDKIm1r6NGX8%2BGxdx4aerPiMs%3D&reserved=0. Triage notifications on the go with GitHub Mobile for iOShttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapps.apple.com%2Fapp%2Fapple-store%2Fid1477376905%3Fct%3Dnotification-email%26mt%3D8%26pt%3D524675&data=04%7C01%7C%7C5703b1c3c43948534c0808d9f08fdfd2%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637805322990255008%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=wknUfh6KlivS5lvusZb1aaBMdA%2F48mZZkZFKK%2Fe3NBU%3D&reserved=0 or Androidhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.github.android%26referrer%3Dutm_campaign%253Dnotification-email%2526utm_medium%253Demail%2526utm_source%253Dgithub&data=04%7C01%7C%7C5703b1c3c43948534c0808d9f08fdfd2%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637805322990255008%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=XT8taE972nDyHesDa1q%2Fbf8Tw0w%2Bp9O5J5doJUv8PB0%3D&reserved=0. You are receiving this because you commented.Message ID: @.***>
trying to implement this in my zabbix install.
using the script test command works correctly and sends SMS. Once I add it as a media type and try to test it, it fails with an error saying it can't find the configuration file.
The error I get is as follow's. Details Media type test failed. AccountSid not set, it must be provided in the config file, or on the command line. Usage: twilio-sms [-v] [-c configfile] [-d callerid] [-u accountsid] [-p authtoken] number [number[number[...]]]
I've provided the -c /usr/lib/zabbix/alertscripts/twilio-sms.conf both in the script name and as a parameter and it still fails to find the script.