This is a simple monitoring script which can check periodically a postgreSQL connection on a postgreSQL cluster hosted on hetzner with an failover ip.
- copy
config.example.yaml
toconfig.yaml
and set the configuration - add an ssh key to
ssh/id_rsa
which can access the server to create a trigger file - (optional) add ssl certificates to
ssl/client.crt
,ssl/client.key
andssl/root.crt
if your postgreSQL cluster support ssl connection - run
ruby check.rb
via cron