helper-scripts/sms/freesms.zabbix_alert_script

10 lines
158 B
Bash

#!/bin/bash
USER=`echo ${1} | awk '{ print $1 }'`
PASS=`echo ${1} | awk '{ print $2 }'`
body=${2}
cat <<EOF | freesms -u ${USER} -p ${PASS} -
${body}
EOF