Re: [GENERAL] Monitoring Pg servers with Microsoft SCOM

2014-05-06 Thread Glen Eustace
On 7/05/2014, at 3:07 am, pgsql-general-ow...@postgresql.org wrote: > I would just use check_postgres (perl) from your agent script... Having downloaded and had a look at this script I would agree. I'll let check_postgresl do the heavy lifting and just try and get a build an MP that collects

Re: [GENERAL] Monitoring Pg servers with Microsoft SCOM

2014-05-05 Thread Glen Eustace
On 6/05/2014, at 1:30 am, Magnus Hagander wrote: > As long as you can run arbitrary SQL, you can get all the information out. > Assuming it can do something with it rather than just run a plain query. If > so, I suggest you take a look at the check_postgres nagios plugin or the > munin plugin

Re: [GENERAL] Monitoring Pg servers with Microsoft SCOM

2014-05-04 Thread Glen Eustace
On 5/05/2014, at 3:18 pm, Tatsuo Ishii wrote: >> I am in the process of deploying Microsoft System Centre Operations Manager >> and was hoping that somebody had either developed or knew of where I could >> get hold of a management pack for PostgreSQL. >> >> I am not sure whether there is an i

Re: [GENERAL] Monitoring Pg servers with Microsoft SCOM

2014-05-04 Thread Glen Eustace
On 5/05/2014, at 12:26 pm, Adrian Klaver wrote: > On 05/04/2014 04:17 PM, Glen Eustace wrote: >> I am in the process of deploying Microsoft System Centre Operations >> Manager and was hoping that somebody had either developed or knew of >> where I could get hold of

[GENERAL] Monitoring Pg servers with Microsoft SCOM

2014-05-04 Thread Glen Eustace
I am in the process of deploying Microsoft System Centre Operations Manager and was hoping that somebody had either developed or knew of where I could get hold of a management pack for PostgreSQL. I am not sure whether there is an instrumentation interface into the DB so haven't yet looked at r

Re: [GENERAL] mod_auth_pgsql and Apache 2.4

2013-10-14 Thread Glen Eustace
Back in Dec 2012, I asked whether anyone had already updated mod_auth_pgsql to work with the new authentication framework in Apache 2.3+ I didn't get any replies so went ahead and made sufficient changes to get it working in our environment. I approached the maintainer/author about adding my p

[GENERAL] mod_auth_pgsql and Apache 2.4

2012-12-17 Thread Glen Eustace
Just wondering if anyone has had a go at updating the mod_auth_pgsql authentication module to the new access/authentication provider framework ? I have had a quick look and can't seem to decide which standard module I should try to base the modifications on. I appreciate that this is really an

Re: [GENERAL] Accessing a database via AJAX scripts - solved

2010-08-09 Thread Glen Eustace
The solution to my problems involved both of the issues Tom identified. 1. Proc::Daemon::Init() call closed the libpq connection in the parent. Solution: deliberately close connection before call and open in the child after the call. 2. The status updates were being written inside

Re: [GENERAL] Accessing a database via AJAX scripts

2010-08-08 Thread Glen Eustace
Not on that much evidence; but trying to pass a libpq connection across a fork is usually risky. The trouble is that both parent and child processes now hold copies of the open socket connection, but only one of them can safely work with it. It could be that you've closed the libpq connection

Re: [GENERAL] Accessing a database via AJAX scripts

2010-08-08 Thread Glen Eustace
Hi Tom, On 08/09/2010 03:33 AM, Tom Lane wrote: Your note is awfully short of concrete details, but I'm guessing the basic reason why this wasn't working for you was you were doing all the operations as a single transaction. The results of that transaction wouldn't be visible to another one un

[GENERAL] Accessing a database via AJAX scripts

2010-08-07 Thread Glen Eustace
I am not sure where my issue lies - apache, perl or postgresql, but as they say, one has to start somewhere. My goal is to have a perl cgi script (that is accessed using AJAX) perform some operations in a database using DBI. Some of the actions are likely to take a while so my intent was to h

Re: [GENERAL] Running postgresql as a VMware ESx client

2008-11-23 Thread Glen Eustace
Generally speaking, virtualization allows you to take a bunch of low powered servers and make them live in one big box saving money on electricity and management. Generally speaking, database sers are big powerful boxes with lots of hard disks and gigs upon gigs of ram to handle terabytes of da

[GENERAL] Running postgresql as a VMware ESx client

2008-11-23 Thread Glen Eustace
Hi all, I was wondering whether anyone has had any experience running postgresql in a vm under ESx. VMware provides significant HA/DR oppurtunities and we would like to use it if we can. The DBase would be on a EMC SAN hosted LUN and the ESx servers would be dual Quad CPU HP DL-380/G5s. At

[GENERAL] zenoss monitor

2008-06-04 Thread Glen Eustace
Has anyone written or know of a zenoss plugin that can be used in the same way as the mySQLMonitor ? I can use the nagios one but was hoping to get some of the same sort of performance metrics as the mysql one provides. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Re: [GENERAL] Connections refused during backups

2007-05-07 Thread Glen Eustace
Tom Lane wrote: Glen Eustace <[EMAIL PROTECTED]> writes: My apologies, I shouldn't have used the generic socket error 'Connection refused'. What I am getting are errors like "Could not connect to database" from libnss-pgsql This is the exact message from libn

Re: [GENERAL] Connections refused during backups

2007-05-06 Thread Glen Eustace
Tom Lane wrote: Glen Eustace <[EMAIL PROTECTED]> writes: My apologies, I shouldn't have used the generic socket error 'Connection refused'. What I am getting are errors like "Could not connect to database" from libnss-pgsql Please be *exact* rather than handwa

Re: [GENERAL] Connections refused during backups

2007-05-06 Thread Glen Eustace
Tom Lane wrote: "Connection refused" is a kernel-level rejection, and at least in theory should have nothing to do with what Postgres is doing. Did you do a kernel update at the same time? regards, tom lane My apologies, I shouldn't have used the generic socket error '

[GENERAL] Connections refused during backups

2007-05-06 Thread Glen Eustace
After an upgrade from 8.0.8 to 8.1.8, I am getting a number of our scripts failing with 'connection refused' at around 4:00am, which seems to be when the nightly database backup occurs. I am using "/usr/bin/pg_dump -Fc -b -c -C" to do the deed. Has there been a change in behavior, i.e. is the

[GENERAL] An alternatives to rules and triggers

2007-05-04 Thread Glen Eustace
Is there some way that one can determine whether a table has changed i.e. an insert, delete, update, without having to resort to setting a flag in another table using a triger or rule. I was wondering whether one of the system relations keep track of whether a table has been modifed. ---

Re: [GENERAL] Inconsistent values for 'now'

2005-03-31 Thread Glen Eustace
> Offhand I'd expect the 'now' to be reduced to a timestamp constant > at the time the view is created. Hmmm, my assumption had been that the 'now' constant would be evaluated everytime the underlying SELECT was build by the planner. > although personally I'd not feel very comfortable with the id

[GENERAL] Inconsistent values for 'now'

2005-03-31 Thread Glen Eustace
Hi, I am trying to setup rules on a view that will maintain an audit trail of modifications in the real table. Things seem to be going ok but when I EXPLAIN my queries, the literal 'now' is being given two different values, one 2 days earlier. I am running 7.4.7 The view is defined to be; CREATE

[GENERAL] Problems setting up slony-1

2004-11-26 Thread Glen Eustace
I am trying to setup slony-1 and need some off list assistance from someone who has got things going ( or at least knows more than me :-). I am running 7.4.6 on both master and slave but when I run the slonik script, I get the error. :5: Initializing the cluster :7: PGRES_FATAL_ERROR create schem

Re: [GENERAL] Functions not dropped.

2004-11-01 Thread Glen Eustace
On Mon, 2004-11-01 at 21:14, Sim Zacks wrote: > I would check the template1 database to see if you had the functions > defined there as well. > Any functions/structures/data... in template1 will be moved to the new > database. Then when you try to restore the old one it will conflict. Thanks you.

[GENERAL] Functions not dropped.

2004-10-31 Thread Glen Eustace
I was a little surprised today when I tried to move a production database on to my test server. The test server already had a copy of the database so I did psql -Uadmin template1 drop database admin; create database admin; When I tried to reload the production database dump, I got a series of er

Re: [GENERAL] Mirroring databases in v8

2004-10-06 Thread Glen Eustace
On Thu, 2004-10-07 at 03:06, Tom Lane wrote: > Not sure if you are familiar with the Slony project, but that is > probably your best bet for data propagation to a live slave at present Hi Tom, Thanks for the comment. I was aware of Slony but didn't want the mirroring to require addition of trigg

Re: [GENERAL] Mirroring databases in v8

2004-10-06 Thread Glen Eustace
On Wed, 2004-10-06 at 20:03, Shridhar Daithankar wrote: > Well, you could start off with PITR capabilities of 8.0. But you may need to > do quite a bit of customization and experimentation. > > Check http://developer.postgresql.org/docs/postgres/backup-online.html > > And we would be very eage

[GENERAL] Mirroring databases in v8

2004-10-05 Thread Glen Eustace
I thought I had seen something that indicated that v8 was going to provide a means to mirror databases without needing all the triggers etc. I downloaded beta 3 but couldn't see anything that would do this. My goal is to mirror a database from one server to another, hopefully from the logs so that