debian/0000755000000000000000000000000012220517562007170 5ustar debian/control0000644000000000000000000000156312220037250010567 0ustar Source: check-postgres Priority: optional Section: database Maintainer: Peter Eisentraut Uploaders: Christoph Berg Build-Depends: debhelper (>= 7.0.50~), perl, libdbd-pg-perl (>= 2.19.3), postgresql Standards-Version: 3.9.4 Homepage: http://bucardo.org/wiki/Check_postgres Vcs-Git: git://anonscm.debian.org/pkg-postgresql/check-postgres.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-postgresql/check-postgres.git Package: check-postgres Architecture: all Depends: ${misc:Depends}, ${perl:Depends}, perl, postgresql-client Enhances: postgresql Description: script for monitoring PostgreSQL databases check_postgres is a Perl script that runs many different tests against one or more Postgres databases. It uses the psql program to gather the information, and outputs the results in one of three formats: Nagios, MRTG, or simple. debian/changelog0000644000000000000000000000417612220517562011052 0ustar check-postgres (2.21.0-1) unstable; urgency=low * New upstream release. + t/02_disk_space.t: Skip if "df" doesn't work. Closes: #718052. + t/02_last_vacuum.t: Commit content in test table so the stats can see it. + check_postgres.pl, t/02_locks.t: Sort lock types. + t/02_new_version_*: Skip if SKIP_NETWORK_TESTS is set. + t/02_replicate_row.t: Set MRTG test sleep delay to 0.5s. + check_postgres.pl, t/02_slony_status.t: Fix for 9.3. * B-D on libdbd-pg-perl 2.19.3 for testing PostgreSQL >= 9.2. -- Christoph Berg Wed, 25 Sep 2013 10:31:10 +0200 check-postgres (2.20.1-1) unstable; urgency=low * New upstream release. + Basic connection check returns CRITICAL. Closes: #700866. * Run testsuite on build; disable "new version" tests because they need networking. * Repository moved to git. -- Christoph Berg Tue, 02 Jul 2013 09:46:32 +0200 check-postgres (2.20.0-1) experimental; urgency=low [ Peter Eisentraut ] * Improve watch file [ Christoph Berg ] * New upstream release. * Add testsuite runner (not used yet). -- Christoph Berg Wed, 20 Mar 2013 16:07:18 +0100 check-postgres (2.19.0-1) unstable; urgency=low * New upstream release. -- Christoph Berg Tue, 24 Jan 2012 12:35:02 +0100 check-postgres (2.18.0-1) unstable; urgency=low * New upstream release. -- Christoph Berg Wed, 05 Oct 2011 16:43:27 +0200 check-postgres (2.16.0-2) unstable; urgency=low * Merge my rouge packaging into Peter's package. Luckily, everything was pretty compatible. Closes: #635163. * Prevent running of the "cleanup" test on clean, this would need DBI in the Build-Depends and we don't run the test suite anyway. -- Christoph Berg Fri, 29 Jul 2011 23:48:15 +0200 check-postgres (2.16.0-1) unstable; urgency=low * Initial release. -- Christoph Berg Thu, 14 Jul 2011 16:43:32 +0200 check-postgres (2.14.3-1) unstable; urgency=low * Initial release (closes: #602441) -- Peter Eisentraut Tue, 30 Nov 2010 21:40:35 +0200 debian/copyright0000644000000000000000000000273312131473130011121 0ustar Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135 Name: check_postgres Maintainer: Greg Sabino Mullane Source: http://bucardo.org/wiki/Check_postgres#Download Files: * Copyright: 2007-2010, Greg Sabino Mullane License: BSD Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. debian/compat0000644000000000000000000000000212131473130010357 0ustar 7 debian/run-test0000755000000000000000000000054712216541226010704 0ustar #!/bin/sh set -eux export LC_ALL=C export SKIP_NETWORK_TESTS=1 cleanup () { rm -rf test_database_check_postgres* /tmp/cptesting_socket* } trap cleanup 0 2 3 15 for version in $(/usr/share/postgresql-common/supported-versions); do echo "#### running make test for $version ####" cleanup export PGBINDIR=/usr/lib/postgresql/$version/bin make test done debian/patches/0000755000000000000000000000000012220517715010617 5ustar debian/patches/no-tests-on-clean0000644000000000000000000000110312216541505014002 0ustar Description: prevent test cleanup on clean (this would need DBI in the Build-Depends) Author: Christoph Berg Applied-Upstream: no, Debian-specific --- a/Makefile.PL +++ b/Makefile.PL @@ -93,7 +93,7 @@ sub clean { ## no critic (RequireArgUnpacking) my $string = shift->SUPER::clean(@_); - $string =~ s{\t}{\tperl t/99_cleanup\.t\n\t}; + #$string =~ s{\t}{\tperl t/99_cleanup\.t\n\t}; $string .= qq{\nsignature_asc : \n}; $string .= qq{\t@ gpg --yes -ba check_postgres.pl\n}; $string .= qq{\t@ gpg --verify check_postgres.pl.asc\n}; debian/patches/series0000644000000000000000000000002212220517676012034 0ustar no-tests-on-clean debian/docs0000644000000000000000000000002712131473130010033 0ustar check_postgres.pl.html debian/source/0000755000000000000000000000000012131473130010461 5ustar debian/source/format0000644000000000000000000000001412131473130011667 0ustar 3.0 (quilt) debian/rules0000755000000000000000000000121112164521651010244 0ustar #!/usr/bin/make -f %: dh $@ DESTDIR = $(CURDIR)/debian/check-postgres override_dh_auto_install: dh_auto_install # drop .pl extension from script mv $(DESTDIR)/usr/bin/check_postgres.pl $(DESTDIR)/usr/bin/check_postgres sed -i 's/check_postgres\.pl/check_postgres/g' $(DESTDIR)/usr/bin/check_postgres $(DESTDIR)/usr/share/man/man*/* # install symlinks cd $(DESTDIR)/usr/bin && ./check_postgres --symlinks set -e; for f in $(DESTDIR)/usr/bin/check_postgres_*; do ln -s check_postgres.1p.gz $(DESTDIR)/usr/share/man/man1/`basename $$f`.1p.gz; done ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) override_dh_auto_test: +debian/run-test endif debian/watch0000644000000000000000000000012312131474156010217 0ustar version=3 http://bucardo.org/downloads/check_postgres-(.*).tar.gz debian uupdate