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

deleted interfaces are included in polling package ip lists

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.4
    • Fix Version/s: 1.9.8
    • Security Level: Default (Default Security Scheme)
    • Labels:
    • Environment:
      Operating System: Linux
      Platform: PC
    • Bugzilla Id:
      1077

      Description

      Creating the problem:
      Add a node and put it in a polling package via its assets page. Rescan the node
      and verify that it is polled. Delete the node and re-add it. This time, do not
      put it in a polling package. Notice that it is polled based on the assets entry
      for the node that was deleted.

      Fix: (this is probably an unacceptable kludge but it illustrates what is needed)
      in src/services/org/opennms/netmgt/filter/Filter.java, in
      public List getIPList(String rule), add a line as follows:

      // parse the rule and get the sql select statement
      //
      sqlString = getSQLStatement();
      + sqlString = sqlString + " AND ipInterface.isManaged!='D'";
      if (log.isDebugEnabled())
      log.debug("Filter: SQL statement: \n" + sqlString);

        Attachments

          Activity

            People

            • Assignee:
              ranger Benjamin Reed
              Reporter:
              ayres@net.orst.edu Bill Ayres
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: