Skip to content

gitlab-ctl repmgr-check-master exiting with wrong warning code

Currently exits 0 on the master, 2 on the primary, and 3 if something is wrong. This makes all non-master checks show up as critical in consul output.

We should update it to 1 for standby nodes, so they will show up as warning.

There is no real operational impact for the cluster do to this. It will make monitoring more complicated though.

https://www.consul.io/docs/agent/checks.html#check-scripts