I'm running zabbix-2.0.6-1.el6.x86_64, installed from the yum repository. I'm not able to get Zabbix to send email alerts.
Setting up the test.
1. Created host
2. Created user:
User is in the "Zabbix Administration" group.
My email address was added under the "media" tab.
When active: 1-7,00:00-24:00
Use of Severity: all checked
User type: Zabbix Super Admin
All host groups and hosts set to read/write.
3. Created an item: "Simple Check" icmpping[137.48.1.127,2]
4. Created a trigger: {server.example.com:icmpping[137.48.1.127,2].max(30)}<1
5. Set up email media device. From the Zabbix server email is routed through a local relay server.
SMTP Server: mailrelay.example.com
SMTP helo: example.com
SMTP email: [email protected]
6. Created "Mail Send" action.
Default Subject: {TRIGGER.STATUS} and {TRIGGER.NAME}
Default Message:
Trigger: {TRIGGER.NAME}
Trigger Status: {TRIGGER.STATUS}
Trigger Severity: {TRIGGER.SEVERITY}
Trigger URL: {TRIGGER.URL}
Left "Conditions" blank.
Under "Operations" added my user. Operation type "Send Message." Send only to email. Default message checked.
-------------------------------------------------------------------------------
I can "echo test | mail -s test [email protected]" and email goes out fine from the Zabbix server.
When I shut off the interface for server.example.com the Zabbix monitor shows down but I see no evidence in /var/log/maillog on the Zabbix server or on the mailrelay that any message is sent from the Zabbix monitoring service.
For the media type I've also tried:
SMTP Server: localhost
SMTP helo: localhost
SMTP email: [email protected]
What am I doing wrong?
Thanks,
Kent
Setting up the test.
1. Created host
2. Created user:
User is in the "Zabbix Administration" group.
My email address was added under the "media" tab.
When active: 1-7,00:00-24:00
Use of Severity: all checked
User type: Zabbix Super Admin
All host groups and hosts set to read/write.
3. Created an item: "Simple Check" icmpping[137.48.1.127,2]
4. Created a trigger: {server.example.com:icmpping[137.48.1.127,2].max(30)}<1
5. Set up email media device. From the Zabbix server email is routed through a local relay server.
SMTP Server: mailrelay.example.com
SMTP helo: example.com
SMTP email: [email protected]
6. Created "Mail Send" action.
Default Subject: {TRIGGER.STATUS} and {TRIGGER.NAME}
Default Message:
Trigger: {TRIGGER.NAME}
Trigger Status: {TRIGGER.STATUS}
Trigger Severity: {TRIGGER.SEVERITY}
Trigger URL: {TRIGGER.URL}
Left "Conditions" blank.
Under "Operations" added my user. Operation type "Send Message." Send only to email. Default message checked.
-------------------------------------------------------------------------------
I can "echo test | mail -s test [email protected]" and email goes out fine from the Zabbix server.
When I shut off the interface for server.example.com the Zabbix monitor shows down but I see no evidence in /var/log/maillog on the Zabbix server or on the mailrelay that any message is sent from the Zabbix monitoring service.
For the media type I've also tried:
SMTP Server: localhost
SMTP helo: localhost
SMTP email: [email protected]
What am I doing wrong?
Thanks,
Kent