Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 361CE6331BB for ; Fri, 11 Jun 2010 14:26:40 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 31883-02 for ; Fri, 11 Jun 2010 17:26:32 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from snt0-omc1-s42.snt0.hotmail.com (snt0-omc1-s42.snt0.hotmail.com [65.54.61.79]) by mail.postgresql.org (Postfix) with ESMTP id 6ACD8632731 for ; Fri, 11 Jun 2010 14:26:32 -0300 (ADT) Received: from SNT123-W51 ([65.55.90.7]) by snt0-omc1-s42.snt0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Fri, 11 Jun 2010 10:26:29 -0700 Message-ID: Content-Type: multipart/alternative; boundary="_183482ae-cadf-4c55-a743-c4861609c49a_" X-Originating-IP: [204.132.58.73] From: dx k9 To: posgres support Subject: check_postgres_bloat Date: Fri, 11 Jun 2010 13:26:30 -0400 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 11 Jun 2010 17:26:29.0910 (UTC) FILETIME=[3AA3AB60:01CB098B] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.791 tagged_above=-10 required=5 tests=BAYES_50=0.8, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201006/101 X-Sequence-Number: 34879 --_183482ae-cadf-4c55-a743-c4861609c49a_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Thanks everyone for the responses. =20 It seems like the problem is actually that the check_postgres_bloat does no= t check for index bloat=2C just table bloat=2C even though it says it check= s for both. =20 Below is my proof. Notice how this first check finds the indexes with idx = in their name=2C but the second one doesn't. =20 =20 check_postgres.pl version 2.14.3 postgresq version is 8.3.9 =20 =20 /usr/local/nagios/libexec # ./check_postgres_index_size --dbservice=3Dthing= -w 50 --include=3D~idx -c 100=20 =20 POSTGRES_INDEX_SIZE CRITICAL: service=3Dthing largest index is "thing1_idx"= : 288 kB | time=3D1.00 =20 =20 /usr/local/nagios/libexec # ./check_postgres_bloat --dbservice=3Dthing -w 5= 0 --include=3D~idx -c 100 POSTGRES_BLOAT UNKNOWN: service=3Dthing No matchi= ng relations found due to exclusion/inclusion options | time=3D0.18=20 =20 =20 _________________________________________________________________ The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with H= otmail.=20 http://www.windowslive.com/campaign/thenewbusy?tile=3Dmulticalendar&ocid=3D= PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5= --_183482ae-cadf-4c55-a743-c4861609c49a_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Thanks everyone for the responses.
 =3B
It seems like the problem is actually that the check_postgres_bloat does no= t check for index bloat=2C just table bloat=2C even though it says it check= s for both.
 =3B
Below is my proof. =3B Notice how this first chec= k finds the indexes with idx in their name=2C but the second one doesn't. =3B =
 =3B
check_postgres.pl version 2.14.3
postgresq version is 8.3.9
 =3B

 =3B =3B =3B

/usr/local/nagios/libexec # ./check_postgres_index_size --dbser= vice=3Dthing -w 50 --include=3D~idx -c 100

 =3B

POSTGRES_INDEX_SIZE CRITICAL: service=3Dthing largest index is = "thing1_idx": 288 kB | time=3D1.00 = =3B =3B =3B

 =3B

/usr/local/nagios/libexec # ./check_postgres_bloat --dbservice= =3Dthing -w 50 --include=3D~idx -c 100 POSTGRES_BLOAT UNKNOWN: service=3Dth= ing No matching relations found due to exclusion/inclusion options | time= =3D0.18


 =3B



The New Busy think 9 to 5 is= a cute idea. Combine multiple calendars with Hotmail. Get busy. = --_183482ae-cadf-4c55-a743-c4861609c49a_--