You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Dan Diephouse (JIRA)" <ji...@apache.org> on 2006/05/15 20:19:05 UTC
[jira] Created: (XBEAN-11) JMX notification to SNMP converter
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
[jira] Updated: (XBEAN-11) JMX notification to SNMP converter
Posted by "Dan Diephouse (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/XBEAN-11?page=all ]
Dan Diephouse updated XBEAN-11:
-------------------------------
Attachment: snmp.diff
> 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
> 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
[jira] Updated: (XBEAN-11) JMX notification to SNMP converter
Posted by "Alan Cabrera (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/XBEAN-11?page=all ]
Alan Cabrera updated XBEAN-11:
------------------------------
Component: jmx
> JMX notification to SNMP converter
> ----------------------------------
>
> Key: XBEAN-11
> URL: http://issues.apache.org/jira/browse/XBEAN-11
> Project: XBean
> Type: New Feature
> Components: jmx
> 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
[jira] Closed: (XBEAN-11) JMX notification to SNMP converter
Posted by "Alan Cabrera (JIRA)" <ji...@apache.org>.
[ 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
[jira] Assigned: (XBEAN-11) JMX notification to SNMP converter
Posted by "Alan Cabrera (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/XBEAN-11?page=all ]
Alan Cabrera reassigned XBEAN-11:
---------------------------------
Assign To: Alan Cabrera
> 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
> 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