Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fxnc2-0006HM-Va for pgsql-general@arkaria.postgresql.org; Thu, 06 Sep 2018 06:17:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fxnc1-0007gM-7C for pgsql-general@arkaria.postgresql.org; Thu, 06 Sep 2018 06:17:53 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fxnc0-0007g9-S7 for pgsql-general@lists.postgresql.org; Thu, 06 Sep 2018 06:17:53 +0000 Received: from n3.nabble.com ([162.255.23.22]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fxnby-0000r1-8x for pgsql-general@postgresql.org; Thu, 06 Sep 2018 06:17:51 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id 35FD3EF9C24F for ; Wed, 5 Sep 2018 23:17:49 -0700 (MST) Date: Wed, 5 Sep 2018 23:17:49 -0700 (MST) From: pavan95 To: pgsql-general@postgresql.org Message-ID: <1536214669218-0.post@n3.nabble.com> In-Reply-To: <5019F281.8070109@denninger.net> References: <5019ADE5.4050800@simkorp.com.br> <5019F281.8070109@denninger.net> Subject: Re: Async replication: how to get an alert on failure MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi Karl, Hope my mail finds you in good time. >I wrote a small program that goes to each of the servers in the replication group and checks its status on the log, computes the difference, and if off by more than "X" bytes prints a notification. Did you configure ssh ?? >If this is run from the cron it will remain silent unless the offset is breached at which point it will emit an email to the submitting owner of the job. Could you please share your views on how to achieve it? Thanks in Advance. Regards, Pavan -- Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html