Re: Semi OT - Anyone monitoring PostgreSQL with nagios - Mailing list pgsql-admin

From Jim C. Nasby
Subject Re: Semi OT - Anyone monitoring PostgreSQL with nagios
Date
Msg-id 20051107223811.GJ19551@pervasive.com
Whole thread Raw
In response to Semi OT - Anyone monitoring PostgreSQL with nagios  (Chris Hoover <revoohc@gmail.com>)
Responses Re: Semi OT - Anyone monitoring PostgreSQL with nagios
List pgsql-admin
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

pgsql-admin by date:

Previous
From: Chris Hoover
Date:
Subject: Semi OT - Anyone monitoring PostgreSQL with nagios
Next
From: Joost Kraaijeveld
Date:
Subject: Moving pg_xlog problem