Problems with the "events xml-files"

Description

I use the script "Jose Vicente Nunez Zuleta"( http://www.opennms.org/wiki/Converting_MIBs_Using_mib2opennms ), attached to a file mib2xml.sh and I'm having errors (described in the file start _error.log).

In the directory /var/www/html/temp/ are the original mib-files from the original equipment manufacturer (included in the file original_mibs.zip).

Archive original_mibs.zip an example of the original mib-files from the original equipment manufacturer, problems arise with any files from any manufacturer.

Directory /var/lib/mibs/ietf/ contains ietf mib-files downloaded by the command "wget -b -o /tmp/wget-log -nd -c -N -r -A txt http://www.icir.org/fenner/mibs/extracted/".

The file contains a list of files ietf_mibs.log in /var/lib/mibs/ietf/.

Environment

CentOS 5.7 x86, http://yum.opennms.org/stable/rhel5/opennms/i386/mib2opennms-0.3.0-1.i386.rpm

Acceptance / Success Criteria

None

Attachments

8

Lucidchart Diagrams

Activity

Show:

Keker Kirill January 15, 2012 at 11:56 PM

Thank you very much, problem solved fix the script and adding the parameter "-w" to mib2opennms.

Jeff Gehlbach January 15, 2012 at 4:50 PM

Resolving as a configuration problem.

Jeff Gehlbach January 15, 2012 at 4:48 PM

This is not a bug.

The problem is that you're not including the "-w" flag in the command line options to mib2opennms, and therefore mib2opennms is not wrapping all the <event> elements that it creates in a given file inside a root <events> tag. The resulting XML is therefore invalid since it has multiple root elements, and it's the invalid XML that Eventd is choking on at startup.

Configuration

Details

Assignee

Reporter

Components

Affects versions

Due date

Priority

PagerDuty

Created January 15, 2012 at 7:33 AM
Updated September 20, 2014 at 2:41 PM
Resolved January 15, 2012 at 4:50 PM