problem to convert mib with snmpttconvertmib

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Ravil
Posts: 43
Joined: Thu Feb 20, 2014 9:30 pm

problem to convert mib with snmpttconvertmib

Post 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:)
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: problem to convert mib with snmpttconvertmib

Post 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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked