+++++++++++++
SOLVED!!!


+++++++++++++
I finally gave up on the email notification route and went with a seperate alert script. Even this failed a bunch of times before I stumbled over a VERY useful clickpath in the UI: Monitoring ==> Events. I have no idea why the manual points you to the "audit" option, since there's absolutely NO useful troubleshooting information there. I was watching zabbix-server.log for clues to root cause for the failed sends, but my failure was happening at a deeper level. Once I found the event logs, I could see that there was an errant char in the config that I either fat-fingered or just missed somehow.
Sugestion to the Zabbix dox maintaniners: PLEASE point people to the event logs early. This is the best way to t-shoot problems. Thanks!
====================
OK, I decided to follow the advice suggested by user alledm in the thread linked below, and I think I'm almost there. This is the idea of using stunnel to connect to Google smtp. My stunnel.conf is OK afaik because the service starts up no problem, and I can telnet to G-smtp no problem (heh...I'm actually using the same cert I use for connecting to my nntp server). Not sure why there's an initial "conn refused" in the telnet spew--maybe that's a clue to why Zabby can't mail out. That seems unlikely, though, since the stunnel connection to G-smtp on port 25 succeeds:
OK, now...when I trigger an alarm event in Zabbix and tail the zabbix server log, I can see the server is trying to mail out but getting blocked:
So, it seems that Zabbix is configured OK, and stunnel is doing it's bit, so the blockage must be something like....ooh. I just had an idea: let me test this with iptables down. Be right back...
original thread:
SOLVED!!!



+++++++++++++
I finally gave up on the email notification route and went with a seperate alert script. Even this failed a bunch of times before I stumbled over a VERY useful clickpath in the UI: Monitoring ==> Events. I have no idea why the manual points you to the "audit" option, since there's absolutely NO useful troubleshooting information there. I was watching zabbix-server.log for clues to root cause for the failed sends, but my failure was happening at a deeper level. Once I found the event logs, I could see that there was an errant char in the config that I either fat-fingered or just missed somehow.
Sugestion to the Zabbix dox maintaniners: PLEASE point people to the event logs early. This is the best way to t-shoot problems. Thanks!
====================
OK, I decided to follow the advice suggested by user alledm in the thread linked below, and I think I'm almost there. This is the idea of using stunnel to connect to Google smtp. My stunnel.conf is OK afaik because the service starts up no problem, and I can telnet to G-smtp no problem (heh...I'm actually using the same cert I use for connecting to my nntp server). Not sure why there's an initial "conn refused" in the telnet spew--maybe that's a clue to why Zabby can't mail out. That seems unlikely, though, since the stunnel connection to G-smtp on port 25 succeeds:
Code:
$ telnet localhost 25 Trying ::1... Connection failed: Connection refused Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 220 mx.google.com ESMTP vf7sm9370940pbc.5 - gsmtp
Code:
7279:20140129:090128.618 executing housekeeper 7279:20140129:090128.653 housekeeper [deleted 361 hist/trends, 0 items, 0 events, 0 sessions, 0 alarms, 0 audit items in 0.034218 sec, idle 1 hour(s)] 7278:20140129:100058.849 cannot connect to SMTP server [localhost]: cannot connect to [[localhost]:25]: [111] Connection refused 7278:20140129:100058.864 cannot connect to SMTP server [localhost]: cannot connect to [[localhost]:25]: [111] Connection refused 7279:20140129:100128.653 executing housekeeper 7279:20140129:100128.868 housekeeper [deleted 361 hist/trends, 0 items, 0 events, 0 sessions, 0 alarms, 0 audit items in 0.214758 sec, idle 1 hour(s)] 7278:20140129:100128.882 cannot connect to SMTP server [localhost]: cannot connect to [[localhost]:25]: [111] Connection refused 7278:20140129:100128.912 cannot connect to SMTP server [localhost]: cannot connect to [[localhost]:25]: [111] Connection refused 7278:20140129:100158.931 cannot connect to SMTP server [localhost]: cannot connect to [[localhost]:25]: [111] Connection refused 7278:20140129:100158.946 cannot connect to SMTP server [localhost]: cannot connect to [[localhost]:25]: [111] Connection refused
original thread:



Comment