snmpttΒΆ
Derived from SNMP Trap Translator v1.4 (r514) at http://www.snmptt.org/
v1.6beta1 changes:
Added helper script
convert-severity-for-nagiosto convert severity values from MIB files (such as “OK”, “Normal”, “WARNING”, “CRITICAL”) to numeric values 0-3 to be used by Nagiossubmit_check_result scriptAdded
--preexec=''option to snmpttconvertmib to add PREEXEC lines to snmptt config files, for the purpose of using the output ofconvert-severity-for-nagiosscript in the EXEC line as$p1such as this:PREEXEC /usr/sbin/convert-severity-for-nagios $s EXEC /usr/bin/sudo -u nagios /usr/local/nagios/libexec/eventhandlers/submit_check_result "$r" "snmp_traps" $p1 "$O: $1 $2 $3 $4 $5"
To get the code, go to this derivative of snmptt on GitHub.