Detect tables with Provisiond SNMP detector

Description

The capsd SNMP protocol plugin can detect SNMP tables. The equivalent SNMP detector in Provisiond can only detect SNMP scalars. It should be possible to detect services based on informations from SNMP tables. The implementation of the following match types can help to give the necessary flexibility in real world applications.

match type --> result
------------------------------ EXIST --> Service detected if the table exist
ALL --> Service detected if ALL entries match an expected value
ANY --> Service detected if 1 or more entries match an expected value
NONE --> Service detected in the meaning of invert ALL

@Reader See this as suggestion, feel free for comments and feedback

Acceptance / Success Criteria

None

Attachments

4

Lucidchart Diagrams

Activity

Show:

Ronny Trommer March 31, 2016 at 7:43 AM

Compiled and tested looks good

Ronny Trommer March 30, 2016 at 6:33 AM

Migrated patch to pull request: https://github.com/OpenNMS/opennms/pull/669

Christian von Rockenthien February 12, 2015 at 11:28 AM

The same problem is still present in 14.0 and 15.0, without table scan can not regonize many services. For example, i habe HP ProLiant servers with differently equipped hard drives slots. The main oid for HDD is .1.3.6.1.4.1.232.3.2.5.1.1.6, the result for an server with slot 0 is :
iso.3.6.1.4.1.232.3.2.5.1.1.6.0.0 = INTEGER: 2
iso.3.6.1.4.1.232.3.2.5.1.1.6.0.1 = INTEGER: 2
iso.3.6.1.4.1.232.3.2.5.1.1.6.0.2 = INTEGER: 2
iso.3.6.1.4.1.232.3.2.5.1.1.6.0.3 = INTEGER: 2

Juergen Weiss January 31, 2015 at 10:57 AM

The attached patch seems to work. It adds tables and hex values

Mandeep Mann January 21, 2014 at 3:17 AM

Do we have any options here besides switching back to capsd?

Fixed

Details

Assignee

Reporter

Tracking Code

ORG

Components

Fix versions

Affects versions

Priority

PagerDuty

Created November 2, 2010 at 2:38 PM
Updated April 1, 2016 at 2:15 PM
Resolved April 1, 2016 at 10:17 AM