[check_postgres] compile help on check_postgres

Matt Hodson matth at geospiza.com
Mon Feb 1 21:40:34 UTC 2010


i have issues!  i'm a moderate level linux sys admin running 32 and 64  
bit centos el4/5 on various servers.

help?

1) there is no conf file or place to set variables that i can see. i'm  
running PG form a unique path.  where do i set that?  i'm thinking  
that there is a variable or dep i'm missing that will solve all my woes.

2) running 'perl makefile' gives:
$ perl Makefile.PL
Configuring check_postgres 2.13.0
Warning: prerequisite Test::More 0.61 not found. We have 0.47.
Warning: prerequisite version 0 not found.
Writing Makefile for check_postgres

3) and the running 'make'
$ make
cp check_postgres.pl blib/script/check_postgres.pl
/usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/ 
check_postgres.pl
Manifying blib/man3/check_postgres.3pm

4) and then running '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................String found where operator expected at t/ 
00_basic.t line 15, near "BAIL_OUT "Script did not compile, cancelling  
rest of tests.\n""
	(Do you need to predeclare BAIL_OUT?)
syntax error at t/00_basic.t line 15, near "BAIL_OUT "Script did not  
compile, cancelling rest of tests.\n""
Execution of t/00_basic.t aborted due to compilation errors.
# Looks like your test died before it could output anything.
t/00_basic................dubious
	Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-2
	Failed 2/2 tests, 0.00% okay
t/00_signature............skipped
         all skipped: Test skipped unless environment variable  
RELEASE_TESTING is set
t/00_test_tester..........Can't locate Time/HiRes.pm in @INC (@INC  
contains: t . /usr/local/nagios/libexec/check_postgres-2.13.0/blib/ 
lib /usr/local/nagios/libexec/check_postgres-2.13.0/blib/arch /usr/lib/ 
perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/lib/ 
perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/ 
5.8.5 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.5/i386- 
linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/ 
vendor_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/ 
5.8.3 /usr/lib/perl5/vendor_perl) at t/CP_Testing.pm line 9.
BEGIN failed--compilation aborted at t/CP_Testing.pm line 9.
Compilation failed in require at t/00_test_tester.t line 11.
BEGIN failed--compilation aborted at t/00_test_tester.t line 11.
# Looks like your test died before it could output anything.
t/00_test_tester..........dubious
	Test returned status 2 (wstat 512, 0x200)

*****

DIED. FAILED test 1
	Failed 1/1 tests, 0.00% okay
Failed Test              Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
t/00_basic.t              255 65280     2    4 200.00%  1-2
t/00_test_tester.t          2   512     1    2 200.00%  1
t/02_autovac_freeze.t       2   512     8   16 200.00%  1-8
t/02_backends.t             2   512    53  106 200.00%  1-53
t/02_bloat.t                2   512    26   52 200.00%  1-26
t/02_checkpoint.t           2   512    13   26 200.00%  1-13
t/02_connection.t           2   512    12   24 200.00%  1-12
t/02_custom_query.t         2   512    11   22 200.00%  1-11
t/02_database_size.t        2   512    49   98 200.00%  1-49
t/02_dbstats.t              2   512    42   84 200.00%  1-42
t/02_disabled_triggers.t    2   512    13   26 200.00%  1-13
t/02_disk_space.t           2   512     7   14 200.00%  1-7
t/02_fsm_pages.t            2   512     7   14 200.00%  1-7
t/02_fsm_relations.t        2   512     7   14 200.00%  1-7
t/02_last_analyze.t         2   512    14   28 200.00%  1-14
t/02_last_vacuum.t          2   512    14   28 200.00%  1-14
t/02_listener.t             2   512     8   16 200.00%  1-8
t/02_locks.t                2   512    14   28 200.00%  1-14
t/02_logfile.t              2   512    11   22 200.00%  1-11
t/02_new_version_cp.t       2   512     5   10 200.00%  1-5
t/02_new_version_pg.t       2   512     5   10 200.00%  1-5
t/02_prepared_txns.t        2   512    10   20 200.00%  1-10
t/02_query_runtime.t        2   512    17   34 200.00%  1-17
t/02_query_time.t           2   512    13   26 200.00%  1-13
t/02_relation_size.t        2   512    23   46 200.00%  1-23
t/02_replicate_row.t        2   512    19   38 200.00%  1-19
t/02_same_schema.t          2   512    47   94 200.00%  1-47
t/02_sequence.t             2   512    11   22 200.00%  1-11
t/02_settings_checksum.t    2   512     8   16 200.00%  1-8
t/02_timesync.t             2   512    20   40 200.00%  1-20
t/02_txn_idle.t             2   512    13   26 200.00%  1-13
t/02_txn_time.t             2   512    14   28 200.00%  1-14
t/02_txn_wraparound.t       2   512    16   32 200.00%  1-16
t/02_version.t              2   512    28   56 200.00%  1-28
t/02_wal_files.t            2   512    11   22 200.00%  1-11
t/04_timeout.t              2   512     2    4 200.00%  1-2
t/99_cleanup.t              2   512     1    2 200.00%  1
2 tests skipped.
Failed 37/39 test scripts, 5.13% okay. 575/575 subtests failed, 0.00%  
okay.
make: *** [test_dynamic] Error 2




-------
Matt Hodson
Scientific Customer Support, Geospiza
(206) 633-4403, Ext. 111
http://www.geospiza.com




-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://mail.endcrypt.com/pipermail/check_postgres/attachments/20100201/8994452e/attachment-0001.html 


More information about the Check_postgres mailing list