[SOLVED] Unable to use macro %5 as key in event processing policy
-
Hi!
I found this in the forum, which is a great way to differentiate events:
@victor said in Event Processing Policy:
Hi!
I would suggest to change alarm key in your configuration for %m (message text) to DC_%i_%5 - that would create separate alarms for different nodes, even if they have same message text. But anyway, that is not important for sending e-mails. From information you have sent it is not clear why you getting e-mail only for 1 DCI - I should see configuration and values of all 4 DCIs. Also, was it your intention to send e-mails every minute as long as there are files matching filter?
Best regards,
VictorBut, when I use it in already existing events in my event processing policy, it is blank.
If I try to set it as a text message, the macro parameter is shown as a blank, i.e null or nothing.I configure the DCI that uses these events from a template that distributes to my nodes.
When I create a new DCI on one of my nodes, not through a template, and then test it, the macro %5 shows output, which I think is the correct one.
Could there be a problem because I use a template?
Best regards,
Dan -
-
Hi!
All %number macros are event-dependent. %5 will be DCI ID for threshold violation events. However, for threshold rearm events DCI ID will be %3 (I know that it's confusing, but unfortunately this cannot be changed without breaking backward compatibility). There should not be any difference on how DCI was created - directly on the node or via template.
Could you please provide more details about your configuration (DCI thresholds configuration, event policy rule)?Best regards,
Victor -
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login