You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Timothy Bish (JIRA)" <ji...@apache.org> on 2016/02/17 20:05:18 UTC

[jira] [Commented] (AMQ-6172) Broker Health check status never updates

    [ https://issues.apache.org/jira/browse/AMQ-6172?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15150985#comment-15150985 ] 

Timothy Bish commented on AMQ-6172:
-----------------------------------

I was able to invoke the health() and healthList() methods via jolokia:

{code}
curl -u admin -d "{\"type\":\"exec\",\"mbean\":\"org.apache.activemq:type=Broker,brokerName=localhost,service=Health\",\"operation\":\"health\"}" http://localhost:8161/api/jolokia/ && echo
{code} 

And:

{code}
curl -u admin -d "{\"type\":\"exec\",\"mbean\":\"org.apache.activemq:type=Broker,brokerName=localhost,service=Health\",\"operation\":\"healthList\"}" http://localhost:8161/api/jolokia/ && echo
{code}

This will update the status value that is reported in 'CurrentStatus'.  The intent is that your service should be polling the health value periodically and then you can report the current status in the interim via the 'CurrentStatus' attribute. 

> Broker Health check status never updates
> ----------------------------------------
>
>                 Key: AMQ-6172
>                 URL: https://issues.apache.org/jira/browse/AMQ-6172
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 5.13.1
>            Reporter: Yevhenii Pazii
>
> Method getCurrentStatus of HealthViewMBean class never changes status even if broker have critical conditions. No matter how this methods calls through JMX or jolokia.
> Method returns instance field without any calculations. 
> {quote}
>     public String getCurrentStatus() \{
>         return this.currentState;
>     }
> {quote}
> The method which actually updates this field is  "List<HealthStatus> healthList() throws Exception;". As far as I know no one else call this method, so status field never updates. This method works fine by JMX, but it doesn't exposed to jolokia for Rest calls.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)