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

No decode for nodelabel in nodeUp/nodeDown event

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.17, 1.10.5, 1.11.2
    • Fix Version/s: 1.10.9, 1.11.90
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None
    • Environment:
      Java 6

      Description

      the nodeDown/nodeUp events have no decoded nodelabel parms

      This has been fixed in 1.8 bades fetaures/TN branch

      MacBook-Pro-di-Antonio-Russo:opennms antonio$ git show ae82e28192635bec5483c380abf0d6b1f4119fca
      commit ae82e28192635bec5483c380abf0d6b1f4119fca
      Author: Antonio <rssntn67@yahoo.it>
      Date: Wed Feb 29 21:35:55 2012 +0100

      Fixed nodelabel event parms

      the nodeDown event has no nodelabel parms.

      diff --git a/opennms-services/src/main/java/org/opennms/netmgt/poller/DefaultPollContext.java b/opennms-services/src/main/java/org/opennms/net
      index f469211..743dd87 100644
      — a/opennms-services/src/main/java/org/opennms/netmgt/poller/DefaultPollContext.java
      +++ b/opennms-services/src/main/java/org/opennms/netmgt/poller/DefaultPollContext.java
      @@ -268,7 +268,7 @@ public class DefaultPollContext implements PollContext, EventListener {

      // For node level events (nodeUp/nodeDown) retrieve the
      // node's nodeLabel value and add it as a parm

      • else if (uei.equals(EventConstants.NODE_UP_EVENT_UEI)
        + if (uei.equals(EventConstants.NODE_UP_EVENT_UEI)
        uei.equals(EventConstants.NODE_DOWN_EVENT_UEI)) {

      String nodeLabel = this.getNodeLabel(nodeId);

        Attachments

          Activity

            People

            • Assignee:
              rssntn67 Antonio Russo
              Reporter:
              rssntn67 Antonio Russo
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: