0 Replies Latest reply on May 18, 2009 9:54 AM by dhsodani

    Problem with Jboss Monitors

      Hi All,
      I have configured one StringThresholdMonitor for my custom MBean for equality test.I have also configured one EmailAlertListenerfor this monitor.

      The problem is When I provide the value for the observed attribute for the first time from jmx console i receive the email correctly.But after that I do not receive any mails even if i change the values for the observed attribute.

      I am not getting that whether the monitor/alert mechanism work for one time change in the observed value or its continuous process.I am looking some way to make it continuous monitoring/alert mechanism.Please help me to solve this issue.

      Here are the excerpts from my config files:

      
      
      Please help me in this regard.
       <mbean code="org.jboss.monitor.StringThresholdMonitor"
       name="jboss.monitor:service=TestMonitor">
       <attribute name="MonitorName">Test Monitor</attribute>
       <depends optional-attribute-name="ObservedObject">jmx.test:service=HelloWorld</depends>
       <attribute name="ObservedAttribute">Message</attribute>
       <depends-list optional-attribute-name="AlertListeners">
       <depends-list-element>jboss.alerts:service=EmailAlertListener</depends-list-element>
       </depends-list>
       <attribute name="Threshold">test</attribute>
       <attribute name="Period">1000</attribute>
       <attribute name="EqualityTriggersAlert">true</attribute>
       <attribute name="Enabled">true</attribute>
      </mbean>
      
      
      <mbean code="org.jboss.monitor.alerts.EmailAlertListener" name="jboss.alerts:service=EmailAlertListener">
       <depends>jboss:service=Mail</depends>
       <attribute name="AlertName">Email Alert</attribute>
       <attribute name="To">dh.sd@sgsits.ac.in</attribute>
       <attribute name="From">saas@impcustom.com</attribute>
       <attribute name="ReplyTo">saas@impcustom.com</attribute>
       <attribute name="SubjectTemplate">Monitor Alert</attribute>
       <attribute name="MessageTemplate">There seems to be some problem with the monitor</attribute>
      </mbean>