[jboss-jira] [JBoss JIRA] Created: (JBJMX-98) Monitoring Only Sends Single Notification Message

Brian Husted (JIRA) jira-events at jboss.com
Wed Aug 9 15:51:12 EDT 2006


Monitoring Only Sends Single Notification Message
-------------------------------------------------

                 Key: JBJMX-98
                 URL: http://jira.jboss.com/jira/browse/JBJMX-98
             Project: JBoss JMX
          Issue Type: Bug
    Affects Versions: JBossAS-4.0.0
         Environment: Windows 2000, Sun JDK 1.5, Single CPU 1GB RAM
            Reporter: Brian Husted


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 is that only one notification is sent 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 click the clear-all-alerts button on the web-console then the notification will be sent again but only if you clear it each time it appears. 

Below is my config for the threshold monitor.   I have tested this with the ConsoleAlertMonitor and a custom MBeanListener and I experience the same problem with either configuration.

[Code]

<?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=B</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>

 [/Code]


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list