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

include-url doesn't work on poller packages

    Details

      Description

      The include-url statement should work like the specific statement on poller configurations; in other words, the following configuration:

      poller-configuration.xml
      <package name="example1">
          <filter>IPADDR != '0.0.0.0'</filter>
          <specific>100.0.0.1</specific>
          <specific>100.0.0.2</specific>
         …
      </package>
      

      should be equivalent to:

      poller-configuration.xml
      <package name="example1">
          <filter>IPADDR != '0.0.0.0'</filter>
          <include-url>file:/opt/opennms/etc/monitor.cfg</include-url>
         …
      </package>
      

      where,

      /opt/opennms/etc/monitor.cfg
      100.0.0.1
      100.0.0.2
      

      The problem is that it doesn't. The poller starts to poll everything ignoring the include-filter. The only workaround for the current code is adding a exclude-range like the following:

      workaround
      <package name="example1">
          <filter>IPADDR != '0.0.0.0'</filter>
          <exclude-range begin="1.1.1.1" end="254.254.254.254" />
          <include-url>file:/opt/opennms/etc/monitor.cfg</include-url>
         …
      </package>
      

        Attachments

          Activity

            People

            • Assignee:
              agalue Alejandro Galue
              Reporter:
              agalue Alejandro Galue
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: