Create a Threshold Group

A threshold group associates a set of thresholds to a service (for example, thresholds that apply to all Cisco devices). Horizon includes the following preconfigured, editable threshold groups:

  • mib2

  • cisco

  • hrstorage

  • netsnmp

  • juniper-srx

  • netsnmp-memory-linux

  • netsnmp-memory-nonlinux

  • opennms-jvm-jvx

You can edit an existing group (through the web UI) or create a new one (in ${OPENNMS_HOME}/etc/thresholds.xml). Once you create the group, you can then define it in the thresholds.xml file or in the UI.

This procedure creates a threshold group called "demo_group":

  1. Open ${OPENNMS_HOME}/etc/thresholds.xml and add the following line of code:

    <group name="demo_group" rrdRepository="/opt/opennms/share/rrd/snmp/">
  2. Log in to the web UI, and click the Gear symbol in the top-right of the screen.

  3. Under Performance Measurement, click Configure Thresholds.

    The group you created should appear in the UI.

  4. Click Edit next to the group’s name.

The following is a sample of how the threshold appears in thresholds.xml:

<group name="demo_group" rrdRepository="/opt/opennms/share/rrd/snmp/"> (1)
  <expression type="high" ds-type="hrStorageIndex" value="90.0"
    rearm="75.0" trigger="2" ds-label="hrStorageDescr"
    filterOperator="or" expression="hrStorageUsed / hrStorageSize * 100.0">
    <resource-filter field="hrStorageType">^\.1\.3\.6\.1\.2\.1\.25\.2\.1\.4$</resource-filter> (2)
1 The name of the group and the directory of the stored data.
2 The details of the threshold, including type, data source type, threshold value, re-arm value, and so on.