Poller package
Subscribe

From OpenNMS

Jump to: navigation, search

A "Poller Package" is OpenNMS' Idea of grouping IP addresses which are probed for Services. E.g. if you have 10 hosts which you want to be probed for SSH, you can create a poller package to explain that to OpenNMS.

Let's call the package "tenforssh":

  • poller-configuration.xml
<package name="tenforssh">
  • We do not use the Filter, so make it "all the world"
  <filter>IPADDR IPLIKE *.*.*.*</filter>
  • Load the hosts we want:
  <include-url>file:/etc/opennms/include/tenforssh.cfg</include-url>

tenforssh.cfg holds a list of IP Addresses (one per line) with the 10 hosts.

  • The info for RRD (..)
  <rrd step="3600">
    <rra>RRA:AVERAGE:0.5:1:744</rra>
    <rra>RRA:AVERAGE:0.5:24:366</rra>
    <rra>RRA:MIN:0.5:24:366</rra>
    <rra>RRA:MAX:0.5:24:366</rra>
   </rrd>
  • And now the SSH definition
  <service name="SSH" interval="300000" user-defined="false" status="on">
    <parameter key="retry" value="1"/>
    <parameter key="banner" value="SSH"/>
    <parameter key="port" value="22"/>
    <parameter key="timeout" value="3000"/>
    <parameter key="rrd-repository" value="/var/lib/opennms/rrd/response"/>
    <parameter key="ds-name" value="ssh"/>
  </service>
</package>

The webUI only shows the first package in poller-configuration.xml [1]. This is Bug 1963.