Friendly SNMP Reply Values

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).
Post Reply
jwarren
Posts: 4
Joined: Sun Jan 22, 2012 11:35 pm

Friendly SNMP Reply Values

Post by jwarren »

I've dug around a bit and can't seem to word my searches to come back with the answer I'm looking for.

I have a several tests that is utilizing the SNMP GET test method and they all work great. As our company is growing though, I'd like to find a way to make my alerts more user friendly.

Example, I am polling ifOperStatus on T1 interfaces on a Cisco device. The 3 common reply are 1 (UP), 2 (DOWN), 3 (TEST). But my email alerts is sending the numeral Value of what it is and what it should be. Works great for me... but I'd like to make it more user friendly for our entry level techs.

Is there a way to process the returned result to show a friendly text value that I specify instead of the 1,2,3...?
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Friendly SNMP Reply Values

Post by KS-Soft Europe »

Sure, you may use "Tune up Reply value" option, located on Test properties dialog, with expression like the following:
IF ('%SuggestedReply%'=='1') UP; IF ('%SuggestedReply%'=='2') DOWN; IF ('%SuggestedReply%'=='3') TEST; else UNKNOWN

Please check the manual or visit our web site for more information at:
Tune up Reply value option: http://www.ks-soft.net/hostmon.eng/mfra ... uneupreply
If/else statements: http://www.ks-soft.net/hostmon.eng/mfra ... m#tuneupif
jwarren
Posts: 4
Joined: Sun Jan 22, 2012 11:35 pm

Post by jwarren »

Apparently I'm doing something wrong. On my test port...

I have enabled Reverse Alert and Tune Up Reply. Under Reply Value I added a similar expression:
IF ('%SuggestedReply%'=='1') 'T1 is UP'; IF ('%SuggestedReply%'=='2') 'T1 is DOWN'; IF ('%SuggestedReply%'=='3') TEST; else UNKNOWN

On my Email alert I have told it to send variables:
%Reply%,%SuggestedStatus%, %SuggestedSimpleStatus%, %SuggestedReply%

When the test fails, the email sends and I receive the below info.
IF ('2'=='1') 'T1 is UP'; IF ('2'=='2') 'T1 is DOWN'; IF ('2'=='3') TEST; else UNKNOWN,Bad, DOWN

I'm guessing I'm using the wrong variable in my email alert but I'm just wanting to see 'T1 is DOWN'
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

What version of HostMonitor do you use?

Regards
Alex
jwarren
Posts: 4
Joined: Sun Jan 22, 2012 11:35 pm

Post by jwarren »

Version 8.32 at the moment.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

This option was implemented in version 8.64
http://www.ks-soft.net/hostmon.eng/news8.htm

Regards
Alex
jwarren
Posts: 4
Joined: Sun Jan 22, 2012 11:35 pm

Post by jwarren »

Thanks! Just placed an order to get me back up to date.
Post Reply