Extend filter syntax to include isSnmpPrimary

Description

When defining filters for collectd/pollerd/notification/thresholds/etc, it is possible to filter on some IP Interface properties, but the isPrimarySnmp field is not accessible.

Acceptance / Success Criteria

None

Activity

Show:

Mark Mahacek August 1, 2023 at 10:30 PM

PR merged to update filter parameter list to include this field.

Mark Mahacek August 1, 2023 at 5:36 PM

Jeff Gehlbach August 1, 2023 at 3:45 PM

That field is in fact accessible, but because the is prefix is reserved in the parser for matching services, you have to use IsSnmpPrimary. From a real system just now:

admin@opennms()> filter "isSnmpPrimary = 'P'" No matching nodes/interfaces for this rule. admin@opennms()> filter "IsSnmpPrimary = 'P'" nodeId=1 nodeLabel=localhost location=Default IpAddresses: 127.0.0.1 admin@opennms()>

We should call out this oddity in the rule formats section of the configuration reference.

Done

Details

Assignee

Reporter

Doc Backlog Status

Doc Backlog Grooming Date

Priority

PagerDuty

Created July 7, 2023 at 8:26 PM
Updated August 1, 2023 at 10:30 PM
Resolved August 1, 2023 at 10:30 PM