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

Config-tester not validating varbind matching in event files

    XMLWordPrintable

    Details

      Description

      In an event file, there is the option to match on data in varbinds.
      Since the matching needs to have the varbind number AND the value to be matched, those 2 elements should be required. If they are required, the "config-tester" should test for those if one or the other is in the event configuration file.
      It currently does not.

      for example, this is attempting to match on 2 different varbinds and is correct syntax:
      :
      <varbind>
      <vbnumber>8</vbnumber>
      <vbvalue>~.ISDMCDWSS.</vbvalue>
      <vbvalue>ISDMCDWSS%</vbvalue>
      </varbind>
      <varbind>
      <vbnumber>4</vbnumber>
      <vbvalue>1</vbvalue>
      </varbind>

      The below is incorrect but the config-test script does not error out.

      <varbind>
      <vbvalue>~.ISDMCDWSS.</vbvalue>
      <vbvalue>ISDMCDWSS%</vbvalue>
      </varbind>
      <varbind>
      <vbnumber>4</vbnumber>
      <vbvalue>1</vbvalue>
      </varbind>

        Attachments

          Activity

            People

            • Assignee:
              patrick.schweizer Patrick Schweizer
              Reporter:
              jblake John Blake
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: