VMware Cloud Community
YadongXin
Contributor
Contributor

How to receive/show SNMP trap and create alert/notification using them in vFabric Hyperic 5.0

We are trying to use Hyperic to monitor our ESB, and have set up two boxes (VMs):
- Box A is the ESB.  It is Red Hat Enterprise Linux Server release 5.9 (Tikanga) (Kernel 2.6.18).
- Box B is the Monitoring solution.  It runs MS Windows Server 2008 R2 and have Hyperic HQ Enterprise Server and Agent, both v.5.0 installed on this box.  We have also installed a trap receiver (some free tool) to look into the traffic.

Steps performed:
1. We configured Hyperic using this document: http://pubs.vmware.com/vfabric5/index.jsp?topic=/com.vmware.vfabric.hyperic.4.6/Configuring_Hyperic_....
2. The Linux box (box A) has been added as a “network device”.
3. The SMNP community string has been verified.
4. snmpTrapReceiver.listenAddress=udp:0.0.0.0/162 has been added in the config file agent.properties.
5. After the setup, we can see that the port 162 is open by java.exe.  We assume that this proves that the Agent should receive SNMP TRAPs.
6. The Trap Receiver has been configured to receive SNMP messages to the port 163.
7. Layer 7 SecureSpan Gateway sent a series of messages, and confirmed that the same number of packages was received by both port 162 on java.exe and port 163 by the Trap Receiver.

Questions:
1. How do we verify that the connection between Hyperic Server and Agent is working properly and Hyperic Server receives the information (SNMP TRAPs) sent from the ESB.
2. How do we present this information on the Hyperic Server Web Console?

Reply
0 Kudos
6 Replies
YadongXin
Contributor
Contributor

Thank you for your reply, but the link you sent to me is for sending SNMP GET message requests from Hymeric to devices, or sending SNMP Trap notification from Hymetric. But what I need is using Hymeric agent receive SNMP trap from device and showing up them either as a event or an alert in Hymetric server like the way of showing a SNMP GET message.

Reply
0 Kudos
YadongXin
Contributor
Contributor

Thank you, but if you see the question i posted, you will find i have put this link in it, and do following the doc to do config. But have difficulty for following works. The following is more detail of my qeustions.

We are trying to use Hyperic to monitor our ESB, and have set up two boxes (VMs):
- Box A is the ESB.  It is Red Hat Enterprise Linux Server release 5.9 (Tikanga) (Kernel 2.6.18).
- Box B is the Monitoring solution.  It runs MS Windows Server 2008 R2 and have Hyperic HQ Enterprise Server and Agent, both v.5.0 installed on this box.  We have also installed a trap receiver (some free tool) to look into the traffic.

Steps performed:
1. We configured Hyperic using this document: http://pubs.vmware.com/vfabric5/index.jsp?topic=/com.vmware.vfabric.hyperic.4.6/Configuring_Hyperic_....
2. The Linux box (box A) has been added as a “network device”.
3. The SMNP community string has been verified.
4. snmpTrapReceiver.listenAddress=udp:0.0.0.0/162 has been added in the config file agent.properties.
5. After the setup, we can see that the port 162 is open by java.exe.  We assume that this proves that the Agent should receive SNMP TRAPs.
6. The Trap Receiver has been configured to receive SNMP messages to the port 163.
7. Layer 7 SecureSpan Gateway sent a series of messages, and confirmed that the same number of packages was received by both port 162 on java.exe and port 163 by the Trap Receiver.

Questions:
1. How do we verify that the connection between Hyperic Server and Agent is working properly and Hyperic Server receives the information (SNMP TRAPs) sent from the ESB.
2. How do we present this information on the Hyperic Server Web Console?

Reply
0 Kudos
rwmastel
Contributor
Contributor

* Reviving old thread *

Hi.  I'm also trying to use Hyperic to trap SNMP messages.  In my case, SNMP messages from Liebert/Emerson environmental devices (Air Conditioners, UPS, etc...)  I tried following the "Configuring Hyperic as an SNMP Trap Receiver" documentation, but something doesn't work.

1.  I'm using a Linux box as the Agent set to receive traps.  Since that agent doesn't run as root, I entered the line snmpTrapReceiver.listenAddress=udp:0.0.0.0/1620 in agent.properties and restarted the agent.

2.  I created a Platform of type Network Device.  During creation of platform, I entered this info:

- Platform Type = Network Device

- FQDN = FQDN of Liebert Device A

- Agent Connection = IP and port of Linux box running the Hyperic Agent with the updated config file.

- IP Address = IP of Liebert Devcie A

- Netmask = 255.255.255.0

3.  I save this and then click on Configuration Properties to set up more information.

- snmpIp = IP of Agent on Linux box.

- snmpTransport = udp

- snmpCommunity = public

- snmpPort = 1620

- snmpVersion = (I've tried them all, but left it at default v2c)

- interface.index = ifDescr
4.  Hyperic will not allow me to save the Configuration, the error is Unable to connect to SNMP Agent (IP of Agent:1620,v2c,public).

I put the agent.log into DEBUG mode and got lots of errors.  This one seems the most important.

11-12-2013 14:00:11,126 EST DEBUG [SNMPTrapReceiver.0] [SNMPTrapReceiver@262] No plugin for 'IP_of_Agent', 'public', routing to default platform: 1:10702

11-12-2013 14:00:11,126 EST DEBUG [SNMPTrapReceiver.0] [SNMPTrapReceiver@275] plugin=1:10702, trapsReceived=7, pduType=-96, address=IP_of_Agent, community=public, msg=Null

Suggestions??

Message was edited by:  Rodd

Other messages are like this:

11-12-2013 15:25:03,005 EST DEBUG [commandlistener-generic-0] [SNMPMeasurementPlugin@312] getValue took: 3003 ms

11-12-2013 15:25:03,005 EST DEBUG [commandlistener-generic-0] [MeasurementCommandsService@216] Getting real time measurement: snmp:snmpIp=IP_of_Agent,snmpPort=161,snmpTransport=udp,snmpVersion=v2c,snmpCommunity=public,snmpUser=username,snmpSecurityContext=,snmpAuthType=none,snmpPassword=,snmpPrivacyType=none,snmpPrivacyPassPhrase=,snmpRetries=,snmpTimeout=,Avail=true:ifNumber 11-12-2013 15:25:03,006 EST DEBUG [commandlistener-generic-0] [MeasurementCommandsService@217] Result was: 0

11-12-2013 15:25:03,006 EST DEBUG [commandlistener-generic-0] [CommandListener@238] Method 'org.hyperic.hq.agent.AgentCommand@c25b3d5' returned an object result

11-12-2013 15:25:03,030 EST DEBUG [AgentDaemonMain] [SSLConnectionListener@94] Handling SSL connection from /'HypericServerIP'

11-12-2013 15:25:03,115 EST DEBUG [commandlistener-generic-0] [CommandListener@215] Dispatching request for 'rtm:getMeasurements'

11-12-2013 15:25:03,116 EST DEBUG [commandlistener-generic-0] [SNMPMeasurementPlugin@312] getValue took: 0 ms

11-12-2013 15:25:03,116 EST DEBUG [commandlistener-generic-0] [MeasurementCommandsService@245] Error getting real time measurement 'snmp:snmpIp=%snmpIp%,snmpPort=%snmpPort%,snmpTransport=%snmpTransport%,snmpVersion=%snmpVersion%,snmpCommunity=%snmpCommunity%,snmpUser=%snmpUser%,snmpSecurityContext=%snmpSecurityContext%,snmpAuthType=%snmpAuthType%,snmpPassword=****************,snmpPrivacyType=%snmpPrivacyType%,snmpPrivacyPassPhrase=*************************,snmpRetries=%snmpRetries%,snmpTimeout=%snmpTimeout%:ipInReceives__RATE__=1s': Error contacting resource: Unable to connect to SNMP Agent (snmp:null null,null) org.hyperic.hq.product.MetricUnreachableException: Unable to connect to SNMP Agent (snmp:null null,null)

and .......

11-12-2013 15:56:52,971 EST ERROR [commandlistener-generic-0] [MeasurementCommandsService@248] Error getting real time measurement: Error contacting resource: Unable to connect to SNMP Agent (IP_of_Agent:1620 v2c,public)

11-12-2013 15:56:55,976 EST ERROR [commandlistener-generic-0] [MeasurementCommandsService@248] Error getting real time measurement: Error contacting resource: Unable to connect to SNMP Agent (IP_of_Agent:1620 v2c,public)

11-12-2013 15:56:59,092 EST ERROR [commandlistener-generic-0] [MeasurementCommandsService@248] Error getting real time measurement: Error contacting resource: Unable to connect to SNMP Agent (snmp:null null,null)

11-12-2013 15:56:59,092 EST ERROR [commandlistener-generic-0] [MeasurementCommandsService@248] Error getting real time measurement: Error contacting resource: Unable to connect to SNMP Agent (snmp:null null,null)

11-12-2013 15:56:59,208 EST ERROR [commandlistener-generic-0] [MeasurementCommandsService@248] Error getting real time measurement: Error contacting resource: Unable to connect to SNMP Agent (snmp:null null,null)

11-12-2013 15:56:59,208 EST ERROR [commandlistener-generic-0] [MeasurementCommandsService@248] Error getting real time measurement: Error contacting resource: Unable to connect to SNMP Agent (snmp:null null,null)

Reply
0 Kudos
rwmastel
Contributor
Contributor

In another old post, this person indicates an SNMP platform needs defined/configured.  Is that right?  The directions state to create a platform of type Network Device.

https://communities.vmware.com/thread/389166

Who's done this SNMP Receiver configuration successfully?

Reply
0 Kudos