0 Replies Latest reply on Aug 9, 2006 1:58 PM by bhuste1

    Monitoring single notification sent when expecting multiple

    bhuste1

      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>