Solved Zabbix - email alerts
-
-
@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/ -
@Mike-Davis said in Zabbix - email alerts:
@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.
I'm confused. Doesn't that mean the opposite of what I said?
-
@Mike-Davis said in Zabbix - email alerts:
@JaredBusch said in Zabbix - email alerts:
/var/log/maillog
is empty.
That's what I said
-
@Mike-Davis said in Zabbix - email alerts:
@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/Why? It's purpose is expressly to do something different from what we have today: "This tutorial will briefly discuss you on how to setup Zabbix server to send mail reports to a Gmail address by using SSMTP program, without the need to install and configure any local MTA daemon, such as Postfix, Exim etc."
We already have Postfix installed, running and you said that you tested it and it worked.
-
Let's stick to testing one thing at a time. Don't hit one hiccup and start ripping and replacing the entire email system. Chances are we are dealing with something really simple, like Zabbix isn't trying to send email or isn't trying to use the MTA. If we have to put SMTP details into Zabbix, it seems like it is trying to send directly without Postfix, otherwise it would use the Postfix settings, right?
-
@scottalanmiller
This command works:sendmail <myemailaddress>@ntg.co < /tmp/email.txt
That was to make sure that no firewalls or anything were getting in the way. That said, when I checked the headers, it didn't seem to connect directly to the o365 connector where I expected it to.
-
@scottalanmiller said in Zabbix - email alerts:
Let's stick to testing one thing at a time. Don't hit one hiccup and start ripping and replacing the entire email system. Chances are we are dealing with something really simple, like Zabbix isn't trying to send email or isn't trying to use the MTA. If we have to put SMTP details into Zabbix, it seems like it is trying to send directly without Postfix, otherwise it would use the Postfix settings, right?
I agree.
-
@Mike-Davis said in Zabbix - email alerts:
That was to make sure that no firewalls or anything were getting in the way. That said, when I checked the headers, it didn't seem to connect directly to the o365 connector where I expected it to.
Where did you expect it to? Should be TLS on Port 25.
-
Before we head down any rabbit holes, change the settings in Zabbix to send to port 25 on the local machine.
-
@scottalanmiller said in Zabbix - email alerts:
That was to make sure that no firewalls or anything were getting in the way. That said, when I checked the headers, it didn't seem to connect directly to the o365 connector where I expected it to.
Where did you expect it to? Should be TLS on Port 25.
scratch that. It did connect to protection.outlook.com
I don't think TLS is needed because the connector in o365 is just set to allow the connection by IP address.
-
@Mike-Davis said in Zabbix - email alerts:
@scottalanmiller said in Zabbix - email alerts:
That was to make sure that no firewalls or anything were getting in the way. That said, when I checked the headers, it didn't seem to connect directly to the o365 connector where I expected it to.
Where did you expect it to? Should be TLS on Port 25.
scratch that. It did connect to protection.outlook.com
I don't think TLS is needed because the connector in o365 is just set to allow the connection by IP address.
But Postfix is not configured for that, right? Only Zabbix is?
-
@scottalanmiller said in Zabbix - email alerts:
Before we head down any rabbit holes, change the settings in Zabbix to send to port 25 on the local machine.
so just set SMTP server to: localhost ?
-
@Mike-Davis said in Zabbix - email alerts:
@scottalanmiller said in Zabbix - email alerts:
Before we head down any rabbit holes, change the settings in Zabbix to send to port 25 on the local machine.
so just set SMTP server to: localhost ?
Yes, my guess is that it will just work. Right now you have it set to bypass Postfix (which you tested as working) and attempt to connect directly to O365. Which might work, but isn't tested. The MTA (Postfix) should just work and is sitting there waiting for mail to try to deliver. So my guess is that it will just work.
-
I made that change this morning and didn't get any emails, but I have to wonder if it's because no new triggers have been tripped or if it's not kicking out emails. I've tried to tweak some of the triggers so it would send a new alert, but nothing so far.
-
That makes it hard to test. No way to prompt an email test?
-
@scottalanmiller said in Zabbix - email alerts:
No way to prompt an email test?
I can't seem to find one.
-
Well that sucks. I guess we just wait, now
-
Couldn't you create a file on a host and make zabbix monitor that file, so when you manually erase the file and it will trigger an email?
That would be a manual way to test it in my opinion.