Using Mibs to convert OID to Sting

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
MirkoW
Posts: 210
Joined: Tue Jul 01, 2008 6:51 am

Using Mibs to convert OID to Sting

Post by MirkoW »

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
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

reply-information of a Event-Trap into String
Do you mean "Reply" field of the SNMP Trap test item?
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 :roll:
However you may create custom HTML reports using %MibName%, %MibNameShort%, %TrapAllValues% and other variables.

Regards
Alex
MirkoW
Posts: 210
Joined: Tue Jul 01, 2008 6:51 am

Post by MirkoW »

hm i dont like to create a report for every trap and i dont get hundreds of traps per second, so i think its able to translate it into a readable format.

but i can use the other variables instead the reply variable.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

hm i dont like to create a report for every trap
You may create 1 report for all test items
i dont get hundreds of traps per second, so i think its able to translate it into a readable format
I have added new task into "to do" list. Medium priority
but i can use the other variables instead the reply variable.
Sure, you can use %MibName%, %MibNameShort%, %TrapAllValues% and other variables in any action

Regards
Alex
MirkoW
Posts: 210
Joined: Tue Jul 01, 2008 6:51 am

Post by MirkoW »

okay. that sounds good. so i'm waiting for updates.. but all in all.. HM is one of the best aplications :wink:
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Thank you :)

Regards
Alex
MirkoW
Posts: 210
Joined: Tue Jul 01, 2008 6:51 am

Post by MirkoW »

Hi,

there are anything new about this ?
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

We have hundreds of "medium priority" tasks. I think this option will be implemented before version 8.00 (may be version 7.80) but I cannot guarantee

Regards
Alex
MirkoW
Posts: 210
Joined: Tue Jul 01, 2008 6:51 am

Post by MirkoW »

oh thats bad because i need this so soon as possible..

it is able to add a own programmed parser (or script) to parse the email-source before HM send mail out?
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

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
MirkoW
Posts: 210
Joined: Tue Jul 01, 2008 6:51 am

Post by MirkoW »

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
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

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).
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
%TRAPALLVALUES_NameShort% will return
UnitMessage = Temperature Sensor
Status = 4

Regards
Alex
MirkoW
Posts: 210
Joined: Tue Jul 01, 2008 6:51 am

Post by MirkoW »

Hi,

but whats about the Value Number 4 ? it want to be translate too.

For example the Mib-File contain follow interpretations:

4 = OK
5 = Warning
6 = Error
etc..
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

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
MirkoW
Posts: 210
Joined: Tue Jul 01, 2008 6:51 am

Post by MirkoW »

KS-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)
Ya that sounds good :D
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
em i dont understand it.. do you can make a sample how i can add a text from a textfile to a mail?
Post Reply