-
1. Re: Is it possible to monitor/collect JMX notifications?
gerrie Dec 3, 2009 6:39 AM (in response to gerrie)... and/or fire an alert when a notification is published.
-
2. Re: Is it possible to monitor/collect JMX notifications?
mazz Dec 3, 2009 9:11 AM (in response to gerrie)We have a JMX plugin that you can use and extend:
http://management-platform.blogspot.com/2008/11/monitoring-custom-jmx-mbeans-with-jopr.html
It doesn't, out of box, do anything specifically with JMX notifications. But if you have your own MBean that does things, you can extend that JMX plugin by writing your own plugin and doing things like emitting a metric that counts the number of notifications that it sent out - you can then alert on that metric. Or you can emit those notifications as "events" using the event facet stuff and alert on the events (that's probably how I could do it since notifications are a kind of event).
As a side note, that actually is a pretty cool idea to support out of box. We should probably add code to the JXM plugin's components to be able to emit events for notifications that are emitted by the MBeans it manages. Something for the future, or someone in the community could take on that effort. -
3. Re: Is it possible to monitor/collect JMX notifications?
pilhuhn Dec 3, 2009 9:15 AM (in response to gerrie)Gerrie,
I second Mazz, that the best way would be to extend the JMX plugin to feed the notifications into the events subsystem, this way they would go through the standard alerting procedures.
If you are interested in implementing this, I'd be glad to point you to the right places (or anyone else).
Heik -
4. Re: Is it possible to monitor/collect JMX notifications?
gerrie Dec 7, 2009 5:37 AM (in response to gerrie)Tnx!
"mazz" wrote:
you can extend that JMX plugin by writing your own plugin and doing things like emitting a metric that counts the number of notifications that it sent out - you can then alert on that metric.
That's how I've set it up it right now."mazz" wrote:
Or you can emit those notifications as "events" using the event facet stuff and alert on the events (that's probably how I could do it since notifications are a kind of event).
This sounds like a better implementation. Since I'm new to Jopr I'll first do some reading on Jopr events. -
5. Re: Is it possible to monitor/collect JMX notifications?
pilhuhn Dec 7, 2009 7:51 AM (in response to gerrie)Gerrie,
one example that uses Events is the snmptrapd plugin, which listend on a port for incoming SNMP traps (sort of equivalent to JMX notifications) and feeds them into the events subsystem.
Source is here:
http://git.fedorahosted.org/git/rhq/rht.git?p=rhq/rhq.git;a=tree;f=modules/plugins/snmptrapd;hb=HEAD
Heiko -
6. Re: Is it possible to monitor/collect JMX notifications?
bryan.kearney Dec 7, 2009 7:59 AM (in response to gerrie)can the event subsystem push out SNMP events?
-- bk -
7. Re: Is it possible to monitor/collect JMX notifications?
pilhuhn Dec 7, 2009 8:23 AM (in response to gerrie)bk: not directly, but via the snmp traps as result of alerts. This is currently rewritten into the snmp-alert sender in the alertPlugin branch of git.