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

deleted interfaces are included in polling package ip lists

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 1.1.4
    • 1.9.8
    • Security Level: Default (Default Security Scheme)
    • Operating System: Linux
      Platform: PC
    • 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

            ranger Benjamin Reed
            ayres@net.orst.edu Bill Ayres (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: