Open alexeinporiss opened 1 year ago
You can closed de topic. To put the bash variable $OnCallNumber work. I modified the script to have multiple phone number
# get the phone number
if [ "$UseWeeklySchedule" -eq 1 ];
then
PHONENUMBER=$(cat $PHONEFILE)
else
PHONENUMBER="$OnCallNumber"
fi
# Send SMS to the first on call number
echo "$1" | $DIRECTORY/twilio-sms.sh -c $DIRECTORY/twilio-sms.conf $PHONENUMBER
# Check if there is a second on-call number
if [ -n "$OnCallNumber2" ]; then
# Use the second OnCallNumber
PHONENUMBER="$OnCallNumber2"
# Send SMS to the second on call number
echo "$1" | $DIRECTORY/twilio-sms.sh -c $DIRECTORY/twilio-sms.conf $PHONENUMBER
fi
echo ok
Hi! Everyone can someone show me all the configuration to make the trigger action work to receive the SMS.
![image](https://github.com/ericallenpaul/Zabbix-Twilio.sh/assets/86486538/5ddd428c-cb51-4136-8b21-93530cda21f7)
I attached the setting I have for now. Can someone tell me what I'm doing wrong... ?