zabbix设置邮件报警

 

sendmail.sh的内容如下:

#!/bin/bash
to=$1
subject=$2
body=$3

cat <<EOF|mail -s "$subject" "$to"
$body
EOF

脚本权限为755的。

posted on 2014-08-30 18:26  zitong  阅读(618)  评论(0编辑  收藏  举报