Since my post I've made it one step closer! I was able to resolve my "certificate verify failed" by running the following:
Now when I run the script manually as root, the e-mail gets delivered! Yay!
Now, I can't seem to get the triggers to send the e-mail. Here is what I've done:
1. My script is called "zabbix_sendmail". I have it located in /etc/zabbix
2. I did the following commands to my script file:
I had to do the same thing with /usr/sbin/fping & /usr/sbin/fping6 to make the simple checks work, so I thought I may have to do it with this too. Here is what the output of ls -al is on the file:
3. I edited my /etc/zabbix/zabbix-server.conf file with the following:
I'm pretty sure only the first one is what i need, but I changed them both just in case.
4. I created a Media type called "Email via Google". For the type I chose "Script", and in the "Script Name" box I entered "zabbix_sendmail"
5. I have a simple ping trigger that I can change that will set off the trigger. When I do so, the trigger goes off, and on the dashboard under "Last 20 issues" I see the alert. In the "Actions" column there is a green "1". When I mouse over it all is says under "Status" is "Sent". The name has my name in it as expected.
However, I do not receive the e-mail. I'm relaying through Google. If I log in to the Google account that I'm relaying through I can see in my Sent Mail the test messages from when I was testing the script. However, the messages from Zabbix are not there.
I feel like I'm so close I can taste it! Anyone have any suggestions as to what I may be missing? Thank you!
Code:
zypper install ca-certificates ca-certificates-cacert zypper install ca-certificates-mozilla
Now, I can't seem to get the triggers to send the e-mail. Here is what I've done:
1. My script is called "zabbix_sendmail". I have it located in /etc/zabbix
2. I did the following commands to my script file:
Code:
chown root:zabbixs /etc/zabbix_sendmail chmod 4710 /etc/zabbix_sendmail
Code:
-rws--x--- 1 root zabbixs
Code:
AlertScriptsPath=/etc/zabbix ExternalScripts=/etc/zabbix
4. I created a Media type called "Email via Google". For the type I chose "Script", and in the "Script Name" box I entered "zabbix_sendmail"
5. I have a simple ping trigger that I can change that will set off the trigger. When I do so, the trigger goes off, and on the dashboard under "Last 20 issues" I see the alert. In the "Actions" column there is a green "1". When I mouse over it all is says under "Status" is "Sent". The name has my name in it as expected.
However, I do not receive the e-mail. I'm relaying through Google. If I log in to the Google account that I'm relaying through I can see in my Sent Mail the test messages from when I was testing the script. However, the messages from Zabbix are not there.
I feel like I'm so close I can taste it! Anyone have any suggestions as to what I may be missing? Thank you!
Comment