helper-scripts/sms/freesms.zabbix_alert_script

10 lines
158 B
Plaintext
Raw Normal View History

2020-04-28 00:18:09 +02:00
#!/bin/bash
USER=`echo ${1} | awk '{ print $1 }'`
PASS=`echo ${1} | awk '{ print $2 }'`
body=${2}
2020-04-28 00:18:09 +02:00
cat <<EOF | freesms -u ${USER} -p ${PASS} -
${body}
EOF