Creating a trigger/action to send test emails is cumbersome when troubleshooting because you have to keep resetting the trigger. It would be nice addition on the setup screen for eamil to have a "TEST" email button to fire off a quick test to verify SSL/SMTP type settings are working properly.
Ad Widget
Collapse
New Request: email test button
Collapse
X
-
A "Test Media" button was added at Zabbix 4.2.x.
See the release notes for 4.2.0, specifically the ZBXNEXT-1238 line: https://www.zabbix.com/rn/rn4.2.0
See also "Testing Media Types" area of the new features document: https://www.zabbix.com/documentation...ng_media_types
When I needed to do this in earlier versions, what I did was create a "Testing Alerts" template, with 3 items and 3 triggers in the template. The items were just
vfs.file.exists[/tmp/warning]
vfs.file.exists[/tmp/error]
vfs.file.exists[/tmp/disaster]
and one trigger for each item key, like
{Testing_Alerts:vfs.file.exists[/tmp/warning].last(0)}=1
Once I had that template created, all I had to do was assign it to a host and then
touch /tmp/warning
or "touch /tmp/error" or "touch /tmp/disaster" to cause the trigger to fire.
-
I did in fact create a quick template... was bothersome for a newbie though as I was still learning how items and triggers work. So i wouldn't be sure 100% if i messed up A, B, or part C when i didn't get an email.
I did see the "test" hyperlink on the far right... not sure how I missed it, looked everywhere. guess I was focused on finding a "button".
Thank you very much
Comment
-
You're welcome!
I understand completely about not knowing where the problem truly is, when everything is still pretty new.
I still sometimes get questions from other workgroups at my site that are either "did Zabbix detect this problem" or "did Zabbix send an alert about this problem", and the Monitoring->Problems window is always the first place I start. Once you understand what information is being displayed in that window, it can help you quickly determine which thing might be at fault (the trigger, the action, etc.).
-
Comment