Solved Zabbix - email alerts
-
Do the logs tell you anything? Might easily be trying to use a PHP SMTP component that is not there or is not working.
-
@scottalanmiller said in Zabbix - email alerts:
We normally say "CentOS 7". CentOS is the OS family name. 3.10.0 is the Linux kernel version. We can deduce the OS from that, but it's not how it is said.
I read your post the other day and thought I need to be specific on the version. Which switch on the uname command tells us that it's CentOS?
I tried all the variations I could think of and couldn't get anything to spit out CentOS/RedHat/or something that I recognized. That's why I just pasted the output from uname -a.
-
@Mike-Davis said in Zabbix - email alerts:
I read your post the other day and thought I need to be specific on the version. Which switch on the uname command tells us that it's CentOS?
None, uname queries the kernel, not the OS.
-
@scottalanmiller said in Zabbix - email alerts:
None, uname queries the kernel, not the OS.
What's the command if you don't know that you're on RedHat or something else?
-
Here you go...
[root@zabbix ~]# cat /etc/redhat-release CentOS Linux release 7.3.1611 (Core)
-
Just for reference, the system is running postfix, not sendmail.
-
What settings are you using for SMTP and Office365?
-
@hobbit666 said in Zabbix - email alerts:
What settings are you using for SMTP and Office365?
-
@Mike-Davis I think I gave up trying to get the mail.protection thingy to work and ended up just using a mail box with port 587 and STARTTLS
-
@hobbit666 said in Zabbix - email alerts:
I think I gave up trying to get the mail.protection thingy to work and ended up just using a mail box with port 587 and STARTTLS
So install ssmpt and mailx and go about it that way? I could try that with a gmail account and see if I get anything that way.
-
@Mike-Davis said in Zabbix - email alerts:
@hobbit666 said in Zabbix - email alerts:
I think I gave up trying to get the mail.protection thingy to work and ended up just using a mail box with port 587 and STARTTLS
So install ssmpt and mailx and go about it that way? I could try that with a gmail account and see if I get anything that way.
Are you sure that that is needed? Does it even use Postfix? Have you tested it without that?
-
@Mike-Davis said in Zabbix - email alerts:
So install ssmpt and mailx and go about it that way?
mailx is a client app, not used for applications to send mail. That's just for you to send them by hand.
Do you have reason to believe that postfix doesn't have TLS capability by default? This is an enterprise OS here. Our matching system didn't need anything special to handle TLS to O365, right?
-
Postfix can most certainly use TLS.
-
@scottalanmiller said in Zabbix - email alerts:
Do the logs tell you anything?
I looked at the /var/log/zabbix/zabbix_server.log and didn't see anything related to email. What are the names of the other log files I should look at?
-
@Mike-Davis said in Zabbix - email alerts:
@scottalanmiller said in Zabbix - email alerts:
Do the logs tell you anything?
I looked at the /var/log/zabbix/zabbix_server.log and didn't see anything related to email. What are the names of the other log files I should look at?
Well normally /var/log/maillog, but it is completely empty prompting me to think that postfix is not being asked to send anything.
-
@Mike-Davis said in Zabbix - email alerts:
@scottalanmiller said in Zabbix - email alerts:
Do the logs tell you anything?
I looked at the /var/log/zabbix/zabbix_server.log and didn't see anything related to email. What are the names of the other log files I should look at?
/var/log/maillog
-
@scottalanmiller said in Zabbix - email alerts:
Our matching system didn't need anything special to handle TLS to O365, right?
right, that's why I set up the connector in o365. So I could send mail in on port 25 without authentication.
-
-
@Mike-Davis said in Zabbix - email alerts:
@JaredBusch said in Zabbix - email alerts:
/var/log/maillog
is empty.
Then it is not using
postfix
-
@scottalanmiller said in Zabbix - email alerts:
So install ssmpt and mailx and go about it that way? I could try that with a gmail account and see if I get anything that way.
Are you sure that that is needed?
Not sure it's needed. I was looking at this guide:
http://www.tecmint.com/configure-zabbix-to-send-email-alerts-to-gmail/