NetXMS Support Forum

English Support => General Support => Topic started by: Benjamin Dill on November 24, 2024, 09:12:08 PM

Title: Correlate events using EPP?
Post by: Benjamin Dill on November 24, 2024, 09:12:08 PM
I saw a method "[correlateTo(eventId) ⇒ void" for events in the NXSL documentation.
Can I use this method in the Event Processing Policy to correlate events "manually" ? I can imagine a few scenarios for which this would be very useful.
Thanks in advance.
Title: Re: Correlate events using EPP?
Post by: Filipp Sudanov on November 28, 2024, 02:50:08 PM
This was intended to be done in Hook::EventProcessor hook script, that is executed before event is processed through EPP rules. But most probably this would also work from a EPP rule. 

This will set "correlated" flag on the event and EPP rules will not react to that event (except for the rules, which have "accept correlated events" checkbox set. 
If you have an alarm originating from the "main" event, then in details of that alarm you should see hierarchy of events.
Title: Re: Correlate events using EPP?
Post by: Benjamin Dill on November 28, 2024, 02:54:31 PM
Thank you, I will experiment with that!