|
From: Andrea <ar...@co...> - 2008-11-10 14:47:08
|
Hi all, i'm running opennms 1.6.0-1 and i'm trying to setup thresholding
for disk-usage;
Here's what i did:
Setup net-snmp on the target host in order to let me monitor filesystems
Config thresholds in this way:
thresholds.xml:
####################
<group name="theoden-snmp" rrdRepository="/opt/opennms/share/rrd/snmp/">
<threshold type="high" ds-type="dskIndex" value="70.0"
rearm="66.0" trigger="1" ds-label="hrStorageDescr"
triggeredUEI="uei.opennms.org/ComuneModena/disk-high"
rearmedUEI="uei.opennms.org/ComuneModena/disk-rearm"
ds-name="ns-dskPercent">
<resource-filter field="hrStorageDescr">/home</resource-filter>
</threshold>
</group>
####################
threshdconfiguration.xml:
###################
<package name="example1">
<filter> IPADDR IPLIKE 10.8.1.161</filter>
<specific>10.8.1.161</specific>
<service name="SNMP" interval="120000"
user-defined="false" status="on">
<parameter key="range" value="120000"/>
</service>
</package>
##################
and, in collectd-configuration.xml i added to the example1 package these
lines:
<parameter key="thresholding-enabled" value="true"/>
<parameter key="thresholding-group" value="theoden-snmp"/>
My goal was to test thresholding on the /home directory of the target
host, so i simply mv some data from another filesystem to /home untill
it reached 71% of use.
I wait almost threee snmp-polling periods ( 120 seconds ), but nothing
is reported in threshd.log file. I suppose i made mistakes in setting
Datasource, Datasource type, Datasource label and, probably in the
Resource Filters, but i don't understand how must i "write" them....
Someone can put some light on this, thanks a lot in advance,
--Andrea
|