Zabbix告警脚本-短信

时间:2022-06-11 23:08:51
[root@iot-svndata02 bin]# cat zbsms.sh 
#!/bin/sh
#curl http://221.179.180.137:8080/smsaServer/lkSend\?UID\=znjdwg\&PWD\=fc85c5fa34a90ee7f7d5af4d5f109f4a\&PHONE\=$1\&CONTENT\=$CON\&TYPE\=4\&MSGID\=1
export.UTF-8
time=`date +"%Y-%m-%d"`
java -jar /etc/zabbix/bin/sms4j.jar $1 "$3" >>/var/log/zabbix/zbx_sms-$time.log
#echo "$3" >/tmp/sms.txt
[root@iot-svndata02 bin]#