GOCDB / gocdb-failover-scripts

Scripts and doc for hosting a failover
1 stars 2 forks source link

Add script used to check failover process #9

Closed gregcorbett closed 2 years ago

gregcorbett commented 3 years ago

The added script checks the failover process is happening and not erroring.

It returns Icinga style return codes accordingly.

Rebasing once #8 has been merged should take care of the whitespace changes, in the mean time looking at the change without whitespace changes may be useful.

gregcorbett commented 3 years ago

@tofu-rocketry @jrha this isn't quite ready for a GitHub review (as it will be rebased at a later point), but please do take a look and leave comments 😄

gregcorbett commented 3 years ago

I've pushed a commit that ensures a text output, even if the script returns RETURN_CODE_OK, as Icinga needs this to generate notification emails.