SNMP Trap problem

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
scheppe
Posts: 5
Joined: Thu Feb 11, 2016 4:20 am

SNMP Trap problem

Post by scheppe »

hi guys,

hopefully you can help me with a small(for me big) problem.

i'd like to send smtp trap on some tests(on bad status) to my alarmserver. this works, but i can't send Testname or Hostname within the trap.
I read in your help that i can use macro variables within the Enterprise field, but %TestName% or %Hostname% won't work.

I get in this field on my received SNMP Trap only 0.0

Please help me soon ;)
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Enterprise is integer number, you cannot send name using this field (you can send TestID but I think its more logical to use this field as some HostMonitor ID - e.g. Enterprise=101 for all messages from HostMonitor).

Why you are not using MIB OID and MIB Value fields?
(MIB Type: OCTET STRING)

Regards
Alex
scheppe
Posts: 5
Joined: Thu Feb 11, 2016 4:20 am

Post by scheppe »

is there any other posibility to send TestName via SNMP Trap?

I can use MIB OID and MIB Values, but i don't now how i use it.

I have a normal Test Ping and how can i use MIB to send SNMP Trap to other host with TestName if bad status occurs?
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

is there any other posibility to send TestName via SNMP Trap?
Well, if you send SNMP Trap then you can provide data as variable within this Trap message. This is the only way and I do not see any problem with this.
how can i use MIB to send SNMP Trap to other host with TestName if bad status occurs
Just use %TestName% as value.

Question is what to do on another end - does your alarmserver understand what to do with such Trap message and how it should be processes? Does it expect some specific Enterprise value, specific variable OID, etc?

Regards
Alex
scheppe
Posts: 5
Joined: Thu Feb 11, 2016 4:20 am

Post by scheppe »

many thanks, that helped me so much

i have added an fictional MIB OID in action properties and put %TestName% in MIB value with OCTET STRING as MIB type as you mentioned before.

the problem was that my alerting system doesn't know about this. So i have to add a new policy in my server.

now everything is running fine.

i love KS Hostmonitor and ordered now the newest version.

The combination KS Hostmonitor with DERDACK Enterprise Alert is very powerfull and great.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

You are welcome :)

Regards
Alex
Post Reply