Hi
I try to make mail notification form Zabbix.
Right know I few scripts and nothing working.
For example I have script :
/etc/zabbix/alert.d/zext_msmtp.sh
with code:
account zabbix
tls on
tls_starttls on
tls_trust_file /etc/ssl/certs/ca-certificates.crt
host smtp.gmail.com
port 587
auth on
user mymail
password mypassword
from mymail
logfile /var/log/msmtp.log
Permission:
-rwxr-xr-x 1 root root 219 Oct 31 17:06 /etc/zabbix/alert.d/zext_msmtp.sh
Here is everything:

I set Media Types:
(Nr 1 on teh scren)
I set user:
(Nr 2 on teh scren)
And I set Action:
(Nr 3 on teh scren)
In dashboard I have information that email was send:
(Nr 4 on teh scren)
But I don't get anything :/
And in the log file is nothing
Oct 26 16:33:32 host=smtp.gmail.com tls=on auth=on [email protected] from=default [email protected] mailsize=40 smtpstatus=250 smtpmsg='250 2.0.0 OK 1351254839 e7sm2407548eep.1' exitcode=EX_OK
Oct 26 17:28:03 host=smtp.gmail.com tls=on auth=on [email protected] from=default [email protected] mailsize=40 smtpstatus=250 smtpmsg='250 2.0.0 OK 1351258111 t7sm2651083eel.14' exitcode=EX_OK
~
Please, help
I try to make mail notification form Zabbix.
Right know I few scripts and nothing working.
For example I have script :
/etc/zabbix/alert.d/zext_msmtp.sh
with code:
account zabbix
tls on
tls_starttls on
tls_trust_file /etc/ssl/certs/ca-certificates.crt
host smtp.gmail.com
port 587
auth on
user mymail
password mypassword
from mymail
logfile /var/log/msmtp.log
Permission:
-rwxr-xr-x 1 root root 219 Oct 31 17:06 /etc/zabbix/alert.d/zext_msmtp.sh
Here is everything:

I set Media Types:
(Nr 1 on teh scren)
I set user:
(Nr 2 on teh scren)
And I set Action:
(Nr 3 on teh scren)
In dashboard I have information that email was send:
(Nr 4 on teh scren)
But I don't get anything :/
And in the log file is nothing

Oct 26 16:33:32 host=smtp.gmail.com tls=on auth=on [email protected] from=default [email protected] mailsize=40 smtpstatus=250 smtpmsg='250 2.0.0 OK 1351254839 e7sm2407548eep.1' exitcode=EX_OK
Oct 26 17:28:03 host=smtp.gmail.com tls=on auth=on [email protected] from=default [email protected] mailsize=40 smtpstatus=250 smtpmsg='250 2.0.0 OK 1351258111 t7sm2651083eel.14' exitcode=EX_OK
~
Please, help
Comment