Zabbix Not Triggering Events and Not Sending Notification Emails

amazon-sesemailzabbix

I am new to Zabbix administration. Running it to monitor server resources on a linux machine. Setting up Email notifications against trigger's expression if System RAM goes below 40GB. Using Amazon SES for SMTP settings as mentioned in attached figure#1. In figure#2 it shows the action settings supposed to send email to abc@xyz.com.

  1. Zabbix is not triggering the events at first place.
  2. Zabbix is not sending emails using amazon SES

Please help me in figuring out what the issue and enable zabbix to send email properly.

enter image description here
enter image description here

Best Answer

I had the same problem with that sendEmail script. Put the $1, $2 and $3 variable in double quotes so it looks like this:

export zabbixemailto="$1"
export zabbixsubject="$2"
export zabbixbody="$3"

Without double quotes even whitespaces will give you problems, if they happen to be in subject and/or body of the message.