Skip to content

Instantly share code, notes, and snippets.

@4383
Last active April 15, 2020 17:23
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 4383/f582ba2b7239e2f5074f034b38ed6582 to your computer and use it in GitHub Desktop.
Save 4383/f582ba2b7239e2f5074f034b38ed6582 to your computer and use it in GitHub Desktop.
Check the number of error that happened in a cluster

This logs all errors recorded by the cluster by using crm_mon

$ crm_mon --as-xml | xmllint --xpath 'count(//failures/failure)' -

This one dumps current fail count per resource and per operation by using cibadmin

$ cibadmin -Q | grep fail-count
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment