SNMP enumerations in Object Tool

Started by Beda, April 18, 2015, 04:40:59 PM

Previous topic - Next topic

Beda

Hello,
I'd like to ask you if there is a way how to display string enumerations from a MIB file instead of an integer value in a SNMP Table Object Tool (or in MIB Explorer)?

The snmp integer enumerations are described for example here:
https://www.webnms.com/snmp/help/snmpapi/snmpv1/using_mibs_in_applns/enumintegers.html
and in the mib file (mymibfile.txt), they can look like this

severity OBJECT-TYPE
SYNTAX INTEGER {
info(0),
warning(1),
error(2),
fatalError(3)
}
MAX-ACCESS read-only
STATUS current
DESCRIPTION "Severity of the error"

Instead of a number (1), I would like to see the associated string (warning) in the table.

I tried to track the enumerations in code, but it seems to me that they don't even get to the netxms.mib file. Does NetXMS read the mib files (with .txt suffix) again or is it necessary to store the enumeration strings in the netxms.mib file? I'm afraid that modifying the netxms.mib file could cause a lot of trouble during parsing.

I could try to implement this functionality myself (if it isn't implemented yet), but now I feel a bit lost, so each hint or advice would help me.

I'm using NetXMS 2.0-M2 on Ubuntu.