Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-6383

Syslog Northbounder runs in a NullPointerException

    Details

    • Sprint:
      NMS Sprint 2

      Description

      I tried to build a minimal setup to use the Syslog-Northbounder to forward Alarms to a syslog server. I build a minimal setup on CentOS 6.5 with rsyslog. The configuration from my rsyslog daemon is attached on the issue. I've also attached my syslog-northbounder-configuration.xml. In my example the rsyslog server is running on localhost listening on TCP/127.0.0.1:514. Syslogd in OpenNMS is not running. The setup is just in a test environment so I don't filter UEI's and want to forward all generated OpenNMS Alarms to syslog. In Alarmd log file the following error message appears after creating an outage for a node by setting a null route to the IP address.

      2014-02-04 02:08:27,322 ERROR [SyslogNBI:org.opennms.netmgt.alarmd.northbounder.syslog.SyslogDestination@25f4a4c4-Thread] SyslogNorthbounder: Caught exception sending to destination: localTest
      java.lang.NullPointerException
              at org.opennms.netmgt.alarmd.northbounder.syslog.SyslogNorthbounder.buildParmMappings(SyslogNorthbounder.java:254)
              at org.opennms.netmgt.alarmd.northbounder.syslog.SyslogNorthbounder.createMapping(SyslogNorthbounder.java:242)
              at org.opennms.netmgt.alarmd.northbounder.syslog.SyslogNorthbounder.forwardAlarms(SyslogNorthbounder.java:170)
              at org.opennms.netmgt.alarmd.api.support.AbstractNorthbounder.run(AbstractNorthbounder.java:139)
              at java.lang.Thread.run(Thread.java:744)
      

      This issue can be verified running the OpenNMS Vagrant box and using the two configuration files attached to this issue. http://www.opennms.org/wiki/OpenNMS_and_Vagrant_with_VirtualBox

        Attachments

          Activity

            People

            • Assignee:
              agalue Alejandro Galue
              Reporter:
              indigo Ronny Trommer
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: