From: Mike D. <mik...@cd...> - 2014-07-16 14:16:22
|
I'll put the configs I use for this at the bottom, but inline I'll make some notes also: On Wed, Jul 16, 2014 at 8:00 AM, Dinh-Thanh Ngo < Din...@me...> wrote: > threshd-configuration.xml > > <package name="linux-hrstorage"> > <filter>IPADDR != '0.0.0.0' & (nodeSysOID LIKE > '.1.3.6.1.4.1.8072.3.2.%')</filter> > Have you verified the nodeSysOID matches? Also, maybe you need an <include-range .... /> here? > <service name="SNMP" interval="300000" user-defined="false" > status="on"> > <parameter key="thresholding-group" value="linux-hrstorage"/> > </service> > </package> > thresholds.xml > > <group name="linux-hrstorage" > rrdRepository="/opt/opennms/share/rrd/snmp/"> > <expression type="high" ds-type="hrStorageIndex" value="90.0" > rearm="85.0" trigger="2" ds-label="hrStorageDescr" > filterOperator="or" expression="hrStorageUsed / hrStorageSize > * 100.0"> > <resource-filter field="hrStorageDescr">^/$</resource-filter> > </expression> > </group> > I don't see a triggeredUEI attribute in there. I think you need one of those. Here's one of mine, for example: <group name="hrstorage" rrdRepository="/opt/opennms/share/rrd/snmp/"> <expression type="high" ds-type="hrStorageIndex" value="91.0" rearm="89.0" trigger="1" ds-label="hrStorageDescr" *triggeredUEI="uei.mycompany.com/thresholds/disk/high <http://uei.mycompany.com/thresholds/disk/high>*" *rearmedUEI="uei.**mycompany**.com/thresholds/disk/high/rearm*" filterOperator="and" expression="(hrStorageUsed / hrStorageSize) * 100.0"> <resource-filter field="hrStorageType">^\.1\.3\.6\.1\.2\.1\.25\.2\.1\.4$</resource-filter> <resource-filter field="hrStorageDesc">^[/|\w\:][^proc|mnt|home|dev|boot|sys|var/lib/nfs/rpc_pipefs](.*)|/$</resource-filter> </expression> </group> Here's the hrstorage package definition from my threshd-configuration: <package name="hrstorage"> <filter>IPADDR != '0.0.0.0' & (nodeSysOID LIKE '.1.3.6.1.4.1.311.%' | nodeSysOID LIKE '.1.3.6.1.4.1.2.3.1.2.1.1.3.%')</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="hrstorage"/> </service> <outage-calendar>win64builder02</outage-calendar> </package> Disregard the name "win64builder02." It's just one of our machines. -- Mike Diehn Development Operations CD-adapco - Lebanon, NH 603 277 3188 |