Poll Filter is used to fine-tune the Data collection configuration. When Managed Objects are discovered, user can configure collection of performance data by using Poll Filter. Poll Filter essentially allows you to add/modify/delete PolledData which are created as a result of polling objects creation. Poll Filters can perform the following :
Existing PolledData can be modified.
New PolledData can be added for the Managed object.
Existing PolledData can be removed.
The Poll Filter Creation Wizard allows you to generate the stub code for the poll filter and will place the appropriate entry in the polling.filters file for invoking this filter in WebNMS
For more details on need for Poll Filter, refer to Writing Poll Filter in WebNMS Developer Guide.
Creating a poll Filter
Select the project or source folder in the Package Explorer, you can notice Create Poll Filter menu and icon get enabled. Alternatively, you can click the Create Poll Filter toolbar button.
Select WebNMS > Filters > Performance > Create Poll Filter menu.
"Poll Filter Creation Wizard" screen pops up.
In the Poll Filter Properties screen, enter the package name of the poll filter in the Package Name text field, enter the poll filter class name in the Filter Class Name text field.
Click Finish button.
You will find the <Poll Filter class> under <Your Project>/source folder in the Project Explorer window. This generated class is just the stub code implementing the PollFilter interface. The applyPollFilter method needs to be overwritten to manipulate the polled data as per your requirement. Also the appropriate entry for invoking this filter class is appended to the poll.filters file placed in <Your Project>/resources/conf directory.