get rabbitmq status by using api.