You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Alan Cabrera (JIRA)" <ji...@apache.org> on 2006/05/21 01:31:30 UTC
[jira] Closed: (XBEAN-11) JMX notification to SNMP converter
[ http://issues.apache.org/jira/browse/XBEAN-11?page=all ]
Alan Cabrera closed XBEAN-11:
-----------------------------
Fix Version: 2.4
Resolution: Fixed
Nice. Many thanks!
> 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
> Assignee: Alan Cabrera
> Fix For: 2.4
> Attachments: snmp.diff
>
> 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