Hi guys,
This is my first post here at Hostmon so if I am missing any info or this is the wrong forum please redirect me.
I am running Advanced HM v5.66. I have a load balancer that is sending SNMP traps to HM. I am getting the alerts in Hostmonitor however the alert being sent is SNMP v2c and it has a MESSAGE field that contains the information I am looking for. For example in one of the traps, the MESSAGE section contains:
.1.3.6.1.4.1.3375.2.4.1.1:Pool member 192.168.1.10:80 monitor status down.
.1.3.6.1.4.1.3375.2.4.1.2:192.168.1.10
.1.3.6.1.4.1.3375.2.4.1.3:80
I want to get the full message that the loadbalancer sent, sent to me in the email. However, the MACROS available only seem to be able to give information that corresponds to SNMP v1 traps.(such as enterprise etc)
So my Question is... when my device sends snmp trap and HM recieves it and then i want the WHOLE MESSAGE section in the trap to be emailed... what do I do.. which Macro Variable would help ??
Thanks for your assistance.
Alam
SNMP Traps v2c
Thanks for the quick response Alex. I figured out that %MibValue% Macro variable grabs the first line off of the Message sent in the SNMP Trap and for my purposes it is good for now.
Now that I have that and I want to parse the information in the message. I have say 20 IPs that are being reported by the same load balancer and I only want this test to be activated for 10 of them. So how can I do that?
What I see here is that when configuring the Trap filter If I select the "message conains OID" and put the OID I am receving in the first line ... 1.3.6.1.4.1.3375.2.4.1.1 and then say contains and list the IPs I want to recieve alert from. So the question is
a. Is it do able
b. If it is, then how can i put a seperator between various IPs (does ; work)
If you need more detail of what I am talking about please let me know.
Again, thanks for your quick response.
Alam
Now that I have that and I want to parse the information in the message. I have say 20 IPs that are being reported by the same load balancer and I only want this test to be activated for 10 of them. So how can I do that?
What I see here is that when configuring the Trap filter If I select the "message conains OID" and put the OID I am receving in the first line ... 1.3.6.1.4.1.3375.2.4.1.1 and then say contains and list the IPs I want to recieve alert from. So the question is
a. Is it do able
b. If it is, then how can i put a seperator between various IPs (does ; work)
If you need more detail of what I am talking about please let me know.
Again, thanks for your quick response.
Alam