I'm working on traps using NET-SNMP and the DISMAN Event MIB
With the following snmpd.conf configuration:
createUser disman MD5 sercrt@1
rouser disman auth
agentSecName disman
#defaultMonitors yes
disk / 90%
disk /var 85%
disk /opt 95%
disk /opt/pkgs 90%
disk /ufda 90%
proc cron
proc rtrcopy 1 1
proc socks1081 1 1
# monitor must have ".." in the line
monitor -u disman -r 30 -o prNames.1 -o prErrMessage.1 "Cron not running" prErrorFlag.1 != 0
monitor -u disman -r 30 -o prNames.2 -o prErrMessage.2 "rtrcopy running" prErrorFlag.2 != 0
monitor -u disman -r 30 -o prNames.3 -o prErrMessage.3 "socks1081 running" prErrorFlag.3 != 0
monitor -u disman -r 30 -o dskPath.1 -o dskErrorMsg.1 "/ is below 90%" dskErrorFlag.1 != 0
monitor -u disman -r 30 -o dskPath.2 -o dskErrorMsg.2 "/var is below 90%" dskErrorFlag.2 != 0
monitor -u disman -r 30 -o dskPath.3 -o dskErrorMsg.3 "/opt is below 90%" dskErrorFlag.3 != 0
monitor -u disman -r 30 -o dskPath.4 -o dskErrorMsg.4 "/opt/pkgs is below 90%" dskErrorFlag.4 != 0
monitor -u disman -r 30 -o dskPath.5 -o dskErrorMsg.5 "/ufda is below 90%" dskErrorFlag.5 != 0
I find that the disman trap is populating the following variables:
$1 = mteHotTrigger dskTable
$2 = mteHotTargetNameThe ''
$3 = mteHotContextName ''
$4 = mteHotOID .1.3.6.1.4.1.2021.9.1.100.2
$5 = mteHotValue 1
On an Event list this isn't very informative for Operators. I think if I could populate mteHotContextName, with the some kind of helpful text e.g. "/ is below 90%", then this would be much more useful
I can't see how to do this with the monitor directive
Does anyone know how to do this?