X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 8D910D7C45 for ; Tue, 8 Nov 2005 12:15:17 -0400 (AST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 37485-08 for ; Tue, 8 Nov 2005 16:15:15 +0000 (GMT) X-Greylist: delayed 03:08:14.689731 by SQLgrey- Received: from svr2.postgresql.org (svr2.postgresql.org [65.19.161.25]) by svr1.postgresql.org (Postfix) with ESMTP id D3739D7B39 for ; Tue, 8 Nov 2005 12:15:13 -0400 (AST) Received: from TWMAIL.ESNCC.COM (static-66-173-159-28.t1.cavtel.net [66.173.159.28]) by svr2.postgresql.org (Postfix) with ESMTP id 64476F1027 for ; Tue, 8 Nov 2005 13:07:01 +0000 (GMT) Received: from spawar2i8uvlb9 ([150.125.117.63]) by TWMAIL.ESNCC.COM with Microsoft SMTPSVC(5.0.2195.6713); Tue, 8 Nov 2005 08:06:54 -0500 From: "Lane Van Ingen" To: "Jim C. Nasby" , "Chris Hoover" Cc: Subject: Re: Semi OT - Anyone monitoring PostgreSQL with nagios Date: Tue, 8 Nov 2005 08:10:28 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <20051107223811.GJ19551@pervasive.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.181 Importance: Normal X-OriginalArrivalTime: 08 Nov 2005 13:06:54.0158 (UTC) FILETIME=[4A6F86E0:01C5E465] X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.029 required=5 tests=[AWL=0.029] X-Spam-Score: 0.029 X-Spam-Level: X-Archive-Number: 200511/66 X-Sequence-Number: 19439 What does the 'c' part of the -tc command do? It is not documented in any information I have. -----Original Message----- From: pgsql-admin-owner@postgresql.org [mailto:pgsql-admin-owner@postgresql.org]On Behalf Of Jim C. Nasby Sent: Monday, November 07, 2005 5:38 PM To: Chris Hoover Cc: pgsql-admin@postgresql.org Subject: Re: [ADMIN] Semi OT - Anyone monitoring PostgreSQL with nagios I'm not familiar with Nagios, but you should be able to do something like psql -tc 'select 1' database to see if it's alive and accepting queries. On Mon, Nov 07, 2005 at 04:18:55PM -0500, Chris Hoover wrote: > Is anyone using Nagios to monitor PostgreSQL? > > If so, is there any way to check for more than just your PostgreSQL instance > being up? > > This weekend, we had an issue where a database shutdown failed due to a > rogue query that would not die w/o a kill -9 being done on it. The database > remained up and accepted connections only to tell the connection to go away > because the database was shutting down. > > This up and accepting connections caused our Nagios instance to not report > the database being down. > > Any ideas on how to get around this? > > Thanks, > > Chris -- Jim C. Nasby, Sr. Engineering Consultant jnasby@pervasive.com Pervasive Software http://pervasive.com work: 512-231-6117 vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461 ---------------------------(end of broadcast)--------------------------- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq