Bug 966294
Summary: | RHQ-mib.txt definition file is invalid and missing SNMPv2 notification definition | ||
---|---|---|---|
Product: | [JBoss] JBoss Operations Network | Reporter: | Larry O'Leary <loleary> |
Component: | Plugin -- Other | Assignee: | Heiko W. Rupp <hrupp> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Mike Foley <mfoley> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | JON 3.1.2 | CC: | hrupp |
Target Milestone: | ER01 | ||
Target Release: | JON 3.2.0 | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-01-02 20:43:08 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Larry O'Leary
2013-05-23 00:06:52 UTC
Bug 614300 was supposed to introduce NOTIFICATION-TYPE in the RHQ-mib but instead redefined SNMPv2-MIB compliance level. Not sure how we missed this in our testing but 614300 did not do what it was supposed to. Bug 744262 introduced a new alert field named alertHierarchy. However, the MIB definition that was added uses OID .6 instead of OID .7. OID .6 belongs to alertUrl which is in error. The first few items are easy to fix - especially that duplicate OID. What is tricky is ./modules/enterprise/server/appserver/src/main/resources/etc/RHQ-mib.txt:130: [3] OBJECTS or NOTIFICATIONS member `coldStart' is not defined in this module as this coldStart has a pre-defined OID from the SNMPv2-MIB, which we import. If this is redefined to be declared in the file, it will have a different OID. If this stays as "coldStart", we get the warnings from smilint. We shouldn't be using coldStart. It is a notification provided by SNMPv2-MIB and I believe we probably copied this word-for-word from an example. Instead, see https://access.redhat.com/site/solutions/378503 for how this should be done. Obviously the knowledge solution describes how to create this in a custom/user defined MIB that extends our MIB but we should do the same in our own MIB ensuring that we use object names and numbers that are relevant to our own MIB. First cut is in master 4381d307b87 Further work after review meeting in 9356e5f This wiki page gives more details: https://docs.jboss.org/author/display/RHQ/SNMP+Trap+Notifications It also lists output from tcpdump and snmptrapd at the bottom As this is MODIFIED or ON_QA, setting milestone to ER1. |