Page 1 of 1

problem to convert mib with snmpttconvertmib

Posted: Fri Mar 21, 2014 10:06 am
by Ravil
Hello. I have Nagios core 3.5.1 on CentOS 6.5. I installed snmptt to receive snmp trap. Now I need convert MIB database with command snmpttconvertmib. But i have a question. The MIB of APC Smart UPS has 700 traps with different levels of importance (severity).
Now look:

Code: Select all

snmpttconvertmib --in=/etc/snmp/mibs/APC-MIB.mib --out=/etc/snmp/conf/APC-MIB.conf --exec='/usr/local/nagios/libexec/eventhandlers/submit_check_result $r TRAP 1'
If I use snmpttconvertmib as shown above, all snmp trap in MIB will receive level 1 ("warning"). How can I convert the MIB base to different levels of importance (severity) for different traps.

P.S. Sorry for dirty English. I'm from Russia:)

Re: problem to convert mib with snmpttconvertmib

Posted: Fri Mar 21, 2014 2:06 pm
by sreinhardt
You're english was just fine! I am going to move this thread to nagios core support, as it's not really a development issue. Unfortunately, there is not a way that I know of to do this, short of manually configuring snmptt.conf to work with a different variable than $s in the exec line, that would be provided by the trap itself.