I have configured Items that PING my servers every 15 minutes. If a server does not respond, this triggers an "Unavailable by ICMP PING" and an action looks for this condition then sends me an email (or SMS). So every 15 minutes I get a "Host Down" email. A notification every 15 minutes, results in 16 notifications over 4 hours (for example). If the problem is resolved, I get 16 emails telling me the problem has been resolved (one for each problem, even though all the problems are the same). How do I get Zabbix to only send one email when it resolves 16 problems that are all the same?
Ad Widget
Collapse
Stop Recovery Operation sending more than one Notification
Collapse
X
-
Item (Name "ICMP PING", Type "Simple Check", Key "icmpping", Type of Information "Numeric Unsigned", Update Interval "15m"), Trigger (Name "Unavailable by ICMP PING", Expression "{sonusSBC:icmpping.max(#3)}=0", PROBLEM event generation mode "Multiple"), Action (Name "Device Offline", Conditions "Trigger name contains Unavailable by ICMP PING" and "Host group equals Devices"), Operations (Step duration "1h", Send message to specified user by email), Recovery Operation (Send message to specified user by email) -
What I would like to figure out is how to create an item that PING's a host every 15 minutes. If the host does not reply, generate a PROBLEM. Keep checking every 15 minutes and send a message if still offline, but don't generate a new PROBLEM if one already exists. Once the problem has been resolved, the recovery will RESOLVE the single problem and a message will be sent to tell the admins that the problem is resolved. So, the current issue I have is that a new PROBLEM is generated every 15 minutes while the device is offline. Setting the PROBLEM event generation mode to "Single" only generates one problem, which is great, but then I'm not reminded every 15 minutes that the host is still down, so I could miss the initial alert if the message gets lost in a busy mailbox.Comment
-
Thank you. Seems so simple and obvious now that you have pointed me in the right direction. Set PROBLEM event generation to Single, then configure the action to send repeated notifications (1 - 0) until the PROBLEM is resolved. Admittedly, I did not understand how the "Steps" and "Step Duration" affected how many and often a notification is sent. Thanks again, going to review all my triggers and actions now.Comment
-
Working exactly as I had hoped. I now get a single PROBLEM event when there is a problem. I have configured the Action to send a single SMS and email (Step 1 - 1), then send an email every hour (Step 2 - 0) until the problem has been resolved. When the problem is resolved, I now get a single SMS and Email. Much better. Thank youComment
-
This is more clear. You item is already checking every 15 minutes. But as you have "PROBLEM event generation mode "Multiple"", then each time new value comes, new event is fired.
To get, what you seek for, you should set event generation to single event and let you action to repeat the notification in 15m intervals. Set steps 1-0 (0 means infinitely, until this problem is "active" keep sending in "step duration intervals").
Look at examples in docs about escalations https://www.zabbix.com/documentation...on/escalationsComment
Comment