Answer the question
In order to leave comments, you need to log in
Why doesn't email notification work in Zabbix?
Ubuntu server 14.04. Zabbix 2.4.2.
Set up alerts through an external script.
#!/bin/sh
export smtpemailfrom="[email protected]"
export zabbixemailto="$1"
export zabbixsubject="$2"
export zabbixbody="$3"
export smtpserver=smtp.yandex.ru
export [email protected]
export smtppass=MegaPass
export logfile=/var/log/mail.log
/usr/local/bin/sendEmail -l $logfile -f $smtpemailfrom -t $zabbixemailto
-u $zabbixsubject -m $zabbixbody -s $smtpserver -xu
$smtplogin -xp $smtppass
Answer the question
In order to leave comments, you need to log in
Because zabbix already has built-in email alerts and you don't need to fence your bike when the standard option works.
And what did not suit: administration - Notification methods - email?
In general, if something is sent, then the script is called, turn on debugging in it and see where the side is.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question