geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alan Cabrera (JIRA)" <j...@apache.org>
Subject [jira] Closed: (XBEAN-11) JMX notification to SNMP converter
Date Sat, 20 May 2006 23:31:30 GMT
     [ 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


Mime
View raw message