From 4bf3dca891fdb7e2dd1defb7cf9a21f61f76ba7c Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Fri, 6 Feb 2009 08:45:56 -0500 Subject: Bump version, minor whitespace fixes. --- check_postgres.pl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'check_postgres.pl') diff --git a/check_postgres.pl b/check_postgres.pl index b09cec441..47e42ed50 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -354,6 +354,7 @@ our %template = 'T-BAD-QUERY' => 'Invalid query returned:', ); + sub add_response { my ($type,$msg) = @_; @@ -371,6 +372,7 @@ sub add_response { push @{$type->{$header}} => [$msg,$perf]; } + sub add_unknown { my $msg = shift || $db->{error}; $msg =~ s/[\r\n]\s*/\\n /g; @@ -387,6 +389,7 @@ sub add_ok { add_response \%ok, shift; } + sub do_mrtg { ## Hashref of info to pass out for MRTG or stat my $arg = shift; @@ -419,6 +422,7 @@ sub do_mrtg { exit 0; } + sub bad_mrtg { my $msg = shift; $ERROR and ndie $ERROR; @@ -426,6 +430,7 @@ sub bad_mrtg { exit 3; } + sub do_mrtg_stats { ## Show the two highest items for mrtg stats hash @@ -2502,6 +2507,7 @@ sub check_relation_size { } ## end of check_relations_size + sub check_table_size { return check_relation_size('table'); } @@ -2902,7 +2908,6 @@ sub check_logfile { } ## end of check_logfile - sub check_query_runtime { ## Make sure a known query runs at least as fast as we think it should @@ -3703,6 +3708,7 @@ sub check_sequence { } ## end of check_sequence + sub check_checkpoint { ## Checks how long in seconds since the last checkpoint on a WAL slave -- cgit v1.2.3