JMX notification to SNMP converter
----------------------------------
Key: XBEAN-11
URL: http://issues.apache.org/jira/browse/XBEAN-11
Project: XBean
Type: New Feature
Reporter: Dan Diephouse
This patch adds an xbean-snmp module which converts jmx notifications to snmp messages. Everything
is configured via beans. Here is a short sample:
SnmpEmitter em = new SnmpEmitter();
SnmpServer ss = new SnmpServer();
ss.setHost("127.0.0.1");
ss.setPort(162);
ss.setVarBindings(new ArrayList());
/* Bind the JMX notification type "java.management.memory.threshold.exceeded"
* to the specified OID. The payload of the snmp message will be the usage
* attribute.
*/
SnmpBinding binding = new SnmpBinding();
binding.setOid("1.3.6.1.2.1.1.3");
binding.setPayload("usage");
binding.setType("java.management.memory.threshold.exceeded");
ss.getVarBindings().add(binding);
Set servers = new HashSet();
servers.add(ss);
em.setServers(servers);
em.start();
Then all you need to do as add the SnmpEmitter as a NotificationListener for your JMX events.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
|