Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T9i0c-0006RF-Ca for pgsql-performance@postgresql.org; Thu, 06 Sep 2012 19:45:02 +0000 Received: from smtp.01.com ([199.36.142.181]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T9i0Y-0001lb-SO for pgsql-performance@postgresql.org; Thu, 06 Sep 2012 19:45:01 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp-out-1.01.com (Postfix) with ESMTP id F234D294285 for ; Thu, 6 Sep 2012 14:44:56 -0500 (CDT) X-Virus-Scanned: amavisd-new at smtp-out-1.01.com Received: from smtp.01.com ([127.0.0.1]) by localhost (smtp-out-1.01.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GEJzrZpuFci5 for ; Thu, 6 Sep 2012 14:44:56 -0500 (CDT) Received: from smtp.01.com (localhost.localdomain [127.0.0.1]) by smtp-out-1.01.com (Postfix) with ESMTP id CB677294305 for ; Thu, 6 Sep 2012 14:44:56 -0500 (CDT) Received: from Sidney-Stratton.local (70-36-143-92.dsl.dynamic.sonic.net [70.36.143.92]) by smtp-out-1.01.com (Postfix) with ESMTPSA id 7F08B294285 for ; Thu, 6 Sep 2012 14:44:56 -0500 (CDT) Message-ID: <5048FD37.1070400@agliodbs.com> Date: Thu, 06 Sep 2012 12:44:55 -0700 From: Josh Berkus Organization: PostgreSQL Experts Inc. User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:15.0) Gecko/20120824 Thunderbird/15.0 MIME-Version: 1.0 To: pgsql-performance@postgresql.org Subject: Re: HELP!!!-----Need to Sql commands to monitoring Postgresql References: <1346742779879-5722548.post@n5.nabble.com> In-Reply-To: <1346742779879-5722548.post@n5.nabble.com> X-Enigmail-Version: 1.4.4 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201209/18 X-Sequence-Number: 47764 On 9/4/12 12:12 AM, charles_xie wrote: > Hi all, > i have 5 servers that have been installing postgresql .In order to > know the postgresql working status and monitor them ,moreover i don't want > to use the monitor tools .I want to use the SQL commands to monitoring > postgresql system . please suggest any SQL COMMANDS to work successfully.if > you have some good suggestion ,you can email to me > (charles.xie@sanmina-sci.com) or sky :xqwbx163 Actually, the Nagios extension for PostgreSQL, check_postgres.pl, has a really good, very complete set of queries in its code. You could mine them from there. -- Josh Berkus PostgreSQL Experts Inc. http://pgexperts.com