Make the severity element in event configuration an enumeration and fix our default config files

Description

Date Wed, 20 Feb 2008 1:31 PM
From "Ralph Waters" <rswaters@gmail.com>
To opennms-discuss@lists.sourceforge.net
Subject [opennms-discuss] event severity questions

After upgrading to 1.3.11, and merging my locally defined events, I
observed that some events files appear to have bogus severity
definitions.

If I read the documentation correctly, the only valid severities are:
Critical, Major, Minor, Warning, Normal, Cleared, Indeterminate

$OPENNMS/etc/events/ia.events.xml has some events defined with a
severity of Warn (should be Warning):
uei.opennms.org/nodes/nodeStatusServiceChanged
uei.opennms.org/nodes/nodeStatusServiceAdded
uei.opennms.org/nodes/nodeStatusServiceRemoved

$OPENNMS/etc/events/APC.Best.events.xml has an event defined with a
severity of Indeterminant (should be Indeterminate):
uei.opennms.org/vendor/APC/traps/apcBestGenericUnknownEvent

$OPENNMS/etc/events/APC.Exide.events.xml has an event defined with a
severity of Indeterminant (should be Indeterminate):
uei.opennms.org/vendor/APC/traps/xupsGenericUnknownEvent

$OPENNMS/etc/events/HP.events.xml has an event defined with a severity
of Nomral (should be Normal)
uei.opennns.org/vendor/HP/traps/snTrapL4GslbRemoteUp

Are these errors in the xml files? I can find no error messages being
logged about them.

Environment

Operating System: All Platform: All

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Seth Leger August 23, 2011 at 5:19 PM

I've fixed the typos in our eventconf files and I added a unit test to verify that invalid values are not present in the file at build time. Marking as fixed.

commit edac9d725ea42b169085a8641e82965131f84cc1

Riccardo Magliocchetti March 6, 2008 at 10:31 AM

Closed #2280 as duplicate, you may want to apply the patch that was attached to it that close half of the bug:

http://bugzilla.opennms.org/attachment.cgi?id=594&action=view

Riccardo Magliocchetti March 6, 2008 at 10:29 AM

DJ Gregor March 4, 2008 at 11:49 PM

Fixed

Details

Assignee

Reporter

Fix versions

Affects versions

Priority

PagerDuty

Created March 4, 2008 at 11:41 PM
Updated January 27, 2017 at 4:26 PM
Resolved August 23, 2011 at 5:19 PM

Flag notifications