Get value SNMP TRAP

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
goliath
Posts: 3
Joined: Thu Nov 26, 2009 3:25 pm

Get value SNMP TRAP

Post by goliath »

Hello

I would like to kown if there is a way to get the text value of the SNMP trap.
I have try all display type : Counter value, relative value ...
None of them display the message "Too much swap usage !" how can we have this reply ?

Image

Regards
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

As I see "Too much swap usage" on this screen shot is just description of the counter from MIB file. While real data received from agent can be different.
If you want to display this message in Reply field of the test, you should check what exactly trap message is sent by SNMP agent, then you may use "Tune up Reply" option to display this text.
E.g. Reply = if ('%SuggestedReply%'=2) Too much swap usage
or Reply = if ('%MibOid%'='1.3.6.4.1.9789.1500.2.103') Too much swap usage

Regards
Alex
I_AM
Posts: 7
Joined: Wed Mar 02, 2011 10:19 am

Post by I_AM »

Hello, i try to use SNMP Traps with a counter fit expression.

I defined the following expressions:

1. if (%1.3.6.1.4.1.3854.1.2.2.1.17.1.3.0% > 50) or (%1.3.6.1.4.1.3854.1.2.2.1.17.1.3.0% < 80)

2. (%1.3.6.1.4.1.3854.1.2.2.1.17.1.3.0% > 50) or (%1.3.6.1.4.1.3854.1.2.2.1.17.1.3.0% < 80)

3. (%1.3.6.1.4.1.3854.1.2.2.1.17.1.3.0% > '50') or (%1.3.6.1.4.1.3854.1.2.2.1.17.1.3.0% < '80')

4. ('%1.3.6.1.4.1.3854.1.2.2.1.17.1.3.0%' > '50') or ('%1.3.6.1.4.1.3854.1.2.2.1.17.1.3.0%' < '80')

I can do what I want :cry: It will simply not work !

can anybody help me ?

P.s. Traps on my Device is on and "Snmp Get" works.

Regards
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Simply not work? What exactly this means? Do you mean test status stays "Ok" when SNMP Trap was sent to HostMonitor? or test status is Unknown?
I think 1st you should try to setup SNMP Trap test using some pretty simple filter (or no filter at all) and check what exactly counters are coming with this trap message. E.g. you may use Send E-Mail action with %TrapAllValues% variable

Regards
Alex
I_AM
Posts: 7
Joined: Wed Mar 02, 2011 10:19 am

Post by I_AM »

Hello Alex,

Thanks for your answer.

I try to explain it. (see Screenshot)

I define a SNMP Trap

Image

with a Filter

Image

this works ! The State goes from good to bad.

Image

but when i define the same Filter manually i get no Traps ?? the Indicator from Host Monitor shows allways good.
No matter how high is the current percentage.

I hope you understand my Problem :-?

Greetings from Germany
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

In first case you did not mark "message contains OID ..." option so HostMonitor accepted any trap message.
I think 1st you should try to setup SNMP Trap test using some pretty simple filter (or no filter at all, just like you did) and check what exactly counters are coming with this trap message. E.g. you may use Send E-Mail action with %TrapAllValues% variable.
Have you checked this?

Regards
Alex
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

PS
Description of this OID does not look lika a trap. Are you sure device sends SNMP Trap with this counter? Perhaps you need to use SNMP Get test to request counters?

Regards
Alex
I_AM
Posts: 7
Joined: Wed Mar 02, 2011 10:19 am

Post by I_AM »

KS-Soft wrote:In first case you did not mark "message contains OID ..." option so HostMonitor accepted any trap message.
But it works ... when i mark the option i get no Traps ? :-?

Regards
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

In first case it works because you did not mark "message contains OID ..." option so HostMonitor accepted any trap message.
I think 1st you should try to setup SNMP Trap test using some pretty simple filter (or no filter at all, just like you did) and check what exactly counters are coming with this trap message. E.g. you may use Send E-Mail action with %TrapAllValues% variable. Then setup filter according to received counters.

Regards
Alex
I_AM
Posts: 7
Joined: Wed Mar 02, 2011 10:19 am

Post by I_AM »

Hi Alex,
sorry for the late reply

for SNMP trap test i use your "IP Tools". I get now the following OID
1.3.6.1.4.1.3854.1.7.1.0 with diffrent values (3,4,7) from IP Tools

I take the OID now for Host Monitor but there is no result :cry:

is there somewhere a step by step guide as I get SNMP traps to work ?
E.g. you may use Send E-Mail action with %TrapAllValues% variable
I can't do this. I'm in a test network without email support.

Regards
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

if (%1.3.6.1.4.1.3854.1.2.2.1.17.1.3.0% > 50) or (%1.3.6.1.4.1.3854.1.2.2.1.17.1.3.0% < 80)
...
...
for SNMP trap test i use your "IP Tools". I get now the following OID
1.3.6.1.4.1.3854.1.7.1.0 with diffrent values (3,4,7) from IP Tools
If your device sends OID 1.3.6.1.4.1.3854.1.7.1.0, why do you setup HostMonitor test to check for OID 1.3.6.1.4.1.3854.1.2.2.1.17.1.3.0?
>E.g. you may use Send E-Mail action with %TrapAllValues% variable
I can't do this. I'm in a test network without email support
You may use this variable for other actions, e.g. Send message to ICQ, Send Message to Jabber, Log Event, Send SMS....
Also you may use variables like %MibOID%, %MibType%, %MibValue%, etc. These variables return single string so you may use them for actions like "Execute external program".
Also, if Trap message contains single OID (or you know what OID should be checked), you may easily setup SNMP Trap test to display OID and Value in Reply field of the test item.
is there somewhere a step by step guide as I get SNMP traps to work?
Well, 1st step should be done on other side - you should configure remote device to send SNMP Trap messages to HostMonitor and I think you should know what exactly message should be sent :roll:

Regards
Alex
Post Reply