[root@localhost alertscripts]# pwd
/usr/local/zabbix/share/zabbix/alertscripts
[root@localhost alertscripts]# ls
sendmail.py sendmail.sh.bak
[root@localhost alertscripts]#sendmail.py
[root@localhost alertscripts]# ./sendmail.py ‘收件人’ ‘主题’ ‘内容’
-------------------------------------------------------------------------------------------
#!/usr/bin/env python
#co...
sendEmail配置报警邮件
安装
# wget http://caspian.dotconf.net/menu/Software/SendEmail/sendEmail-v1.56.tar.gz
# tar zxf sendEmail-v1.56.tar.gz -C /var/src
# cp /var/src/sendEmail-v1.56/sendEmail /usr/bin/sendEmail
# chmod 755 /usr/bin/sendEmail
/usr/local/bin/sendEmail –f sender@163.com –t receiver@163.com –s smtp.163.com –u “from nagios” –xu sender –xp 123456 –m happy
解释:
-f 表示发送者的邮箱
-t ...