Details
-
Bug
-
Status: Resolved (View Workflow)
-
Major
-
Resolution: Fixed
-
None
-
None
-
Security Level: Default (Default Security Scheme)
-
tested on 21.0.1, 19.1.0
https://mynms.opennms.com/Ticket/Display.html?id=5420
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>