X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 953A15331D for ; Mon, 18 Apr 2005 18:51:27 -0300 (ADT) 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 03329-02 for ; Mon, 18 Apr 2005 21:51:20 +0000 (GMT) Received: from ntrk2.DOF.FINANCE (exchange.dof.ca.gov [134.186.75.161]) by svr1.postgresql.org (Postfix) with ESMTP id 4B6305331B for ; Mon, 18 Apr 2005 18:51:19 -0300 (ADT) Received: by ntrk2.dof.finance with Internet Mail Service (5.5.2657.72) id <26Y7J2QC>; Mon, 18 Apr 2005 14:44:21 -0700 Message-ID: From: "Garris, Nicole" To: "'pgsql-admin@postgresql.org'" Subject: FW: Admin Tool to Send Me Email Date: Mon, 18 Apr 2005 14:51:16 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: text/plain X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.062 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200504/247 X-Sequence-Number: 17260 Yes, I looked at pgMail, thinking I could put a trigger on some system table(s). PgMail is a function which produces an e-mail. In other words, its invoked by a SQL select statement. SQL select typically works against a table. PostgreSQL's log is stored in a file, not in a table. I have no idea how to parse a log file using a SQL select statement. Also I can't see how to send the log to a table (instead of/in addition to a file). It might be easier to use some Mac OS X utility/ies. Anyone have any ideas? -----Original Message----- From: Jaime Casanova [mailto:systemguards@gmail.com] Sent: Monday, April 18, 2005 12:26 PM To: Garris, Nicole Cc: pgsql-admin@postgresql.org Subject: Re: [ADMIN] Admin Tool to Send Me Email On 4/18/05, Garris, Nicole wrote: > > > > (Previously posted to the PostgreSQL General list, with no responses yet.) > > We have been using PostgreSQL on Mac OS X for about a year now. Ongoing > monitoring has proven very easy because the DBMS engine is so reliable, and > mostly I use phpPgAdmin, an extremely useful tool. However, its worth my > while to make it even easier. I would like a tool that would send an email > whenever an error message is generated, such as messages from SQL class 53 > (53100 disk full, 53200 out of memory, 53300 too many connections), class 57 > operator intervention, class 58 system error, and a few others. > I don't know if it can be useful for you but there is a project called pgMail. You need he pl/tclu to run it. hope it can help you. regards, Jaime Casanova