Discussion:
[opennms-discuss] Latency Thresholding
David Poole
2017-06-12 17:37:48 UTC
Permalink
The documentation Wiki for OpenNMS is woefully out of date by nearly three
years and no longer applies to any version above 17.0 (at least). For
example, the Wiki entry on thresholding for latency says to modify the
*threshd-configuration.xml* file and comment out the <thresholder
service="ICMP" class-name="org.opennms.netmgt.threshd.LatencyThresholder" />
line - this doesn't even exist in that file.

As such, I am unable to accomplish setting up latency thresholding for
devices I am currently monitoring by following the examples on the Wiki.

Is there anyone who has successfully set up latency thresholding and
alerting notifications in the later versions of OpenNMS? If so, how
exactly is it done?

Scenario: four different routers across WAN all have unique thresholds for
latency. Need to alert on those specific thresholds.


Thank you,

David
Alejandro Galue
2017-06-12 17:43:39 UTC
Permalink
The documentation Wiki for OpenNMS is woefully out of date by nearly three years and no longer applies to any version above 17.0 (at least). For example, the Wiki entry on thresholding for latency says to modify the threshd-configuration.xml file and comment out the <thresholder service="ICMP" class-name="org.opennms.netmgt.threshd.LatencyThresholder" /> line - this doesn't even exist in that file.
As such, I am unable to accomplish setting up latency thresholding for devices I am currently monitoring by following the examples on the Wiki.
Is there anyone who has successfully set up latency thresholding and alerting notifications in the later versions of OpenNMS? If so, how exactly is it done?
Scenario: four different routers across WAN all have unique thresholds for latency. Need to alert on those specific thresholds.
Try the following, which has been written a long time ago and it is still valid:

https://wiki.opennms.org/wiki/Thresholding_Tutorial#Activate_Thresholds_for_Pollerd <https://wiki.opennms.org/wiki/Thresholding_Tutorial#Activate_Thresholds_for_Pollerd>

Alejandro Galue
***@opennms.org <mailto:***@opennms.org>
PGP Key Fingerprint: 5293 6234 1E75 DF30 7821 1823 87AF 972E DAF8 BE2C
David Poole
2017-06-12 17:56:47 UTC
Permalink
Thank you for the response, but I am afraid that does not do anything in
regards to thresholding other than "activate" the feature for ICMP. There
is no information on how to properly configure it with the current version
of OpenNMS.

Is there anyone who has successfully set up ICMP latency thresholding or am
I looking at the wrong NMS product?
Post by David Poole
The documentation Wiki for OpenNMS is woefully out of date by nearly three
years and no longer applies to any version above 17.0 (at least). For
example, the Wiki entry on thresholding for latency says to modify the
*threshd-configuration.xml* file and comment out the <thresholder
service="ICMP" class-name="org.opennms.netmgt.threshd.LatencyThresholder" />
line - this doesn't even exist in that file.
As such, I am unable to accomplish setting up latency thresholding for
devices I am currently monitoring by following the examples on the Wiki.
Is there anyone who has successfully set up latency thresholding and
alerting notifications in the later versions of OpenNMS? If so, how
exactly is it done?
Scenario: four different routers across WAN all have unique thresholds
for latency. Need to alert on those specific thresholds.
https://wiki.opennms.org/wiki/Thresholding_Tutorial#Activate_Thresholds_for_Pollerd
Alejandro Galue
PGP Key Fingerprint: 5293 6234 1E75 DF30 7821 1823 87AF 972E DAF8 BE2C
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-discuss mailing list
To *unsubscribe* or change your subscription options, see the bottom of
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
Dino Yancey
2017-06-12 18:31:28 UTC
Permalink
I haven't, but i haven't tried, either.

Glancing at the config, I would start by enabling thresholding on the
ICMP service as described above. After that, I would create a new
thresholding package "ICMP" in threshd-configuration.xml, followed by
a thresholding group "ICMP" in thresholds.xml. From there, it should
just be a matter of creating the threshold for the ICMP datasource via
the web interface.

If you need unique thresholds per device, create individual packages
in threshd-configuration.xml with filters specific to each device,
with corresponding thresholding groups. Create the thresholds per
group with individual response time values. Make sure the
thresholding groups use the same rrd repository path as defined in
poller-configuration (typically /opt/opennms/share/rrd/response/ for
response time rrds)

On Mon, Jun 12, 2017 at 12:56 PM, David Poole
Post by David Poole
Thank you for the response, but I am afraid that does not do anything in
regards to thresholding other than "activate" the feature for ICMP. There
is no information on how to properly configure it with the current version
of OpenNMS.
Is there anyone who has successfully set up ICMP latency thresholding or am
I looking at the wrong NMS product?
Post by David Poole
The documentation Wiki for OpenNMS is woefully out of date by nearly three
years and no longer applies to any version above 17.0 (at least). For
example, the Wiki entry on thresholding for latency says to modify the
threshd-configuration.xml file and comment out the <thresholder
service="ICMP" class-name="org.opennms.netmgt.threshd.LatencyThresholder" />
line - this doesn't even exist in that file.
As such, I am unable to accomplish setting up latency thresholding for
devices I am currently monitoring by following the examples on the Wiki.
Is there anyone who has successfully set up latency thresholding and
alerting notifications in the later versions of OpenNMS? If so, how exactly
is it done?
Scenario: four different routers across WAN all have unique thresholds
for latency. Need to alert on those specific thresholds.
https://wiki.opennms.org/wiki/Thresholding_Tutorial#Activate_Thresholds_for_Pollerd
Alejandro Galue
PGP Key Fingerprint: 5293 6234 1E75 DF30 7821 1823 87AF 972E DAF8 BE2C
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org!
http://sdm.link/slashdot_______________________________________________
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-discuss mailing list
To *unsubscribe* or change your subscription options, see the bottom of
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-discuss mailing list
To *unsubscribe* or change your subscription options, see the bottom of this
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-discuss mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
David Poole
2017-06-12 18:52:53 UTC
Permalink
Dino,

Thank you - the problem, however, is that there is no consistent
documentation on how to do exactly what you just stated. Even the order
you laid out wasn't properly documented.

For example; you mentioned creating the threshold group for the ICMP
datasource via the GUI. However, the thresholds are also defined in the
groups in *thresholds.xml*.

I'll try in the order you suggested and see what happens.


Thank you again.

-David
Post by Dino Yancey
I haven't, but i haven't tried, either.
Glancing at the config, I would start by enabling thresholding on the
ICMP service as described above. After that, I would create a new
thresholding package "ICMP" in threshd-configuration.xml, followed by
a thresholding group "ICMP" in thresholds.xml. From there, it should
just be a matter of creating the threshold for the ICMP datasource via
the web interface.
If you need unique thresholds per device, create individual packages
in threshd-configuration.xml with filters specific to each device,
with corresponding thresholding groups. Create the thresholds per
group with individual response time values. Make sure the
thresholding groups use the same rrd repository path as defined in
poller-configuration (typically /opt/opennms/share/rrd/response/ for
response time rrds)
On Mon, Jun 12, 2017 at 12:56 PM, David Poole
Post by David Poole
Thank you for the response, but I am afraid that does not do anything in
regards to thresholding other than "activate" the feature for ICMP.
There
Post by David Poole
is no information on how to properly configure it with the current
version
Post by David Poole
of OpenNMS.
Is there anyone who has successfully set up ICMP latency thresholding or
am
Post by David Poole
I looking at the wrong NMS product?
Post by David Poole
The documentation Wiki for OpenNMS is woefully out of date by nearly
three
Post by David Poole
Post by David Poole
years and no longer applies to any version above 17.0 (at least). For
example, the Wiki entry on thresholding for latency says to modify the
threshd-configuration.xml file and comment out the <thresholder
service="ICMP"
class-name="org.opennms.netmgt.threshd.LatencyThresholder" />
Post by David Poole
Post by David Poole
line - this doesn't even exist in that file.
As such, I am unable to accomplish setting up latency thresholding for
devices I am currently monitoring by following the examples on the Wiki.
Is there anyone who has successfully set up latency thresholding and
alerting notifications in the later versions of OpenNMS? If so, how
exactly
Post by David Poole
Post by David Poole
is it done?
Scenario: four different routers across WAN all have unique thresholds
for latency. Need to alert on those specific thresholds.
Try the following, which has been written a long time ago and it is
still
https://wiki.opennms.org/wiki/Thresholding_Tutorial#Activate_Thresholds_for_Pollerd
Post by David Poole
Post by David Poole
Alejandro Galue
PGP Key Fingerprint: 5293 6234 1E75 DF30 7821 1823 87AF 972E DAF8 BE2C
------------------------------------------------------------------------------
Post by David Poole
Post by David Poole
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org!
http://sdm.link/slashdot_______________________________________________
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-discuss mailing list
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
------------------------------------------------------------------------------
Post by David Poole
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-discuss mailing list
To *unsubscribe* or change your subscription options, see the bottom of
this
Post by David Poole
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-discuss mailing list
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
Marcel Fuhrmann
2017-06-12 19:17:54 UTC
Permalink
This config works, You nodes have to be member of surveillance category "TH-NETWORK-LATENCY-H-30".


threshd-config.xml

<package name="TH-NETWORK-LATENCY-H-30">
<filter>categoryname == 'TH-NETWORK-LATENCY-H-30'</filter>
<include-range begin="1.1.1.1" end="254.254.254.254"/>
<include-range begin="::1" end="ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff"/>
<service name="ICMP" interval="60000" user-defined="true" status="on">
<parameter key="thresholding-group" value="TH-NETWORK-LATENCY-H-30"/>
</service>
</package>

thresholds.xml
<group name="TH-NETWORK-LATENCY-H-30" rrdRepository="/var/lib/opennms/rrd/response/">
<expression description="above 30ms, rearm 15ms" type="high"
ds-type="if" value="30.0" rearm="15.0" trigger="5"
ds-label="icmp"
triggeredUEI="uei.opennms.org/threshold/network/latency/high/warning/exceeded"
rearmedUEI="uei.opennms.org/threshold/network/latency/high/warning/rearmed"
filterOperator="or" expression="icmp / 1000"/>
</group>

poller-configuration.xml
<service name="ICMP" interval="60000" user-defined="false" status="on">
<parameter key="retry" value="2"/>
<parameter key="timeout" value="3000"/>
<parameter key="rrd-repository" value="/var/lib/opennms/rrd/response"/>
<parameter key="rrd-base-name" value="icmp"/>
<parameter key="ds-name" value="icmp"/>
<parameter key="thresholding-enabled" value="true"/>
</service>
Dino,
Thank you - the problem, however, is that there is no consistent documentation on how to do exactly what you just stated. Even the order you laid out wasn't properly documented.
For example; you mentioned creating the threshold group for the ICMP datasource via the GUI. However, the thresholds are also defined in the groups in thresholds.xml.
I'll try in the order you suggested and see what happens.
Thank you again.
-David
Post by Dino Yancey
Post by Dino Yancey
I haven't, but i haven't tried, either.
Glancing at the config, I would start by enabling thresholding on the
ICMP service as described above. After that, I would create a new
thresholding package "ICMP" in threshd-configuration.xml, followed by
a thresholding group "ICMP" in thresholds.xml. From there, it should
just be a matter of creating the threshold for the ICMP datasource via
the web interface.
If you need unique thresholds per device, create individual packages
in threshd-configuration.xml with filters specific to each device,
with corresponding thresholding groups. Create the thresholds per
group with individual response time values. Make sure the
thresholding groups use the same rrd repository path as defined in
poller-configuration (typically /opt/opennms/share/rrd/response/ for
response time rrds)
On Mon, Jun 12, 2017 at 12:56 PM, David Poole
Post by Dino Yancey
Thank you for the response, but I am afraid that does not do anything in
regards to thresholding other than "activate" the feature for ICMP. There
is no information on how to properly configure it with the current version
of OpenNMS.
Is there anyone who has successfully set up ICMP latency thresholding or am
I looking at the wrong NMS product?
Post by David Poole
The documentation Wiki for OpenNMS is woefully out of date by nearly three
years and no longer applies to any version above 17.0 (at least). For
example, the Wiki entry on thresholding for latency says to modify the
threshd-configuration.xml file and comment out the <thresholder
service="ICMP" class-name="org.opennms.netmgt.threshd.LatencyThresholder" />
line - this doesn't even exist in that file.
As such, I am unable to accomplish setting up latency thresholding for
devices I am currently monitoring by following the examples on the Wiki.
Is there anyone who has successfully set up latency thresholding and
alerting notifications in the later versions of OpenNMS? If so, how exactly
is it done?
Scenario: four different routers across WAN all have unique thresholds
for latency. Need to alert on those specific thresholds.
Try the following, which has been written a long time ago and it is still
https://wiki.opennms.org/wiki/Thresholding_Tutorial#Activate_Thresholds_for_Pollerd
Alejandro Galue
PGP Key Fingerprint: 5293 6234 1E75 DF30 7821 1823 87AF 972E DAF8 BE2C
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org!
http://sdm.link/slashdot_______________________________________________
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-discuss mailing list
To *unsubscribe* or change your subscription options, see the bottom of
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-discuss mailing list
To *unsubscribe* or change your subscription options, see the bottom of this
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-discuss mailing list
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
Post by Dino Yancey
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot_______________________________________________
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-discuss mailing list
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
David Poole
2017-06-12 20:13:13 UTC
Permalink
Thank you Marcel, I'll give that a shot.

-David
Post by Marcel Fuhrmann
This config works, You nodes have to be member of surveillance category
"TH-NETWORK-LATENCY-H-30".
threshd-config.xml
<package name="TH-NETWORK-LATENCY-H-30">
<filter>categoryname == 'TH-NETWORK-LATENCY-H-30'</filter>
<include-range begin="1.1.1.1" end="254.254.254.254"/>
<include-range begin="::1" end="ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff"/>
<service name="ICMP" interval="60000" user-defined="true" status="on">
<parameter key="thresholding-group" value="TH-NETWORK-LATENCY-H-30"/>
</service>
</package>
thresholds.xml
<group name="TH-NETWORK-LATENCY-H-30"
rrdRepository="/var/lib/opennms/rrd/response/">
<expression description="above 30ms, rearm 15ms" type="high"
ds-type="if" value="30.0" rearm="15.0" trigger="5"
ds-label="icmp"
triggeredUEI="
uei.opennms.org/threshold/network/latency/high/warning/exceeded"
rearmedUEI="uei.opennms.org/threshold/network/latency/high/warning/rearmed
"
filterOperator="or" expression="icmp / 1000"/>
</group>
poller-configuration.xml
<service name="ICMP" interval="60000" user-defined="false" status="on">
<parameter key="retry" value="2"/>
<parameter key="timeout" value="3000"/>
<parameter key="rrd-repository" value="/var/lib/opennms/rrd/response"/>
<parameter key="rrd-base-name" value="icmp"/>
<parameter key="ds-name" value="icmp"/>
<parameter key="thresholding-enabled" value="true"/>
</service>
Dino,
Thank you - the problem, however, is that there is no consistent
documentation on how to do exactly what you just stated. Even the order
you laid out wasn't properly documented.
For example; you mentioned creating the threshold group for the ICMP
datasource via the GUI. However, the thresholds are also defined in the
groups in *thresholds.xml*.
I'll try in the order you suggested and see what happens.
Thank you again.
-David
Post by Dino Yancey
I haven't, but i haven't tried, either.
Glancing at the config, I would start by enabling thresholding on the
ICMP service as described above. After that, I would create a new
thresholding package "ICMP" in threshd-configuration.xml, followed by
a thresholding group "ICMP" in thresholds.xml. From there, it should
just be a matter of creating the threshold for the ICMP datasource via
the web interface.
If you need unique thresholds per device, create individual packages
in threshd-configuration.xml with filters specific to each device,
with corresponding thresholding groups. Create the thresholds per
group with individual response time values. Make sure the
thresholding groups use the same rrd repository path as defined in
poller-configuration (typically /opt/opennms/share/rrd/response/ for
response time rrds)
On Mon, Jun 12, 2017 at 12:56 PM, David Poole
Post by David Poole
Thank you for the response, but I am afraid that does not do anything in
regards to thresholding other than "activate" the feature for ICMP.
There
Post by David Poole
is no information on how to properly configure it with the current
version
Post by David Poole
of OpenNMS.
Is there anyone who has successfully set up ICMP latency thresholding
or am
Post by David Poole
I looking at the wrong NMS product?
Post by David Poole
The documentation Wiki for OpenNMS is woefully out of date by nearly
three
Post by David Poole
Post by David Poole
years and no longer applies to any version above 17.0 (at least). For
example, the Wiki entry on thresholding for latency says to modify the
threshd-configuration.xml file and comment out the <thresholder
service="ICMP"
class-name="org.opennms.netmgt.threshd.LatencyThresholder" />
Post by David Poole
Post by David Poole
line - this doesn't even exist in that file.
As such, I am unable to accomplish setting up latency thresholding for
devices I am currently monitoring by following the examples on the
Wiki.
Post by David Poole
Post by David Poole
Is there anyone who has successfully set up latency thresholding and
alerting notifications in the later versions of OpenNMS? If so, how
exactly
Post by David Poole
Post by David Poole
is it done?
Scenario: four different routers across WAN all have unique thresholds
for latency. Need to alert on those specific thresholds.
Try the following, which has been written a long time ago and it is
still
https://wiki.opennms.org/wiki/Thresholding_Tutorial#Activate_Thresholds_for_Pollerd
Post by David Poole
Post by David Poole
Alejandro Galue
PGP Key Fingerprint: 5293 6234 1E75 DF30 7821 1823 87AF 972E DAF8 BE2C
------------------------------------------------------------------------------
Post by David Poole
Post by David Poole
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org!
http://sdm.link/slashdot_______________________________________________
Post by David Poole
Post by David Poole
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-discuss mailing list
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
------------------------------------------------------------------------------
Post by David Poole
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-discuss mailing list
To *unsubscribe* or change your subscription options, see the bottom of
this
Post by David Poole
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-discuss mailing list
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org!
http://sdm.link/slashdot_______________________________________________
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-discuss mailing list
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
David Poole
2017-06-14 17:02:04 UTC
Permalink
Marcel,

Unfortunately, it isn't working. However, I have made some changes to it
for our environment:

I used a different filter, instead of *categoryname*, I did *IPADDR*, which
is the IP address of the device being monitored.
When I look at the Latency graph, I am seeing the value being exceeded yet
I am not getting any alerts in the OpenNMS console nor am I receiving email
messages like I do when a node is down.

*threshd-configuration.xml:*

<package name="ACME-TN1-Latency">
<filter>IPADDR == '10.31.200.252'</filter>
<include-range begin="10.31.200.1" end="10.31.200.254"/>
<include-range begin="::1" end="ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff"/>
<service name="ICMP" interval="300000" user-defined="true" status="on">
<parameter key="thresholding-group" value="ACME-TN1-Latency"/>
</service>
</package>


*thresholds.xml:*

<group name="ACME-TN1-Latency"
rrdRepository="/var/lib/opennms/rrd/response/">
<expression description="TN1 Latency, Above 73ms, rearm 69ms"
type="high" ds-type="if" value="65.0" rearm="60.0" trigger="2"
ds-label="icmp" triggeredUEI="
uei.opennms.org/ACME/latency/high/warning/exceeded" rearmedUEI="
uei.opennms.org/ACME/latency/high/warning/rearmed" filterOperator="or"
expression="icmp / 1000"/>
</group>

(note, to test I changed the *value *to 65.0 and the *rearm *to 60 and
the *trigger
*to 2 where I would normally have 73, 69 and 6 respectively)


*poller-configuration.xml*:

<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>


*\etc\events\opennms.events.xml:*

<event>
<uei>uei.opennms.org/ACME/latency/high/warning/exceeded</uei>
<event-label>OpenNMS-ACME threshold event:
highThresholdExceeded</event-label>
<descr>
&lt;p&gt;High threshold exceeded for %service%
datasource
%parm[ds]% on interface %interface%, parms:
%parm[all]%&lt;/p&gt;
&lt;p&gt;This specific event indicates that a
high threshold was exceeded.&lt;/p&gt;
</descr>
<logmsg dest="logndisplay">
High threshold exceeded for %service% datasource %parm[ds]% on
interface
%interface%, parms: %parm[all]%
</logmsg>
<severity>Minor</severity>
<alarm-data
reduction-key="%uei%:%dpname%:%nodeid%:%interface%:%parm[ds]%:%parm[threshold]%:%parm[trigger]%:%parm[rearm]%:%parm[label]%"
alarm-type="1" auto-clean="false"/>
</event>
<event>
<uei>uei.opennms.org/ACME/latency/high/warning/rearmed</uei>
<event-label>OpenNMS-ACME threshold event:
highThresholdRearmed</event-label>
<descr>
&lt;p&gt;High threshold has been rearmed for
%service% datasource
%parm[ds]% on interface %interface%, parms:
%parm[all]%&lt;/p&gt;
&lt;p&gt;This specific event indicates that a
high threshold was exceeded but then dropped below
the rearm threshold..&lt;/p&gt;
</descr>
<logmsg dest="logndisplay">
High threshold rearmed for %service% datasource
%parm[ds]% on interface
%interface%, parms: %parm[all]%
</logmsg>
<severity>Normal</severity>
<alarm-data
reduction-key="%uei%:%dpname%:%nodeid%:%interface%:%parm[ds]%:%parm[threshold]%:%parm[trigger]%:%parm[rearm]%:%parm[label]%"
alarm-type="2" clear-key="
uei.opennms.org/threshold/highThresholdExceeded:%dpname%:%nodeid%:%interface%:%parm[ds]%:%parm[threshold]%:%parm[trigger]%:%parm[rearm]%:%parm[label]%"
auto-clean="false"/>
</event>


any help would be appreciated.

-David
Post by Marcel Fuhrmann
This config works, You nodes have to be member of surveillance category
"TH-NETWORK-LATENCY-H-30".
threshd-config.xml
<package name="TH-NETWORK-LATENCY-H-30">
<filter>categoryname == 'TH-NETWORK-LATENCY-H-30'</filter>
<include-range begin="1.1.1.1" end="254.254.254.254"/>
<include-range begin="::1" end="ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff"/>
<service name="ICMP" interval="60000" user-defined="true" status="on">
<parameter key="thresholding-group" value="TH-NETWORK-LATENCY-H-30"/>
</service>
</package>
thresholds.xml
<group name="TH-NETWORK-LATENCY-H-30"
rrdRepository="/var/lib/opennms/rrd/response/">
<expression description="above 30ms, rearm 15ms" type="high"
ds-type="if" value="30.0" rearm="15.0" trigger="5"
ds-label="icmp"
triggeredUEI="
uei.opennms.org/threshold/network/latency/high/warning/exceeded"
rearmedUEI="uei.opennms.org/threshold/network/latency/high/warning/rearmed
"
filterOperator="or" expression="icmp / 1000"/>
</group>
poller-configuration.xml
<service name="ICMP" interval="60000" user-defined="false" status="on">
<parameter key="retry" value="2"/>
<parameter key="timeout" value="3000"/>
<parameter key="rrd-repository" value="/var/lib/opennms/rrd/response"/>
<parameter key="rrd-base-name" value="icmp"/>
<parameter key="ds-name" value="icmp"/>
<parameter key="thresholding-enabled" value="true"/>
</service>
Dino,
Thank you - the problem, however, is that there is no consistent
documentation on how to do exactly what you just stated. Even the order
you laid out wasn't properly documented.
For example; you mentioned creating the threshold group for the ICMP
datasource via the GUI. However, the thresholds are also defined in the
groups in *thresholds.xml*.
I'll try in the order you suggested and see what happens.
Thank you again.
-David
Post by Dino Yancey
I haven't, but i haven't tried, either.
Glancing at the config, I would start by enabling thresholding on the
ICMP service as described above. After that, I would create a new
thresholding package "ICMP" in threshd-configuration.xml, followed by
a thresholding group "ICMP" in thresholds.xml. From there, it should
just be a matter of creating the threshold for the ICMP datasource via
the web interface.
If you need unique thresholds per device, create individual packages
in threshd-configuration.xml with filters specific to each device,
with corresponding thresholding groups. Create the thresholds per
group with individual response time values. Make sure the
thresholding groups use the same rrd repository path as defined in
poller-configuration (typically /opt/opennms/share/rrd/response/ for
response time rrds)
On Mon, Jun 12, 2017 at 12:56 PM, David Poole
Post by David Poole
Thank you for the response, but I am afraid that does not do anything in
regards to thresholding other than "activate" the feature for ICMP.
There
Post by David Poole
is no information on how to properly configure it with the current
version
Post by David Poole
of OpenNMS.
Is there anyone who has successfully set up ICMP latency thresholding
or am
Post by David Poole
I looking at the wrong NMS product?
Post by David Poole
The documentation Wiki for OpenNMS is woefully out of date by nearly
three
Post by David Poole
Post by David Poole
years and no longer applies to any version above 17.0 (at least). For
example, the Wiki entry on thresholding for latency says to modify the
threshd-configuration.xml file and comment out the <thresholder
service="ICMP"
class-name="org.opennms.netmgt.threshd.LatencyThresholder" />
Post by David Poole
Post by David Poole
line - this doesn't even exist in that file.
As such, I am unable to accomplish setting up latency thresholding for
devices I am currently monitoring by following the examples on the
Wiki.
Post by David Poole
Post by David Poole
Is there anyone who has successfully set up latency thresholding and
alerting notifications in the later versions of OpenNMS? If so, how
exactly
Post by David Poole
Post by David Poole
is it done?
Scenario: four different routers across WAN all have unique thresholds
for latency. Need to alert on those specific thresholds.
Try the following, which has been written a long time ago and it is
still
https://wiki.opennms.org/wiki/Thresholding_Tutorial#Activate_Thresholds_for_Pollerd
Post by David Poole
Post by David Poole
Alejandro Galue
PGP Key Fingerprint: 5293 6234 1E75 DF30 7821 1823 87AF 972E DAF8 BE2C
------------------------------------------------------------------------------
Post by David Poole
Post by David Poole
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org!
http://sdm.link/slashdot_______________________________________________
Post by David Poole
Post by David Poole
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-discuss mailing list
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
------------------------------------------------------------------------------
Post by David Poole
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-discuss mailing list
To *unsubscribe* or change your subscription options, see the bottom of
this
Post by David Poole
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-discuss mailing list
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org!
http://sdm.link/slashdot_______________________________________________
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-discuss mailing list
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
David Poole
2017-06-14 18:27:23 UTC
Permalink
Woo-hoo! Figured it out. The correct syntax for filtering via IPADDR is:

<filter>IPADDR IPLIKE 10.31.200.252</filter>


I *really *wish there was documentation on this...


-David
Post by David Poole
Marcel,
Unfortunately, it isn't working. However, I have made some changes to it
I used a different filter, instead of *categoryname*, I did *IPADDR*,
which is the IP address of the device being monitored.
When I look at the Latency graph, I am seeing the value being exceeded yet
I am not getting any alerts in the OpenNMS console nor am I receiving email
messages like I do when a node is down.
*threshd-configuration.xml:*
<package name="ACME-TN1-Latency">
<filter>IPADDR == '10.31.200.252'</filter>
<include-range begin="10.31.200.1" end="10.31.200.254"/>
<include-range begin="::1" end="ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff"/>
<service name="ICMP" interval="300000" user-defined="true" status="on">
<parameter key="thresholding-group" value="ACME-TN1-Latency"/>
</service>
</package>
*thresholds.xml:*
<group name="ACME-TN1-Latency"
rrdRepository="/var/lib/opennms/rrd/response/">
<expression description="TN1 Latency, Above 73ms, rearm 69ms"
type="high" ds-type="if" value="65.0" rearm="60.0" trigger="2"
ds-label="icmp" triggeredUEI="
uei.opennms.org/ACME/latency/high/warning/exceeded" rearmedUEI="
uei.opennms.org/ACME/latency/high/warning/rearmed" filterOperator="or"
expression="icmp / 1000"/>
</group>
(note, to test I changed the *value *to 65.0 and the *rearm *to 60 and
the *trigger *to 2 where I would normally have 73, 69 and 6 respectively)
<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>
*\etc\events\opennms.events.xml:*
<event>
<uei>uei.opennms.org/ACME/latency/high/warning/exceeded</uei>
highThresholdExceeded</event-label>
<descr>
datasource
</descr>
<logmsg dest="logndisplay">
High threshold exceeded for %service% datasource %parm[ds]% on
interface
%interface%, parms: %parm[all]%
</logmsg>
<severity>Minor</severity>
<alarm-data
reduction-key="%uei%:%dpname%:%nodeid%:%interface%:%parm[ds]%:%parm[threshold]%:%parm[trigger]%:%parm[rearm]%:%parm[label]%"
alarm-type="1" auto-clean="false"/>
</event>
<event>
<uei>uei.opennms.org/ACME/latency/high/warning/rearmed</uei>
highThresholdRearmed</event-label>
<descr>
%service% datasource
high threshold was exceeded but then dropped below
</descr>
<logmsg dest="logndisplay">
High threshold rearmed for %service% datasource
%parm[ds]% on interface
%interface%, parms: %parm[all]%
</logmsg>
<severity>Normal</severity>
<alarm-data
reduction-key="%uei%:%dpname%:%nodeid%:%interface%:%parm[ds]%:%parm[threshold]%:%parm[trigger]%:%parm[rearm]%:%parm[label]%"
alarm-type="2" clear-key="
uei.opennms.org/threshold/highThresholdExceeded:%dpname%:%nodeid%:%interface%:%parm[ds]%:%parm[threshold]%:%parm[trigger]%:%parm[rearm]%:%parm[label]%"
auto-clean="false"/>
</event>
any help would be appreciated.
-David
Post by Marcel Fuhrmann
This config works, You nodes have to be member of surveillance category
"TH-NETWORK-LATENCY-H-30".
threshd-config.xml
<package name="TH-NETWORK-LATENCY-H-30">
<filter>categoryname == 'TH-NETWORK-LATENCY-H-30'</filter>
<include-range begin="1.1.1.1" end="254.254.254.254"/>
<include-range begin="::1" end="ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff"/>
<service name="ICMP" interval="60000" user-defined="true" status="on">
<parameter key="thresholding-group" value="TH-NETWORK-LATENCY-H-30"/>
</service>
</package>
thresholds.xml
<group name="TH-NETWORK-LATENCY-H-30"
rrdRepository="/var/lib/opennms/rrd/response/">
<expression description="above 30ms, rearm 15ms" type="high"
ds-type="if" value="30.0" rearm="15.0" trigger="5"
ds-label="icmp"
triggeredUEI="
uei.opennms.org/threshold/network/latency/high/warning/exceeded"
rearmedUEI="
uei.opennms.org/threshold/network/latency/high/warning/rearmed"
filterOperator="or" expression="icmp / 1000"/>
</group>
poller-configuration.xml
<service name="ICMP" interval="60000" user-defined="false" status="on">
<parameter key="retry" value="2"/>
<parameter key="timeout" value="3000"/>
<parameter key="rrd-repository" value="/var/lib/opennms/rrd/response"/>
<parameter key="rrd-base-name" value="icmp"/>
<parameter key="ds-name" value="icmp"/>
<parameter key="thresholding-enabled" value="true"/>
</service>
Dino,
Thank you - the problem, however, is that there is no consistent
documentation on how to do exactly what you just stated. Even the order
you laid out wasn't properly documented.
For example; you mentioned creating the threshold group for the ICMP
datasource via the GUI. However, the thresholds are also defined in the
groups in *thresholds.xml*.
I'll try in the order you suggested and see what happens.
Thank you again.
-David
Post by Dino Yancey
I haven't, but i haven't tried, either.
Glancing at the config, I would start by enabling thresholding on the
ICMP service as described above. After that, I would create a new
thresholding package "ICMP" in threshd-configuration.xml, followed by
a thresholding group "ICMP" in thresholds.xml. From there, it should
just be a matter of creating the threshold for the ICMP datasource via
the web interface.
If you need unique thresholds per device, create individual packages
in threshd-configuration.xml with filters specific to each device,
with corresponding thresholding groups. Create the thresholds per
group with individual response time values. Make sure the
thresholding groups use the same rrd repository path as defined in
poller-configuration (typically /opt/opennms/share/rrd/response/ for
response time rrds)
On Mon, Jun 12, 2017 at 12:56 PM, David Poole
Post by David Poole
Thank you for the response, but I am afraid that does not do anything
in
Post by David Poole
regards to thresholding other than "activate" the feature for ICMP.
There
Post by David Poole
is no information on how to properly configure it with the current
version
Post by David Poole
of OpenNMS.
Is there anyone who has successfully set up ICMP latency thresholding
or am
Post by David Poole
I looking at the wrong NMS product?
On Jun 12, 2017, at 1:37 PM, David Poole <
The documentation Wiki for OpenNMS is woefully out of date by nearly
three
Post by David Poole
years and no longer applies to any version above 17.0 (at least). For
example, the Wiki entry on thresholding for latency says to modify the
threshd-configuration.xml file and comment out the <thresholder
service="ICMP"
class-name="org.opennms.netmgt.threshd.LatencyThresholder" />
Post by David Poole
line - this doesn't even exist in that file.
As such, I am unable to accomplish setting up latency thresholding for
devices I am currently monitoring by following the examples on the
Wiki.
Post by David Poole
Is there anyone who has successfully set up latency thresholding and
alerting notifications in the later versions of OpenNMS? If so, how
exactly
Post by David Poole
is it done?
Scenario: four different routers across WAN all have unique
thresholds
Post by David Poole
for latency. Need to alert on those specific thresholds.
Try the following, which has been written a long time ago and it is
still
https://wiki.opennms.org/wiki/Thresholding_Tutorial#Activate_Thresholds_for_Pollerd
Post by David Poole
Alejandro Galue
PGP Key Fingerprint: 5293 6234 1E75 DF30 7821 1823 87AF 972E DAF8
BE2C
------------------------------------------------------------------------------
Post by David Poole
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org!
http://sdm.link/slashdot_______________________________________________
Post by David Poole
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-discuss mailing list
To *unsubscribe* or change your subscription options, see the bottom
of
Post by David Poole
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
------------------------------------------------------------------------------
Post by David Poole
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-discuss mailing list
To *unsubscribe* or change your subscription options, see the bottom
of this
Post by David Poole
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-discuss mailing list
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org!
http://sdm.link/slashdot_______________________________________________
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-discuss mailing list
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
Marcel Fuhrmann
2017-06-14 21:42:51 UTC
Permalink
according to your wish... 😉 https://issues.opennms.org/browse/NMS-8662
Post by David Poole
<filter>IPADDR IPLIKE 10.31.200.252</filter>
I *really *wish there was documentation on this...
-David
On Wed, Jun 14, 2017 at 10:02 AM David Poole
Post by David Poole
Marcel,
Unfortunately, it isn't working. However, I have made some changes
to it
Post by David Poole
I used a different filter, instead of *categoryname*, I did *IPADDR*,
which is the IP address of the device being monitored.
When I look at the Latency graph, I am seeing the value being
exceeded yet
Post by David Poole
I am not getting any alerts in the OpenNMS console nor am I receiving
email
Post by David Poole
messages like I do when a node is down.
*threshd-configuration.xml:*
<package name="ACME-TN1-Latency">
<filter>IPADDR == '10.31.200.252'</filter>
<include-range begin="10.31.200.1" end="10.31.200.254"/>
<include-range begin="::1"
end="ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff"/>
Post by David Poole
<service name="ICMP" interval="300000" user-defined="true"
status="on">
Post by David Poole
<parameter key="thresholding-group" value="ACME-TN1-Latency"/>
</service>
</package>
*thresholds.xml:*
<group name="ACME-TN1-Latency"
rrdRepository="/var/lib/opennms/rrd/response/">
<expression description="TN1 Latency, Above 73ms, rearm 69ms"
type="high" ds-type="if" value="65.0" rearm="60.0" trigger="2"
ds-label="icmp" triggeredUEI="
uei.opennms.org/ACME/latency/high/warning/exceeded" rearmedUEI="
uei.opennms.org/ACME/latency/high/warning/rearmed"
filterOperator="or"
Post by David Poole
expression="icmp / 1000"/>
</group>
(note, to test I changed the *value *to 65.0 and the *rearm *to 60
and
Post by David Poole
the *trigger *to 2 where I would normally have 73, 69 and 6
respectively)
Post by David Poole
<service name="ICMP" interval="300000" user-defined="false"
status="on">
Post by David Poole
<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>
*\etc\events\opennms.events.xml:*
<event>
<uei>uei.opennms.org/ACME/latency/high/warning/exceeded</uei>
highThresholdExceeded</event-label>
<descr>
%service%
Post by David Poole
datasource
</descr>
<logmsg dest="logndisplay">
High threshold exceeded for %service% datasource %parm[ds]% on
interface
%interface%, parms: %parm[all]%
</logmsg>
<severity>Minor</severity>
<alarm-data
reduction-key="%uei%:%dpname%:%nodeid%:%interface%:%parm[ds]%:%parm[threshold]%:%parm[trigger]%:%parm[rearm]%:%parm[label]%"
Post by David Poole
alarm-type="1" auto-clean="false"/>
</event>
<event>
<uei>uei.opennms.org/ACME/latency/high/warning/rearmed</uei>
highThresholdRearmed</event-label>
<descr>
%service% datasource
high threshold was exceeded but then dropped
below
Post by David Poole
</descr>
<logmsg dest="logndisplay">
High threshold rearmed for %service%
datasource
Post by David Poole
%parm[ds]% on interface
%interface%, parms: %parm[all]%
</logmsg>
<severity>Normal</severity>
<alarm-data
reduction-key="%uei%:%dpname%:%nodeid%:%interface%:%parm[ds]%:%parm[threshold]%:%parm[trigger]%:%parm[rearm]%:%parm[label]%"
Post by David Poole
alarm-type="2" clear-key="
uei.opennms.org/threshold/highThresholdExceeded:%dpname%:%nodeid%:%interface%:%parm[ds]%:%parm[threshold]%:%parm[trigger]%:%parm[rearm]%:%parm[label]%"
Post by David Poole
auto-clean="false"/>
</event>
any help would be appreciated.
-David
On Mon, Jun 12, 2017 at 12:18 PM Marcel Fuhrmann
Post by Marcel Fuhrmann
This config works, You nodes have to be member of surveillance
category
Post by David Poole
Post by Marcel Fuhrmann
"TH-NETWORK-LATENCY-H-30".
threshd-config.xml
<package name="TH-NETWORK-LATENCY-H-30">
<filter>categoryname == 'TH-NETWORK-LATENCY-H-30'</filter>
<include-range begin="1.1.1.1" end="254.254.254.254"/>
<include-range begin="::1"
end="ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff"/>
Post by David Poole
Post by Marcel Fuhrmann
<service name="ICMP" interval="60000" user-defined="true"
status="on">
Post by David Poole
Post by Marcel Fuhrmann
<parameter key="thresholding-group"
value="TH-NETWORK-LATENCY-H-30"/>
Post by David Poole
Post by Marcel Fuhrmann
</service>
</package>
thresholds.xml
<group name="TH-NETWORK-LATENCY-H-30"
rrdRepository="/var/lib/opennms/rrd/response/">
<expression description="above 30ms, rearm 15ms" type="high"
ds-type="if" value="30.0" rearm="15.0" trigger="5"
ds-label="icmp"
triggeredUEI="
uei.opennms.org/threshold/network/latency/high/warning/exceeded"
rearmedUEI="
uei.opennms.org/threshold/network/latency/high/warning/rearmed"
filterOperator="or" expression="icmp / 1000"/>
</group>
poller-configuration.xml
<service name="ICMP" interval="60000" user-defined="false"
status="on">
Post by David Poole
Post by Marcel Fuhrmann
<parameter key="retry" value="2"/>
<parameter key="timeout" value="3000"/>
<parameter key="rrd-repository"
value="/var/lib/opennms/rrd/response"/>
Post by David Poole
Post by Marcel Fuhrmann
<parameter key="rrd-base-name" value="icmp"/>
<parameter key="ds-name" value="icmp"/>
<parameter key="thresholding-enabled" value="true"/>
</service>
20:52
Post by David Poole
Post by Marcel Fuhrmann
Dino,
Thank you - the problem, however, is that there is no consistent
documentation on how to do exactly what you just stated. Even the
order
Post by David Poole
Post by Marcel Fuhrmann
you laid out wasn't properly documented.
For example; you mentioned creating the threshold group for the ICMP
datasource via the GUI. However, the thresholds are also defined in
the
Post by David Poole
Post by Marcel Fuhrmann
groups in *thresholds.xml*.
I'll try in the order you suggested and see what happens.
Thank you again.
-David
On Mon, Jun 12, 2017 at 11:34 AM Dino Yancey
Post by Dino Yancey
I haven't, but i haven't tried, either.
Glancing at the config, I would start by enabling thresholding on
the
Post by David Poole
Post by Marcel Fuhrmann
Post by Dino Yancey
ICMP service as described above. After that, I would create a new
thresholding package "ICMP" in threshd-configuration.xml, followed
by
Post by David Poole
Post by Marcel Fuhrmann
Post by Dino Yancey
a thresholding group "ICMP" in thresholds.xml. From there, it
should
Post by David Poole
Post by Marcel Fuhrmann
Post by Dino Yancey
just be a matter of creating the threshold for the ICMP datasource
via
Post by David Poole
Post by Marcel Fuhrmann
Post by Dino Yancey
the web interface.
If you need unique thresholds per device, create individual
packages
Post by David Poole
Post by Marcel Fuhrmann
Post by Dino Yancey
in threshd-configuration.xml with filters specific to each device,
with corresponding thresholding groups. Create the thresholds per
group with individual response time values. Make sure the
thresholding groups use the same rrd repository path as defined in
poller-configuration (typically /opt/opennms/share/rrd/response/
for
Post by David Poole
Post by Marcel Fuhrmann
Post by Dino Yancey
response time rrds)
On Mon, Jun 12, 2017 at 12:56 PM, David Poole
Post by David Poole
Thank you for the response, but I am afraid that does not do
anything
Post by David Poole
Post by Marcel Fuhrmann
Post by Dino Yancey
in
Post by David Poole
regards to thresholding other than "activate" the feature for
ICMP.
Post by David Poole
Post by Marcel Fuhrmann
Post by Dino Yancey
There
Post by David Poole
is no information on how to properly configure it with the
current
Post by David Poole
Post by Marcel Fuhrmann
Post by Dino Yancey
version
Post by David Poole
of OpenNMS.
Is there anyone who has successfully set up ICMP latency
thresholding
Post by David Poole
Post by Marcel Fuhrmann
Post by Dino Yancey
or am
Post by David Poole
I looking at the wrong NMS product?
On Mon, Jun 12, 2017 at 10:45 AM Alejandro Galue
On Jun 12, 2017, at 1:37 PM, David Poole <
The documentation Wiki for OpenNMS is woefully out of date by
nearly
Post by David Poole
Post by Marcel Fuhrmann
Post by Dino Yancey
three
Post by David Poole
years and no longer applies to any version above 17.0 (at
least). For
Post by David Poole
Post by Marcel Fuhrmann
Post by Dino Yancey
Post by David Poole
example, the Wiki entry on thresholding for latency says to
modify the
Post by David Poole
Post by Marcel Fuhrmann
Post by Dino Yancey
Post by David Poole
threshd-configuration.xml file and comment out the <thresholder
service="ICMP"
class-name="org.opennms.netmgt.threshd.LatencyThresholder" />
Post by David Poole
line - this doesn't even exist in that file.
As such, I am unable to accomplish setting up latency
thresholding for
Post by David Poole
Post by Marcel Fuhrmann
Post by Dino Yancey
Post by David Poole
devices I am currently monitoring by following the examples on
the
Post by David Poole
Post by Marcel Fuhrmann
Post by Dino Yancey
Wiki.
Post by David Poole
Is there anyone who has successfully set up latency thresholding
and
Post by David Poole
Post by Marcel Fuhrmann
Post by Dino Yancey
Post by David Poole
alerting notifications in the later versions of OpenNMS? If so,
how
Post by David Poole
Post by Marcel Fuhrmann
Post by Dino Yancey
exactly
Post by David Poole
is it done?
Scenario: four different routers across WAN all have unique
thresholds
Post by David Poole
for latency. Need to alert on those specific thresholds.
Try the following, which has been written a long time ago and it
is
Post by David Poole
Post by Marcel Fuhrmann
Post by Dino Yancey
still
https://wiki.opennms.org/wiki/Thresholding_Tutorial#Activate_Thresholds_for_Pollerd
Post by David Poole
Post by Marcel Fuhrmann
Post by Dino Yancey
Post by David Poole
Alejandro Galue
PGP Key Fingerprint: 5293 6234 1E75 DF30 7821 1823 87AF 972E
DAF8
Post by David Poole
Post by Marcel Fuhrmann
Post by Dino Yancey
BE2C
------------------------------------------------------------------------------
Post by David Poole
Post by Marcel Fuhrmann
Post by Dino Yancey
Post by David Poole
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org!
http://sdm.link/slashdot_______________________________________________
Post by David Poole
Post by Marcel Fuhrmann
Post by Dino Yancey
Post by David Poole
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-discuss mailing list
To *unsubscribe* or change your subscription options, see the
bottom
Post by David Poole
Post by Marcel Fuhrmann
Post by Dino Yancey
of
Post by David Poole
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
------------------------------------------------------------------------------
Post by David Poole
Post by Marcel Fuhrmann
Post by Dino Yancey
Post by David Poole
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-discuss mailing list
To *unsubscribe* or change your subscription options, see the
bottom
Post by David Poole
Post by Marcel Fuhrmann
Post by Dino Yancey
of this
Post by David Poole
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
------------------------------------------------------------------------------
Post by David Poole
Post by Marcel Fuhrmann
Post by Dino Yancey
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-discuss mailing list
To *unsubscribe* or change your subscription options, see the
bottom of
Post by David Poole
Post by Marcel Fuhrmann
Post by Dino Yancey
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
------------------------------------------------------------------------------
Post by David Poole
Post by Marcel Fuhrmann
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org!
http://sdm.link/slashdot_______________________________________________
Post by David Poole
Post by Marcel Fuhrmann
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-discuss mailing list
To *unsubscribe* or change your subscription options, see the bottom
of
Post by David Poole
Post by Marcel Fuhrmann
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
--
Diese Nachricht wurde von meinem Android-GerÀt mit K-9 Mail gesendet.
Dino Yancey
2017-06-14 18:29:15 UTC
Permalink
<service name="ICMP" interval="300000" user-defined="false" status="on">
<...>
<parameter key="rrd-repository" value="/opt/opennms/share/rrd/response" />
<...>
</service>

<group name="ACME-TN1-Latency" rrdRepository="/var/lib/opennms/rrd/response/">

Which is the correct path for your environment?

On Wed, Jun 14, 2017 at 12:02 PM, David Poole
Post by David Poole
Marcel,
Unfortunately, it isn't working. However, I have made some changes to it
I used a different filter, instead of categoryname, I did IPADDR, which is
the IP address of the device being monitored.
When I look at the Latency graph, I am seeing the value being exceeded yet I
am not getting any alerts in the OpenNMS console nor am I receiving email
messages like I do when a node is down.
<package name="ACME-TN1-Latency">
<filter>IPADDR == '10.31.200.252'</filter>
<include-range begin="10.31.200.1" end="10.31.200.254"/>
<include-range begin="::1" end="ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff"/>
<service name="ICMP" interval="300000" user-defined="true" status="on">
<parameter key="thresholding-group" value="ACME-TN1-Latency"/>
</service>
</package>
<group name="ACME-TN1-Latency"
rrdRepository="/var/lib/opennms/rrd/response/">
<expression description="TN1 Latency, Above 73ms, rearm 69ms"
type="high" ds-type="if" value="65.0" rearm="60.0" trigger="2"
ds-label="icmp"
triggeredUEI="uei.opennms.org/ACME/latency/high/warning/exceeded"
rearmedUEI="uei.opennms.org/ACME/latency/high/warning/rearmed"
filterOperator="or" expression="icmp / 1000"/>
</group>
(note, to test I changed the value to 65.0 and the rearm to 60 and the
trigger to 2 where I would normally have 73, 69 and 6 respectively)
<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>
<event>
<uei>uei.opennms.org/ACME/latency/high/warning/exceeded</uei>
highThresholdExceeded</event-label>
<descr>
datasource
</descr>
<logmsg dest="logndisplay">
High threshold exceeded for %service% datasource %parm[ds]% on
interface
%interface%, parms: %parm[all]%
</logmsg>
<severity>Minor</severity>
<alarm-data
reduction-key="%uei%:%dpname%:%nodeid%:%interface%:%parm[ds]%:%parm[threshold]%:%parm[trigger]%:%parm[rearm]%:%parm[label]%"
alarm-type="1" auto-clean="false"/>
</event>
<event>
<uei>uei.opennms.org/ACME/latency/high/warning/rearmed</uei>
highThresholdRearmed</event-label>
<descr>
%service% datasource
high threshold was exceeded but then dropped below
</descr>
<logmsg dest="logndisplay">
High threshold rearmed for %service% datasource
%parm[ds]% on interface
%interface%, parms: %parm[all]%
</logmsg>
<severity>Normal</severity>
<alarm-data
reduction-key="%uei%:%dpname%:%nodeid%:%interface%:%parm[ds]%:%parm[threshold]%:%parm[trigger]%:%parm[rearm]%:%parm[label]%"
alarm-type="2"
clear-key="uei.opennms.org/threshold/highThresholdExceeded:%dpname%:%nodeid%:%interface%:%parm[ds]%:%parm[threshold]%:%parm[trigger]%:%parm[rearm]%:%parm[label]%"
auto-clean="false"/>
</event>
any help would be appreciated.
-David
Post by Marcel Fuhrmann
This config works, You nodes have to be member of surveillance category
"TH-NETWORK-LATENCY-H-30".
threshd-config.xml
<package name="TH-NETWORK-LATENCY-H-30">
<filter>categoryname == 'TH-NETWORK-LATENCY-H-30'</filter>
<include-range begin="1.1.1.1" end="254.254.254.254"/>
<include-range begin="::1" end="ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff"/>
<service name="ICMP" interval="60000" user-defined="true" status="on">
<parameter key="thresholding-group" value="TH-NETWORK-LATENCY-H-30"/>
</service>
</package>
thresholds.xml
<group name="TH-NETWORK-LATENCY-H-30"
rrdRepository="/var/lib/opennms/rrd/response/">
<expression description="above 30ms, rearm 15ms" type="high"
ds-type="if" value="30.0" rearm="15.0" trigger="5"
ds-label="icmp"
triggeredUEI="uei.opennms.org/threshold/network/latency/high/warning/exceeded"
rearmedUEI="uei.opennms.org/threshold/network/latency/high/warning/rearmed"
filterOperator="or" expression="icmp / 1000"/>
</group>
poller-configuration.xml
<service name="ICMP" interval="60000" user-defined="false" status="on">
<parameter key="retry" value="2"/>
<parameter key="timeout" value="3000"/>
<parameter key="rrd-repository" value="/var/lib/opennms/rrd/response"/>
<parameter key="rrd-base-name" value="icmp"/>
<parameter key="ds-name" value="icmp"/>
<parameter key="thresholding-enabled" value="true"/>
</service>
Dino,
Thank you - the problem, however, is that there is no consistent
documentation on how to do exactly what you just stated. Even the order you
laid out wasn't properly documented.
For example; you mentioned creating the threshold group for the ICMP
datasource via the GUI. However, the thresholds are also defined in the
groups in thresholds.xml.
I'll try in the order you suggested and see what happens.
Thank you again.
-David
Post by Dino Yancey
I haven't, but i haven't tried, either.
Glancing at the config, I would start by enabling thresholding on the
ICMP service as described above. After that, I would create a new
thresholding package "ICMP" in threshd-configuration.xml, followed by
a thresholding group "ICMP" in thresholds.xml. From there, it should
just be a matter of creating the threshold for the ICMP datasource via
the web interface.
If you need unique thresholds per device, create individual packages
in threshd-configuration.xml with filters specific to each device,
with corresponding thresholding groups. Create the thresholds per
group with individual response time values. Make sure the
thresholding groups use the same rrd repository path as defined in
poller-configuration (typically /opt/opennms/share/rrd/response/ for
response time rrds)
On Mon, Jun 12, 2017 at 12:56 PM, David Poole
Post by David Poole
Thank you for the response, but I am afraid that does not do anything in
regards to thresholding other than "activate" the feature for ICMP.
There
is no information on how to properly configure it with the current version
of OpenNMS.
Is there anyone who has successfully set up ICMP latency thresholding or am
I looking at the wrong NMS product?
On Jun 12, 2017, at 1:37 PM, David Poole
The documentation Wiki for OpenNMS is woefully out of date by nearly three
years and no longer applies to any version above 17.0 (at least). For
example, the Wiki entry on thresholding for latency says to modify the
threshd-configuration.xml file and comment out the <thresholder
service="ICMP"
class-name="org.opennms.netmgt.threshd.LatencyThresholder" />
line - this doesn't even exist in that file.
As such, I am unable to accomplish setting up latency thresholding for
devices I am currently monitoring by following the examples on the Wiki.
Is there anyone who has successfully set up latency thresholding and
alerting notifications in the later versions of OpenNMS? If so, how exactly
is it done?
Scenario: four different routers across WAN all have unique thresholds
for latency. Need to alert on those specific thresholds.
Try the following, which has been written a long time ago and it is still
https://wiki.opennms.org/wiki/Thresholding_Tutorial#Activate_Thresholds_for_Pollerd
Alejandro Galue
PGP Key Fingerprint: 5293 6234 1E75 DF30 7821 1823 87AF 972E DAF8 BE2C
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org!
http://sdm.link/slashdot_______________________________________________
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-discuss mailing list
To *unsubscribe* or change your subscription options, see the bottom of
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-discuss mailing list
To *unsubscribe* or change your subscription options, see the bottom of this
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-discuss mailing list
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org!
http://sdm.link/slashdot_______________________________________________
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-discuss mailing list
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-discuss mailing list
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-discuss mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
David Poole
2017-06-14 21:43:19 UTC
Permalink
Dino,

I managed to get it to work. My problem was with my customization of the
code you provided. I changed the <filter> to one of my own but didn't put
in the correct syntax. I have since corrected that and the thresholds seem
to work now.

Thank you,

-David
Post by David Poole
<service name="ICMP" interval="300000" user-defined="false" status="on">
<...>
<parameter key="rrd-repository"
value="/opt/opennms/share/rrd/response" />
<...>
</service>
<group name="ACME-TN1-Latency"
rrdRepository="/var/lib/opennms/rrd/response/">
Which is the correct path for your environment?
On Wed, Jun 14, 2017 at 12:02 PM, David Poole
Post by David Poole
Marcel,
Unfortunately, it isn't working. However, I have made some changes to it
I used a different filter, instead of categoryname, I did IPADDR, which
is
Post by David Poole
the IP address of the device being monitored.
When I look at the Latency graph, I am seeing the value being exceeded
yet I
Post by David Poole
am not getting any alerts in the OpenNMS console nor am I receiving email
messages like I do when a node is down.
<package name="ACME-TN1-Latency">
<filter>IPADDR == '10.31.200.252'</filter>
<include-range begin="10.31.200.1" end="10.31.200.254"/>
<include-range begin="::1"
end="ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff"/>
Post by David Poole
<service name="ICMP" interval="300000" user-defined="true" status="on">
<parameter key="thresholding-group" value="ACME-TN1-Latency"/>
</service>
</package>
<group name="ACME-TN1-Latency"
rrdRepository="/var/lib/opennms/rrd/response/">
<expression description="TN1 Latency, Above 73ms, rearm 69ms"
type="high" ds-type="if" value="65.0" rearm="60.0" trigger="2"
ds-label="icmp"
triggeredUEI="uei.opennms.org/ACME/latency/high/warning/exceeded"
rearmedUEI="uei.opennms.org/ACME/latency/high/warning/rearmed"
filterOperator="or" expression="icmp / 1000"/>
</group>
(note, to test I changed the value to 65.0 and the rearm to 60 and the
trigger to 2 where I would normally have 73, 69 and 6 respectively)
<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>
<event>
<uei>uei.opennms.org/ACME/latency/high/warning/exceeded</uei>
highThresholdExceeded</event-label>
<descr>
datasource
</descr>
<logmsg dest="logndisplay">
High threshold exceeded for %service% datasource %parm[ds]% on
interface
%interface%, parms: %parm[all]%
</logmsg>
<severity>Minor</severity>
<alarm-data
reduction-key="%uei%:%dpname%:%nodeid%:%interface%:%parm[ds]%:%parm[threshold]%:%parm[trigger]%:%parm[rearm]%:%parm[label]%"
Post by David Poole
alarm-type="1" auto-clean="false"/>
</event>
<event>
<uei>uei.opennms.org/ACME/latency/high/warning/rearmed</uei>
highThresholdRearmed</event-label>
<descr>
%service% datasource
high threshold was exceeded but then dropped
below
Post by David Poole
</descr>
<logmsg dest="logndisplay">
High threshold rearmed for %service% datasource
%parm[ds]% on interface
%interface%, parms: %parm[all]%
</logmsg>
<severity>Normal</severity>
<alarm-data
reduction-key="%uei%:%dpname%:%nodeid%:%interface%:%parm[ds]%:%parm[threshold]%:%parm[trigger]%:%parm[rearm]%:%parm[label]%"
Post by David Poole
alarm-type="2"
clear-key="
uei.opennms.org/threshold/highThresholdExceeded:%dpname%:%nodeid%:%interface%:%parm[ds]%:%parm[threshold]%:%parm[trigger]%:%parm[rearm]%:%parm[label]%
"
Post by David Poole
auto-clean="false"/>
</event>
any help would be appreciated.
-David
Post by Marcel Fuhrmann
This config works, You nodes have to be member of surveillance category
"TH-NETWORK-LATENCY-H-30".
threshd-config.xml
<package name="TH-NETWORK-LATENCY-H-30">
<filter>categoryname == 'TH-NETWORK-LATENCY-H-30'</filter>
<include-range begin="1.1.1.1" end="254.254.254.254"/>
<include-range begin="::1"
end="ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff"/>
Post by David Poole
Post by Marcel Fuhrmann
<service name="ICMP" interval="60000" user-defined="true" status="on">
<parameter key="thresholding-group" value="TH-NETWORK-LATENCY-H-30"/>
</service>
</package>
thresholds.xml
<group name="TH-NETWORK-LATENCY-H-30"
rrdRepository="/var/lib/opennms/rrd/response/">
<expression description="above 30ms, rearm 15ms" type="high"
ds-type="if" value="30.0" rearm="15.0" trigger="5"
ds-label="icmp"
triggeredUEI="
uei.opennms.org/threshold/network/latency/high/warning/exceeded"
Post by David Poole
Post by Marcel Fuhrmann
rearmedUEI="
uei.opennms.org/threshold/network/latency/high/warning/rearmed"
Post by David Poole
Post by Marcel Fuhrmann
filterOperator="or" expression="icmp / 1000"/>
</group>
poller-configuration.xml
<service name="ICMP" interval="60000" user-defined="false" status="on">
<parameter key="retry" value="2"/>
<parameter key="timeout" value="3000"/>
<parameter key="rrd-repository" value="/var/lib/opennms/rrd/response"/>
<parameter key="rrd-base-name" value="icmp"/>
<parameter key="ds-name" value="icmp"/>
<parameter key="thresholding-enabled" value="true"/>
</service>
20:52
Post by David Poole
Post by Marcel Fuhrmann
Dino,
Thank you - the problem, however, is that there is no consistent
documentation on how to do exactly what you just stated. Even the
order you
Post by David Poole
Post by Marcel Fuhrmann
laid out wasn't properly documented.
For example; you mentioned creating the threshold group for the ICMP
datasource via the GUI. However, the thresholds are also defined in the
groups in thresholds.xml.
I'll try in the order you suggested and see what happens.
Thank you again.
-David
On Mon, Jun 12, 2017 at 11:34 AM Dino Yancey <
Post by Dino Yancey
I haven't, but i haven't tried, either.
Glancing at the config, I would start by enabling thresholding on the
ICMP service as described above. After that, I would create a new
thresholding package "ICMP" in threshd-configuration.xml, followed by
a thresholding group "ICMP" in thresholds.xml. From there, it should
just be a matter of creating the threshold for the ICMP datasource via
the web interface.
If you need unique thresholds per device, create individual packages
in threshd-configuration.xml with filters specific to each device,
with corresponding thresholding groups. Create the thresholds per
group with individual response time values. Make sure the
thresholding groups use the same rrd repository path as defined in
poller-configuration (typically /opt/opennms/share/rrd/response/ for
response time rrds)
On Mon, Jun 12, 2017 at 12:56 PM, David Poole
Post by David Poole
Thank you for the response, but I am afraid that does not do anything in
regards to thresholding other than "activate" the feature for ICMP.
There
is no information on how to properly configure it with the current version
of OpenNMS.
Is there anyone who has successfully set up ICMP latency thresholding or am
I looking at the wrong NMS product?
On Jun 12, 2017, at 1:37 PM, David Poole
The documentation Wiki for OpenNMS is woefully out of date by nearly three
years and no longer applies to any version above 17.0 (at least).
For
Post by David Poole
Post by Marcel Fuhrmann
Post by Dino Yancey
Post by David Poole
example, the Wiki entry on thresholding for latency says to modify
the
Post by David Poole
Post by Marcel Fuhrmann
Post by Dino Yancey
Post by David Poole
threshd-configuration.xml file and comment out the <thresholder
service="ICMP"
class-name="org.opennms.netmgt.threshd.LatencyThresholder" />
line - this doesn't even exist in that file.
As such, I am unable to accomplish setting up latency thresholding
for
Post by David Poole
Post by Marcel Fuhrmann
Post by Dino Yancey
Post by David Poole
devices I am currently monitoring by following the examples on the Wiki.
Is there anyone who has successfully set up latency thresholding and
alerting notifications in the later versions of OpenNMS? If so, how exactly
is it done?
Scenario: four different routers across WAN all have unique thresholds
for latency. Need to alert on those specific thresholds.
Try the following, which has been written a long time ago and it is still
https://wiki.opennms.org/wiki/Thresholding_Tutorial#Activate_Thresholds_for_Pollerd
Post by David Poole
Post by Marcel Fuhrmann
Post by Dino Yancey
Post by David Poole
Alejandro Galue
PGP Key Fingerprint: 5293 6234 1E75 DF30 7821 1823 87AF 972E DAF8 BE2C
------------------------------------------------------------------------------
Post by David Poole
Post by Marcel Fuhrmann
Post by Dino Yancey
Post by David Poole
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org!
http://sdm.link/slashdot_______________________________________________
Post by David Poole
Post by Marcel Fuhrmann
Post by Dino Yancey
Post by David Poole
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-discuss mailing list
To *unsubscribe* or change your subscription options, see the bottom of
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
------------------------------------------------------------------------------
Post by David Poole
Post by Marcel Fuhrmann
Post by Dino Yancey
Post by David Poole
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-discuss mailing list
To *unsubscribe* or change your subscription options, see the bottom
of
Post by David Poole
Post by Marcel Fuhrmann
Post by Dino Yancey
Post by David Poole
this
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
------------------------------------------------------------------------------
Post by David Poole
Post by Marcel Fuhrmann
Post by Dino Yancey
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-discuss mailing list
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
------------------------------------------------------------------------------
Post by David Poole
Post by Marcel Fuhrmann
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org!
http://sdm.link/slashdot_______________________________________________
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-discuss mailing list
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
------------------------------------------------------------------------------
Post by David Poole
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-discuss mailing list
To *unsubscribe* or change your subscription options, see the bottom of
this
Post by David Poole
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-discuss mailing list
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
David Poole
2017-06-14 21:43:56 UTC
Permalink
Marcel,

Awesome!
Post by David Poole
Dino,
I managed to get it to work. My problem was with my customization of the
code you provided. I changed the <filter> to one of my own but didn't put
in the correct syntax. I have since corrected that and the thresholds seem
to work now.
Thank you,
-David
Post by David Poole
<service name="ICMP" interval="300000" user-defined="false" status="on">
<...>
<parameter key="rrd-repository"
value="/opt/opennms/share/rrd/response" />
<...>
</service>
<group name="ACME-TN1-Latency"
rrdRepository="/var/lib/opennms/rrd/response/">
Which is the correct path for your environment?
On Wed, Jun 14, 2017 at 12:02 PM, David Poole
Post by David Poole
Marcel,
Unfortunately, it isn't working. However, I have made some changes to
it
Post by David Poole
I used a different filter, instead of categoryname, I did IPADDR, which
is
Post by David Poole
the IP address of the device being monitored.
When I look at the Latency graph, I am seeing the value being exceeded
yet I
Post by David Poole
am not getting any alerts in the OpenNMS console nor am I receiving
email
Post by David Poole
messages like I do when a node is down.
<package name="ACME-TN1-Latency">
<filter>IPADDR == '10.31.200.252'</filter>
<include-range begin="10.31.200.1" end="10.31.200.254"/>
<include-range begin="::1"
end="ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff"/>
Post by David Poole
<service name="ICMP" interval="300000" user-defined="true" status="on">
<parameter key="thresholding-group" value="ACME-TN1-Latency"/>
</service>
</package>
<group name="ACME-TN1-Latency"
rrdRepository="/var/lib/opennms/rrd/response/">
<expression description="TN1 Latency, Above 73ms, rearm 69ms"
type="high" ds-type="if" value="65.0" rearm="60.0" trigger="2"
ds-label="icmp"
triggeredUEI="uei.opennms.org/ACME/latency/high/warning/exceeded"
rearmedUEI="uei.opennms.org/ACME/latency/high/warning/rearmed"
filterOperator="or" expression="icmp / 1000"/>
</group>
(note, to test I changed the value to 65.0 and the rearm to 60 and the
trigger to 2 where I would normally have 73, 69 and 6 respectively)
<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>
<event>
<uei>uei.opennms.org/ACME/latency/high/warning/exceeded</uei>
highThresholdExceeded</event-label>
<descr>
datasource
</descr>
<logmsg dest="logndisplay">
High threshold exceeded for %service% datasource %parm[ds]% on
interface
%interface%, parms: %parm[all]%
</logmsg>
<severity>Minor</severity>
<alarm-data
reduction-key="%uei%:%dpname%:%nodeid%:%interface%:%parm[ds]%:%parm[threshold]%:%parm[trigger]%:%parm[rearm]%:%parm[label]%"
Post by David Poole
alarm-type="1" auto-clean="false"/>
</event>
<event>
<uei>uei.opennms.org/ACME/latency/high/warning/rearmed</uei>
highThresholdRearmed</event-label>
<descr>
%service% datasource
high threshold was exceeded but then dropped
below
Post by David Poole
</descr>
<logmsg dest="logndisplay">
High threshold rearmed for %service% datasource
%parm[ds]% on interface
%interface%, parms: %parm[all]%
</logmsg>
<severity>Normal</severity>
<alarm-data
reduction-key="%uei%:%dpname%:%nodeid%:%interface%:%parm[ds]%:%parm[threshold]%:%parm[trigger]%:%parm[rearm]%:%parm[label]%"
Post by David Poole
alarm-type="2"
clear-key="
uei.opennms.org/threshold/highThresholdExceeded:%dpname%:%nodeid%:%interface%:%parm[ds]%:%parm[threshold]%:%parm[trigger]%:%parm[rearm]%:%parm[label]%
"
Post by David Poole
auto-clean="false"/>
</event>
any help would be appreciated.
-David
Post by Marcel Fuhrmann
This config works, You nodes have to be member of surveillance category
"TH-NETWORK-LATENCY-H-30".
threshd-config.xml
<package name="TH-NETWORK-LATENCY-H-30">
<filter>categoryname == 'TH-NETWORK-LATENCY-H-30'</filter>
<include-range begin="1.1.1.1" end="254.254.254.254"/>
<include-range begin="::1"
end="ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff"/>
Post by David Poole
Post by Marcel Fuhrmann
<service name="ICMP" interval="60000" user-defined="true" status="on">
<parameter key="thresholding-group" value="TH-NETWORK-LATENCY-H-30"/>
</service>
</package>
thresholds.xml
<group name="TH-NETWORK-LATENCY-H-30"
rrdRepository="/var/lib/opennms/rrd/response/">
<expression description="above 30ms, rearm 15ms" type="high"
ds-type="if" value="30.0" rearm="15.0" trigger="5"
ds-label="icmp"
triggeredUEI="
uei.opennms.org/threshold/network/latency/high/warning/exceeded"
Post by David Poole
Post by Marcel Fuhrmann
rearmedUEI="
uei.opennms.org/threshold/network/latency/high/warning/rearmed"
Post by David Poole
Post by Marcel Fuhrmann
filterOperator="or" expression="icmp / 1000"/>
</group>
poller-configuration.xml
<service name="ICMP" interval="60000" user-defined="false" status="on">
<parameter key="retry" value="2"/>
<parameter key="timeout" value="3000"/>
<parameter key="rrd-repository" value="/var/lib/opennms/rrd/response"/>
<parameter key="rrd-base-name" value="icmp"/>
<parameter key="ds-name" value="icmp"/>
<parameter key="thresholding-enabled" value="true"/>
</service>
20:52
Post by David Poole
Post by Marcel Fuhrmann
Dino,
Thank you - the problem, however, is that there is no consistent
documentation on how to do exactly what you just stated. Even the
order you
Post by David Poole
Post by Marcel Fuhrmann
laid out wasn't properly documented.
For example; you mentioned creating the threshold group for the ICMP
datasource via the GUI. However, the thresholds are also defined in
the
Post by David Poole
Post by Marcel Fuhrmann
groups in thresholds.xml.
I'll try in the order you suggested and see what happens.
Thank you again.
-David
On Mon, Jun 12, 2017 at 11:34 AM Dino Yancey <
Post by Dino Yancey
I haven't, but i haven't tried, either.
Glancing at the config, I would start by enabling thresholding on the
ICMP service as described above. After that, I would create a new
thresholding package "ICMP" in threshd-configuration.xml, followed by
a thresholding group "ICMP" in thresholds.xml. From there, it should
just be a matter of creating the threshold for the ICMP datasource via
the web interface.
If you need unique thresholds per device, create individual packages
in threshd-configuration.xml with filters specific to each device,
with corresponding thresholding groups. Create the thresholds per
group with individual response time values. Make sure the
thresholding groups use the same rrd repository path as defined in
poller-configuration (typically /opt/opennms/share/rrd/response/ for
response time rrds)
On Mon, Jun 12, 2017 at 12:56 PM, David Poole
Post by David Poole
Thank you for the response, but I am afraid that does not do
anything
Post by David Poole
Post by Marcel Fuhrmann
Post by Dino Yancey
Post by David Poole
in
regards to thresholding other than "activate" the feature for ICMP.
There
is no information on how to properly configure it with the current version
of OpenNMS.
Is there anyone who has successfully set up ICMP latency
thresholding
Post by David Poole
Post by Marcel Fuhrmann
Post by Dino Yancey
Post by David Poole
or am
I looking at the wrong NMS product?
On Mon, Jun 12, 2017 at 10:45 AM Alejandro Galue <
On Jun 12, 2017, at 1:37 PM, David Poole
The documentation Wiki for OpenNMS is woefully out of date by
nearly
Post by David Poole
Post by Marcel Fuhrmann
Post by Dino Yancey
Post by David Poole
three
years and no longer applies to any version above 17.0 (at least).
For
Post by David Poole
Post by Marcel Fuhrmann
Post by Dino Yancey
Post by David Poole
example, the Wiki entry on thresholding for latency says to modify
the
Post by David Poole
Post by Marcel Fuhrmann
Post by Dino Yancey
Post by David Poole
threshd-configuration.xml file and comment out the <thresholder
service="ICMP"
class-name="org.opennms.netmgt.threshd.LatencyThresholder" />
line - this doesn't even exist in that file.
As such, I am unable to accomplish setting up latency thresholding
for
Post by David Poole
Post by Marcel Fuhrmann
Post by Dino Yancey
Post by David Poole
devices I am currently monitoring by following the examples on the Wiki.
Is there anyone who has successfully set up latency thresholding
and
Post by David Poole
Post by Marcel Fuhrmann
Post by Dino Yancey
Post by David Poole
alerting notifications in the later versions of OpenNMS? If so,
how
Post by David Poole
Post by Marcel Fuhrmann
Post by Dino Yancey
Post by David Poole
exactly
is it done?
Scenario: four different routers across WAN all have unique thresholds
for latency. Need to alert on those specific thresholds.
Try the following, which has been written a long time ago and it is still
https://wiki.opennms.org/wiki/Thresholding_Tutorial#Activate_Thresholds_for_Pollerd
Post by David Poole
Post by Marcel Fuhrmann
Post by Dino Yancey
Post by David Poole
Alejandro Galue
PGP Key Fingerprint: 5293 6234 1E75 DF30 7821 1823 87AF 972E DAF8 BE2C
------------------------------------------------------------------------------
Post by David Poole
Post by Marcel Fuhrmann
Post by Dino Yancey
Post by David Poole
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org!
http://sdm.link/slashdot_______________________________________________
Post by David Poole
Post by Marcel Fuhrmann
Post by Dino Yancey
Post by David Poole
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-discuss mailing list
To *unsubscribe* or change your subscription options, see the
bottom
Post by David Poole
Post by Marcel Fuhrmann
Post by Dino Yancey
Post by David Poole
of
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
------------------------------------------------------------------------------
Post by David Poole
Post by Marcel Fuhrmann
Post by Dino Yancey
Post by David Poole
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-discuss mailing list
To *unsubscribe* or change your subscription options, see the
bottom of
Post by David Poole
Post by Marcel Fuhrmann
Post by Dino Yancey
Post by David Poole
this
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
------------------------------------------------------------------------------
Post by David Poole
Post by Marcel Fuhrmann
Post by Dino Yancey
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-discuss mailing list
To *unsubscribe* or change your subscription options, see the bottom
of
Post by David Poole
Post by Marcel Fuhrmann
Post by Dino Yancey
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
------------------------------------------------------------------------------
Post by David Poole
Post by Marcel Fuhrmann
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org!
http://sdm.link/slashdot_______________________________________________
Post by David Poole
Post by Marcel Fuhrmann
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-discuss mailing list
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
------------------------------------------------------------------------------
Post by David Poole
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-discuss mailing list
To *unsubscribe* or change your subscription options, see the bottom of
this
Post by David Poole
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-discuss mailing list
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
Loading...