[jboss-user] [Management, JMX/JBoss] - Monitoring single notification sent when expecting multiple
bhuste1
do-not-reply at jboss.com
Wed Aug 9 13:58:31 EDT 2006
I have configured a threshold monitoring mbean to monitor the QueueDepth on a JMS queue. When the QueueDepth is greater than 500, I have registered to receive a notification on the ConsoleAlterListener.
The problem I am facing is that I only ever receive the notification one time when the QueueDepth exceeds 500. The depth will go back down below 500 and minutes later it will again exceed 500 but a notificaiton is NOT sent. I did notice that if I clear the alert from the web-console then the notification will be sent again but only if you clear it each time it appears. Is there anyway to receive the notification each time the condition occurs?
Below is my config for the threshold monitor.
| <?xml version="1.0" encoding="UTF-8"?>
| <server>
| <mbean code="org.jboss.monitor.ThresholdMonitor"
| name="jboss.monitor:service=SlaveQueue_Monitor">
| <attribute name="MonitorName">SlaveQueue Monitor</attribute>
| <depends optional-attribute-name="ObservedObject">jboss.mq.destination:service=Queue,name=slave</depends>
| <attribute name="ObservedAttribute">QueueDepth</attribute>
| <depends-list optional-attribute-name="AlertListeners">
| <depends-list-element>jboss.alerts:service=ConsoleAlertListener</depends-list-element>
| </depends-list>
| <attribute name="Threshold">500</attribute>
| <attribute name="Period">2000</attribute>
| <attribute name="CompareTo">-1</attribute>
| <attribute name="Enabled">true</attribute>
| </mbean>
| </server>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964119#3964119
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964119
More information about the jboss-user
mailing list