Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-9507

Using varbind to match event definition doesn't work (when using the same UEI in many definitions)

    Details

    • Sprint:
      Horizon - July 26th

      Description

      Similar to NMS-9496, let's say you want to have custom event content for the same event definition based on the content or partial content of a given trap varbind, for example, provide a custom operator instruction field, change the severity, use additional content on the description, etc.

      One way to do this is by creating multiple copies of the event in question, and add to each of this copies a custom varbind inside the maskekement that would have something like this:

      <varbind>
        <vbnumber>12</vbnumber>
        <vbvalue>~^Management server started.*</vbvalue>
      </varbind>

      Then, update the fields that should have a custom content like the operator instruction.

      The only requirement is that these events are placedĀ on a file referenced before the file on which the original event is defined; or if they are defined on the same file, the order is important. Of course, that also depends on how the matching is made.

      Similar to NMS-9496, HZN-978 has broken this feature, butĀ the fix for NMS-9496 took in consideration only the mask element, but not the varbinds inside of it.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                j-white Jesse White
                Reporter:
                agalue Alejandro Galue
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: