[check_postgres] error on make test

lance raymond lance.raymond at gmail.com
Wed Aug 8 16:50:23 UTC 2012


Good afternoon, I am looking to use the nagios plugin, and as much as I
would like to do the lazy admin way of copying, I am trying the full.  This
is running on a ubuntu 12.04LTS server, and when I issue the make test, I
get all fails;   here is the start of the errors.

make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00_basic.t .............. Use of uninitialized value
$check_postgres::opt{"output"} in lc at
/home/ubuntu/check_postgres-2.11.1/blib/lib/check_postgres.pl line 711.
t/00_basic.t .............. ok
t/00_signature.t .......... skipped: Set the environment variable
TEST_SIGNATURE to enable this test
t/00_test_tester.t ........ Can't exec "pg_ctl": No such file or directory
at t/CP_Testing.pm line 170.
Use of uninitialized value in pattern match (m//) at t/CP_Testing.pm line
170.
Could not determine the version of pg_ctl in use!
# Looks like your test exited with 2 before it could output anything.
t/00_test_tester.t ........ Dubious, test returned 2 (wstat 512, 0x200)
Failed 1/1 subtests
t/02_autovac_freeze.t ..... Can't exec "pg_ctl": No such file or directory
at t/CP_Testing.pm line 170.
Use of uninitialized value in pattern match (m//) at t/CP_Testing.pm line
170.
Could not determine the version of pg_ctl in use!


That file does exist under /usr/lib/postgresql/9.1/bin
clusterdb  createlang  dropdb    dropuser  pg_basebackup   *pg_ctl*
pg_dumpall    pg_restore     pg_upgrade  postmaster  reindexdb
createdb   createuser  droplang  initdb    pg_controldata  pg_dump
 pg_resetxlog  pg_test_fsync  postgres    psql        vacuumdb

Not sure if it's a path issue, or just do the copy way and will it work.
The doc did say email with issues, I will be joining the maillist as well
after lunch.

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.endcrypt.com/pipermail/check_postgres/attachments/20120808/20c4b34f/attachment.html>


More information about the Check_postgres mailing list