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

Template configuration for Alert trigger and user #9

Open
alexeinporiss opened this issue Jul 6, 2023 · 1 comment
Open

Template configuration for Alert trigger and user #9

alexeinporiss opened this issue Jul 6, 2023 · 1 comment

Comments

@alexeinporiss
Copy link

Hi! Everyone can someone show me all the configuration to make the trigger action work to receive the SMS.
image
image
image
image

I attached the setting I have for now. Can someone tell me what I'm doing wrong... ?

@alexeinporiss
Copy link
Author

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

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

1 participant