#!/bin/sh HOME=/etc PATH=/bin:/sbin:/usr/bin:/usr/sbin LOGFILE="/var/log/zabbix/zabbix-call.log" echo "$(date +'%Y.%m.%d-%H:%M:%S')" "Recipient='$1'" >> ${LOGFILE} #MOBILE_NUMBER=`echo "$1" | sed s#\s##` MOBILE_NUMBER="$1" # Log it echo /usr/bin/sudo /usr/bin/gnokii --config /etc/gnokiirc --dialvoice ${MOBILE_NUMBER} >>${LOGFILE} # Call /usr/bin/sudo /usr/bin/gnokii --config /etc/gnokiirc --hangup 0 1>>${LOGFILE} 2>&1 /usr/bin/sudo /usr/bin/gnokii --config /etc/gnokiirc --dialvoice "${MOBILE_NUMBER}" 1>>${LOGFILE} 2>&1 echo "\n" >> ${LOGFILE} # EOF