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

    Monitoring single notification sent when expecting multiple

    Brian Husted Newbie

      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"?>
      <mbean code="org.jboss.monitor.ThresholdMonitor"
       <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">
       <attribute name="Threshold">500</attribute>
       <attribute name="Period">2000</attribute>
       <attribute name="CompareTo">-1</attribute>
       <attribute name="Enabled">true</attribute>