Skip to content

Instantly share code, notes, and snippets.

@galvarado
Created May 14, 2020 04:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save galvarado/a6be4582a8879bfe0371744bf13af5c4 to your computer and use it in GitHub Desktop.
Save galvarado/a6be4582a8879bfe0371744bf13af5c4 to your computer and use it in GitHub Desktop.
echo -e "\n\n########## Containers unhealthy ##########\n\n"
docker ps | grep unhealthy
echo -e "\n\n########## Pacemaker Status ##########\n\n"
pcs status
echo -e "\n\n########## RabbitMQ Status ##########\n\n"
docker exec -ti $(docker ps | grep -oP "rabbitmq-bundle-docker-[0-9]+") rabbitmqctl cluster_status
echo -e "\n\n########## Galera Status ##########\n\n"
docker exec -ti $(docker ps | grep -oP "galera-bundle-docker-[0-9]+") mysql -e "SHOW GLOBAL STATUS LIKE 'wsrep_%'" | grep -E -- 'wsrep_local_state_comment|wsrep_evs_state'
echo -e "\n\n########## Redis Status ##########\n\n"
docker exec -ti $(docker ps | grep -oP "redis-bundle-docker-[0-9]+") ps -efw
echo -e "\n\n########## HAProxy Status ##########\n\n"
docker exec -it $(docker ps | grep -oP "haproxy-bundle-docker-[0-9]+") ps -efw
echo -e "\n\n########## Ceph Status ##########\n\n"
docker exec -ti $(docker ps | grep -oP "ceph-mon-controller01[0-9]*") ceph -s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment