Hello All,

Today I merged my changes into trunk from branch feature-new-threshold- visitor.

This changes solve Bug 3146 and adds a new feature for Pollerd in-line thresholding processing.

About the Bug 3146...

The old implementation couldn't maintain threshold's states across configuration reloading. The new implementation is more intelligent about that and can track:

a) If the configuration change is not related to currently triggered thresholds, just simple keep state. b) If the configuration changes is related to currently triggered thresholds, send a special rearm (with NaN as current value, and a new event parameter called reason with value: 'Configuration has been changed'), in order to keep automations working fine. After that, new configuration is merged to old one and new thresholds will use the new configuration correctly. c) If the configuration replaces currently triggered thresholds (for example, you change a high threshold for a low threshold), the procedure is similar to b).

About the new thresholding processor on Pollerd.

Now, you can add a special parameter called thresholding-enabled (like you usually add it on collectd-configuration.xml) on a service definition in poller-configuration.xml to enable thresholds processing; for example:

<service name="ICMP" interval="300000" user-defined="false" status="on">
  <parameter key="retry" value="2" />
  <parameter key="timeout" value="3000" />
<parameter key="rrd-repository" value="/opt/opennms/share/rrd/ response" />
  <parameter key="rrd-base-name" value="icmp" />
  <parameter key="ds-name" value="icmp" />
  <parameter key="thresholding-enabled" value="true" />
</service>

and then configure thresholds....

thresd-configuration.xml:

<package name="icmp-latency">
  <filter>IPADDR != '0.0.0.0'</filter>
  <include-range begin="1.1.1.1" end="254.254.254.254"/>
<service name="ICMP" interval="300000" user-defined="false" status="on">
    <parameter key="thresholding-group" value="icmp-latency"/>
  </service>
</package>

thresholds.xml:

<group name="icmp-latency" rrdRepository="/opt/opennms/share/rrd/ response/"> <threshold type="high" ds-type="if" value="200.0" rearm="100.0" trigger="1" ds-name="icmp"/>
</group>

Please test it and let me know if anyone found something wrong.

Regards,
Alejandro.

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-devel mailing list

To *unsubscribe* or change your subscription options, see the bottom of this 
page:
https://lists.sourceforge.net/lists/listinfo/opennms-devel

Reply via email to