Last active
          April 20, 2020 10:08 
        
      - 
      
- 
        Save veysby/cf89534dc023f668c499 to your computer and use it in GitHub Desktop. 
    Activemq: check health status using REST API
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | $curl http://localhost:8161/api/jolokia/read/org.apache.activemq:type=Broker,brokerName=localhost,service=Health | |
| {"timestamp":1449776947,"status":200,"request":{"mbean":"org.apache.activemq:brokerName=localhost,service=Health,type=Broker","type":"read"},"value":{"CurrentStatus":"Good"}} | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
I do not have
jqinstalled in my docker image so I use much simpler version:The exit status give OK/KO condition.