Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. [SOLVED] Unable to use macro %5 as key in event processing policy

[SOLVED] Unable to use macro %5 as key in event processing policy

Scheduled Pinned Locked Moved Support
5 Posts 2 Posters 17.8k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D
    D
    Dan
    wrote on last edited by
    #1

    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,
    Victor

    But, 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

    1 Reply Last reply
    0
    • D
      D
      Dan
      wrote on last edited by
      #2

      I forgot to mention that I am using 1.0.4.

      Best regards,
      Dan

      1 Reply Last reply
      0
      • V
        V
        Victor Kirhenshtein
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • D
          D
          Dan
          wrote on last edited by
          #4

          Hi!

          I think it is me that configured it wrong, I used %5 on my rearm, instead of %3.
          I will try this first just to ensure that it is not me.

          If it does not work I will try to explain my configuration 🙂

          Thank you for your answer!

          Best regards,
          Dan

          1 Reply Last reply
          0
          • D
            D
            Dan
            wrote on last edited by
            #5

            Seems like that was the problem, the difference between %5 when using it in a threshold and a rearm event.

            Thank you very much for your help!

            Best regards,
            Dan

            1 Reply Last reply
            0

            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
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            Powered by NodeBB Contributors
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups