Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Script says AccountSid not set #6

Open
kakashikuna opened this issue Feb 6, 2023 · 8 comments
Open

The Script says AccountSid not set #6

kakashikuna opened this issue Feb 6, 2023 · 8 comments

Comments

@kakashikuna
Copy link

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[...]]]

@hriday
Copy link

hriday commented Mar 27, 2023

Explicitly set the config file location in the script:

CONFIGFILE=/usr/lib/zabbix/alertscripts/twilio-sms.conf

@ericallenpaul
Copy link
Owner

ericallenpaul commented Mar 28, 2023 via email

@kakashikuna
Copy link
Author

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

@hriday
Copy link

hriday commented Mar 28, 2023

Does it work from the command line? Check the permissions on the files.

@kakashikuna
Copy link
Author

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

@hriday
Copy link

hriday commented Mar 28, 2023 via email

@kakashikuna
Copy link
Author

Zabbix Settings

Name -> Twilio
Type -> Script
Scriptname -> twilio-sms.sh

@kakashikuna
Copy link
Author

Here a screenshot from my Zabbix Settings
Zabbix Settings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants