NetXMS Support Forum

English Support => General Support => Topic started by: redlam on October 11, 2024, 06:19:32 PM

Title: Timed Alarms Configuration
Post by: redlam on October 11, 2024, 06:19:32 PM
My goal is to have three alarms when a node goes down. One alarm after being down for 2 min, another alarm after being down 5 minutes, and a third alarm once the node has been down for 20 minutes. 

Once the node comes back on line then we get a node Up alert.

With my current setup this is all working with one snag. If a node goes down for less than 2 minutes and then comes back up I get a node up alert. Since the node was down for less than 2 minutes I never get the node down alert. 

Very similar to the issue in this post from 2012, but when I try to add the first script Netxms tells me its deprecated. 
https://www.netxms.org/forum/general-support/event-based-on-resolving-an-alarm-timeout/

I'm not familiar with scripting at all so I was hoping I could get this accomplished using some combo of event processing policies. Any help would be appreciated.



Title: Re: Timed Alarms Configuration
Post by: Victor Kirhenshtein on October 16, 2024, 02:50:48 PM
Screenshot below shows how we do it. Basic idea is not to send "node up" notification if timer for "node down" notification was not fired yet. Note that rule order is important in this setup.

Best regards,
Victor

Title: Re: Timed Alarms Configuration
Post by: Victor Kirhenshtein on October 16, 2024, 02:52:09 PM
rules_up_down.jpg
Title: Re: Timed Alarms Configuration
Post by: redlam on October 16, 2024, 10:17:50 PM
That was exactly what I needed. Thanks! Posting setup here for reference.

Node goes down.
2 minutes later slack alert goes out
5 minutes later slack alert goes out
20 minutes later slack alert goes out

If the node comes up prior to 2 minute alert, alarms are cleared and no alert is sent.