From 9fa4b9caf8cc2cb5657e7291dc12464d00c9c8a5 Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Thu, 18 Feb 2010 16:35:26 -0500 Subject: [PATCH] Put all items one-per-line for relation size actions if --verbose=1 --- check_postgres.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/check_postgres.pl b/check_postgres.pl index 2edfb410b..0aac11a9d 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -3327,7 +3327,9 @@ sub check_relation_size { SLURP: while ($db->{slurp} =~ /(\d+) \| (\d+ \w+)\s+\| (\w)\s*\| (\S+)\s+\| (\S+)/gsm) { my ($size,$psize,$kind,$name,$schema) = ($1,$2,$3,$4,$5); next SLURP if skip_item($name, $schema); - $db->{perf} .= sprintf " %s$name=$size", $kind eq 'r' ? "$schema." : ''; + $db->{perf} .= sprintf "%s%s$name=$size", + $VERBOSE==1 ? "\n" : '', + $kind eq 'r' ? "$schema." : ''; ($max=$size, $pmax=$psize, $kmax=$kind, $nmax=$name, $smax=$schema) if $size > $max; } if ($max < 0) { @@ -8078,6 +8080,7 @@ Items not specifically attributed are by Greg Sabino Mullane. Change the error string for the logfile action for easier exclusion by programs like tail_n_mail Change autovac_freeze default warn/critical back to 90%/95% (Robert Treat) + Put all items one-per-line for relation size actions if --verbose=1 =item B (February 11, 2010) -- 2.39.5