Re: Semi OT - Anyone monitoring PostgreSQL with nagios

From: "Jim C(dot) Nasby" <jnasby(at)pervasive(dot)com>
To: Lane Van Ingen <lvaningen(at)esncc(dot)com>
Cc: Chris Hoover <revoohc(at)gmail(dot)com>, pgsql-admin(at)postgresql(dot)org
Subject: Re: Semi OT - Anyone monitoring PostgreSQL with nagios
Date: 2005-11-08 18:56:01
Message-ID: 20051108185601.GH19551@pervasive.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Same as -t -c...

On Tue, Nov 08, 2005 at 08:10:28AM -0500, Lane Van Ingen wrote:
> 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(at)postgresql(dot)org
> [mailto:pgsql-admin-owner(at)postgresql(dot)org]On Behalf Of Jim C. Nasby
> Sent: Monday, November 07, 2005 5:38 PM
> To: Chris Hoover
> Cc: pgsql-admin(at)postgresql(dot)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(at)pervasive(dot)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
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faq
>

--
Jim C. Nasby, Sr. Engineering Consultant jnasby(at)pervasive(dot)com
Pervasive Software http://pervasive.com work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message shenanigans 2005-11-08 22:06:07 Roomity.com v 1.5 is a web 2.01
Previous Message Joost Kraaijeveld 2005-11-08 18:53:02 Re: Moving pg_xlog problem