diff options
author | Greg Sabino Mullane | 2009-02-06 13:45:56 +0000 |
---|---|---|
committer | Greg Sabino Mullane | 2009-02-06 13:45:56 +0000 |
commit | 4bf3dca891fdb7e2dd1defb7cf9a21f61f76ba7c (patch) | |
tree | d4d61b3a7115ee462c6e42fad6de8fbc289bc5c8 /check_postgres.pl | |
parent | 32d9df7ad3e2fa08003e814d999f2c7a91b859af (diff) |
Bump version, minor whitespace fixes.
Diffstat (limited to 'check_postgres.pl')
-rwxr-xr-x | check_postgres.pl | 8 |
1 files changed, 7 insertions, 1 deletions
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 |