Details
-
Bug
-
Status: Resolved (View Workflow)
-
Major
-
Resolution: Fixed
-
1.12.9, 14.0.3, Meridian-2015.1.0, 15.0.2
-
Security Level: Default (Default Security Scheme)
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>