Open kakashikuna opened 1 year ago
Explicitly set the config file location in the script:
CONFIGFILE=/usr/lib/zabbix/alertscripts/twilio-sms.conf
But it's set in the conf file?
From: Hriday Balachandran @.> Sent: Monday, March 27, 2023 4:22 PM To: ericallenpaul/Zabbix-Twilio.sh @.> Cc: Subscribed @.***> Subject: Re: [ericallenpaul/Zabbix-Twilio.sh] The Script says AccountSid not set (Issue #6)
Explicitly set the config file location in the script:
CONFIGFILE=/usr/lib/zabbix/alertscripts/twilio-sms.conf
— 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%2F6%23issuecomment-1485813845&data=05%7C01%7C%7Cba9ff546535942cafe2708db2f00f2af%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638155453334390346%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=8VSjw5vvYETP5W3XDgU1EMCVpnjZMvyTqzQIjR9kQI4%3D&reserved=0, or unsubscribehttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAAGO5AMBZ4NNOJJJC2YULM3W6HZHHANCNFSM6AAAAAAUSR5OMI&data=05%7C01%7C%7Cba9ff546535942cafe2708db2f00f2af%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638155453334390346%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Z%2Br%2B9LxJUM9ORXZunizdA%2BDaIEUF4AxXvyfD58bBZOg%3D&reserved=0. You are receiving this because you are subscribed to this thread.Message ID: @.***>
Yes AccountSID, AuthToken and Callerid.
Have also done this
Explicitly set the config file location in the script:
CONFIGFILE=/usr/lib/zabbix/alertscripts/twilio-sms.conf
But in Zabbix the same Error
Does it work from the command line? Check the permissions on the files.
echo "TEST" | /usr/lib/zabbix/alertscripts/twilio-sms.sh -c /usr/lib/zabbix/alertscripts/twilio-sms.conf +4XXXXXXXXXX Sending SMS to +4XXXXXXX from +1XXXXXXXXX...ok
that works it
Right. When you explicitly set the config file in the script, you avoid the need to call it with -c in zabbix. I was able to avoid the error you are getting by doing that.
On Tue, Mar 28, 2023 at 14:57 Parzival @.***> wrote:
echo "TEST" | /usr/lib/zabbix/alertscripts/twilio-sms.sh -c /usr/lib/zabbix/alertscripts/twilio-sms.conf +4XXXXXXXXXX Sending SMS to +4XXXXXXX from +1XXXXXXXXX...ok
that works it
— Reply to this email directly, view it on GitHub https://github.com/ericallenpaul/Zabbix-Twilio.sh/issues/6#issuecomment-1487581449, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFDVQBENQ7M2C2ZBB2CRLLW6NGCZANCNFSM6AAAAAAUSR5OMI . You are receiving this because you commented.Message ID: @.***>
Zabbix Settings
Name -> Twilio Type -> Script Scriptname -> twilio-sms.sh
Here a screenshot from my Zabbix Settings
The Script says AccountSid not set but i added all Data in the config File
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[...]]]