Monitor Disk Space – OpenNMS

Posted: 4th Februar 2012 by Thorben Hemmler in OpenNMS

df -h
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ad1s1a     17G    4.0G     12G    25%    /            <—
devfs          1.0K    1.0K      0B   100%    /dev

### /usr/local/etc/snmp/snmpd.conf ###

disk / 20 %
# disk /tmp 20 %

createUser snmpdInternalUser
rouser snmpdInternalUser noauth .1
iquerySecName snmpdInternalUser
agentSecName snmpdInternalUser

trapsink x.x.x.x public
#trap2sink x.x.x.x public

monitor -r 10 -o dskPath -o dskPercent -o dskErrorMsg „dskTable“ dskErrorFlag 0 1