Async replication: how to get an alert on failure

From: Edson Richter <edsonrichter(at)hotmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Async replication: how to get an alert on failure
Date: 2012-08-02 00:04:01
Message-ID: BLU0-SMTP36295E42C95BA31416DD9C9CFCB0@phx.gbl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I have few PostgreSQL servers established with replication.
Now, is there any way to receive an e-mail in case of error during
synchronization?
I mean, is there an script (cron?) I can run (maybe every 5 minutes)
that will check if replication is stolen, and send an e-mail in case of
failure?

Thanks,

Edson Richter

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Craig Ringer 2012-08-02 00:48:43 Re: Threads With Libpq Issue
Previous Message Edson Richter 2012-08-01 22:29:57 Async replication: how to get an alert on failure