Using Mibs to convert OID to Sting
Using Mibs to convert OID to Sting
Hi,
it is able to convert the reply-information of a Event-Trap into String?
for example i receive follow reply info:
1.3.6.1.2.1.33.1.6.2.1.1.0: 1
but i need follow infos like %MibNameShort% and %MibValue% as:
upsMIB.upsObjects.upsAlarm.upsAlarmTable.upsAlarmEntry.upsAlarmId = 1
it is able to convert the reply-information of a Event-Trap into String?
for example i receive follow reply info:
1.3.6.1.2.1.33.1.6.2.1.1.0: 1
but i need follow infos like %MibNameShort% and %MibValue% as:
upsMIB.upsObjects.upsAlarm.upsAlarmTable.upsAlarmEntry.upsAlarmId = 1
Do you mean "Reply" field of the SNMP Trap test item?reply-information of a Event-Trap into String
No, HostMonitor does not translate OID into name in order to increase performance. It should be able to process hundreds trap messages per second. May be we can add some option so you will be able to enable or disable such processing

However you may create custom HTML reports using %MibName%, %MibNameShort%, %TrapAllValues% and other variables.
Regards
Alex
You may create 1 report for all test itemshm i dont like to create a report for every trap
I have added new task into "to do" list. Medium priorityi dont get hundreds of traps per second, so i think its able to translate it into a readable format
Sure, you can use %MibName%, %MibNameShort%, %TrapAllValues% and other variables in any actionbut i can use the other variables instead the reply variable.
Regards
Alex
Wait a second, I though we are talking about "Reply" field of the test.
If you need to see text (instead of numberic OID) in e-mail created by "Send e-mail" action, I do not see any problem. You may use macro variables %EnterpriseName%, %EnterpriseNameShort%, %MibName%, %MibNameShort%...
If some OID cannot be resolved, you should add appropriate MIB file into database using MIB Browser.
Quote from the manual
===============
Using the database of compiled MIB files HostMonitor may translate %MibOID% from its numeric form to a MIB name. If you need to extend the database by including information about MIBs supported by some specific SNMP enabled device, use MIB Browser
===============
Regards
Alex
If you need to see text (instead of numberic OID) in e-mail created by "Send e-mail" action, I do not see any problem. You may use macro variables %EnterpriseName%, %EnterpriseNameShort%, %MibName%, %MibNameShort%...
If some OID cannot be resolved, you should add appropriate MIB file into database using MIB Browser.
Quote from the manual
===============
Using the database of compiled MIB files HostMonitor may translate %MibOID% from its numeric form to a MIB name. If you need to extend the database by including information about MIBs supported by some specific SNMP enabled device, use MIB Browser
===============
Regards
Alex
Hi,
i need to translate %Reply% and %TrapAllValues%
The Enterprise-Varaiables are not very useful because it does not display detailed Attributes and Values. It display only the Enterprise-Name Header.. For example till 1.3.6.1.4.1.2606 but not the needet Attributes 4.2.3.7.2.1.2.1
For example i get follow values (with includet mib database):
1.3.6.1.4.1.2606.4.2.3.7.2.1.2.1 = Temperature Sensor
1.3.6.1.4.1.2606.4.2.3.7.2.1.3.1 = 4
but i need the text-infos from the mib files with follow infos:
UnitMessage = Temperature Sensor
Status = OK
i need to translate %Reply% and %TrapAllValues%
The Enterprise-Varaiables are not very useful because it does not display detailed Attributes and Values. It display only the Enterprise-Name Header.. For example till 1.3.6.1.4.1.2606 but not the needet Attributes 4.2.3.7.2.1.2.1
For example i get follow values (with includet mib database):
1.3.6.1.4.1.2606.4.2.3.7.2.1.2.1 = Temperature Sensor
1.3.6.1.4.1.2606.4.2.3.7.2.1.3.1 = 4
but i need the text-infos from the mib files with follow infos:
UnitMessage = Temperature Sensor
Status = OK
Regarding %TrapAllValues% variable: I agree with you. It does not resolve OIDs. Probably we can add 2 new variables, like
- %TRAPALLVALUES_Name%
- %TRAPALLVALUES_NameShort%
I think we can implement this in next version.
Regarding %Reply%: reply field of SNMP Trap test displays either Trap type, Enterprise, OID, Counter or relative value. So, if you setup test to use Enterprise in Reply field, then you may use %EnterpriseName% variable in e-mail template (instead of %Reply% variable).
UnitMessage = Temperature Sensor
Status = 4
Regards
Alex
- %TRAPALLVALUES_Name%
- %TRAPALLVALUES_NameShort%
I think we can implement this in next version.
Regarding %Reply%: reply field of SNMP Trap test displays either Trap type, Enterprise, OID, Counter or relative value. So, if you setup test to use Enterprise in Reply field, then you may use %EnterpriseName% variable in e-mail template (instead of %Reply% variable).
%TRAPALLVALUES_NameShort% will return1.3.6.1.4.1.2606.4.2.3.7.2.1.2.1 = Temperature Sensor
1.3.6.1.4.1.2606.4.2.3.7.2.1.3.1 = 4
but i need the text-infos from the mib files with follow infos:
UnitMessage = Temperature Sensor
Status = OK
UnitMessage = Temperature Sensor
Status = 4
Regards
Alex
Then I see only 1 solution
- use HMScript action to execute (ExecuteProgram command) some BAT file or custom made EXE module that should process and record Trap parameters into text file. If you need, we can profile command line utility that replaces set of strings with another set of lines (e.g. "1.3.6.1.4.1.2606.4.2.3.7.2.1.3.1 = 4" -> "Status = OK", etc)
- second "Send e-mail" action will send this text. You may use directive like <<IncludeFile=path_to_the_file>> to include specified file into e-mail body
Regards
Alex
- use HMScript action to execute (ExecuteProgram command) some BAT file or custom made EXE module that should process and record Trap parameters into text file. If you need, we can profile command line utility that replaces set of strings with another set of lines (e.g. "1.3.6.1.4.1.2606.4.2.3.7.2.1.3.1 = 4" -> "Status = OK", etc)
- second "Send e-mail" action will send this text. You may use directive like <<IncludeFile=path_to_the_file>> to include specified file into e-mail body
Regards
Alex
Ya that sounds goodKS-Soft wrote:Then I see only 1 solution
- use HMScript action to execute (ExecuteProgram command) some BAT file or custom made EXE module that should process and record Trap parameters into text file. If you need, we can profile command line utility that replaces set of strings with another set of lines (e.g. "1.3.6.1.4.1.2606.4.2.3.7.2.1.3.1 = 4" -> "Status = OK", etc)

em i dont understand it.. do you can make a sample how i can add a text from a textfile to a mail?KS-Soft wrote: - second "Send e-mail" action will send this text. You may use directive like <<IncludeFile=path_to_the_file>> to include specified file into e-mail body