OpenNMS and CPU Threshold

"Madden, Joe" <[email protected]>
Newsgroups gmane.network.opennms.general
Message-ID <LOXP123MB0071F7EA8F0427E88C99F19191390@LOXP123MB0071.GBRP123.PROD.OUTLOOK.COM>
Hi List,

Trying to setup a custom threshold for Nodes in a specific category.

From googling I’ve found that you setup a custom group in /opt/opennms/etc/threshd-configuration.xml which has the node filtering which have have done like so:

   <package name="netsnmp">
      <filter>IPADDR != '0.0.0.0' &amp; (nodeSysOID LIKE '.1.3.6.1.4.1.2021.%' | nodeSysOID LIKE '.1.3.6.1.4.1.8072.%') &amp; ! ( catincTEST )</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="SNMP" interval="300000" user-defined="false" status="on">
         <parameter key="thresholding-group" value="netsnmp"/>
      </service>
   </package>


   <package name="netsnmp-custom">
      <filter>IPADDR != '0.0.0.0' &amp; (nodeSysOID LIKE '.1.3.6.1.4.1.2021.%' | nodeSysOID LIKE '.1.3.6.1.4.1.8072.%') &amp; catincTEST </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="SNMP" interval="300000" user-defined="false" status="on">
         <parameter key="thresholding-group" value="netsnmp"/>
      </service>
   </package>


I believe according to this link (https://blog.yo61.com/custom-thresholding-for-specific-nodes-in-opennms/) the &amp; catincM2M part should only filter to nodes within the TEST surveillance category.



So I’ve setup the thresholds for the CPU like this:

<group name="netsnmp-custom" rrdRepository="/opt/opennms/share/rrd/snmp/">
        <threshold
            description="Trigger an alert when the cpu usage goes above 75% for a sustained period."
            type="high" ds-type="cpuinterrupt" value="3"
            rearm="1" trigger="1" ds-label="cpuUsageFull"
            filterOperator="or" ds-name="cpuUsageFull"/>
</thresholding-config>


More than 3% CPU usage (Just as a test) to trigger the alert on the first occurrence but I can’t get it to work.

Is ds-type="cpuinterrupt” and ds-label="cpuUsageFull" correct for CPU usage as a %?

Any ideas why this doesn’t work?

Thanks for any help

Joe.

------------------------------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.