On 21.01.20 04:58, Tim Bain wrote:
If I'm understanding you correctly, you want to connect to a TCP port, send some text, and have the broker respond with text that says it's healthy or unhealthy. I'm not aware of a way to do specifically that for ActiveMQ.
Yes. This is my wish.
You can check that the OpenWire port is open, but you won't get the status back explicitly (you have to assume that a connected TCP port means nothing is wrong, which might not be accurate) and you'll get unwanted logging due to the connections not actually being in the OpenWire protocol.
this is what I am doing now. Check if port open
You can check that the web console returns a 200 (which might play nicer with certain third-party monitoring tools and doesn't result in unwanted logging), but you're still assuming that a 200 means that the broker is OK, which may be inaccurate.
web console is disabled in our setup
You can use JMX to check for certain known failure conditions (e.g. persistent store being full), but you've said that you don't want to use JMX.
Can't use JMX
Those are basically the options as I know them, unless you want to get into the ActiveMQ code and build a health check endpoint that behaves exactly how you want it to.
Thanky you. It's helpful to know that what I search for doesn't exist. Have a good day cheers Daniel
