Processed SNMP MIB's missing EXEC lines
Posted: Mon Mar 24, 2014 12:54 pm
I noticed that when I attempt to add new MIB's into my Nagios system, the processed mibs do not contain the proper EXEC lines, and therefore, never create notifications as they should.
For example, this is a properly configured stanza in snmptt.conf:
And here is what gets generated if I use the MIB uploader and select "Process trap":
When I run snmptt in debug mode, I see the following errors when the trap comes in, resulting in no notification being sent.
EXEC line(s):
EXEC line not defined
Am I doing something wrong, or is there a bug in my version of my MIB uploader utility?
For example, this is a properly configured stanza in snmptt.conf:
Code: Select all
EVENT drivePredictiveFailure .1.3.6.1.4.1.3183.1.1.0.880386 "Status Events" Normal
FORMAT Drive Predictive Failure event. $*
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "Drive Predictive Failure event. $*"
SDESC
Drive Predictive Failure event.
Variables:
EDESCCode: Select all
EVENT drivePredictiveFailure .1.3.6.1.4.1.3183.1.1.0.880386 "Status Events" WARNING
FORMAT Drive Predictive Failure event. $*
SDESC
Drive Predictive Failure event.
Variables:
EDESCEXEC line(s):
EXEC line not defined
Am I doing something wrong, or is there a bug in my version of my MIB uploader utility?