From 9bf854279df25ec1edfc7f0b61bf5018a35f7cbe Mon Sep 17 00:00:00 2001 From: Ruslan Kabalin Date: Mon, 14 Mar 2011 18:18:36 -0400 Subject: [backends] do not list excluded databases in output. When used with --include or --exclude settings, listing all available databases in perfomance output might be confusing. Thus, only those databases that are taken into account for connectons number calculation are listed. --- check_postgres.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'check_postgres.pl') diff --git a/check_postgres.pl b/check_postgres.pl index 83f10abe0..6efa00356 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -2853,10 +2853,10 @@ ORDER BY datname elsif ($w3) { $nwarn = (int $w2*$limit/100) } - $db->{perf} .= sprintf ' %s=%s;%s;%s;0;%s', - perfname($r->{datname}), $r->{current}, $nwarn, $ncrit, $limit; if (! skip_item($r->{datname})) { + $db->{perf} .= sprintf ' %s=%s;%s;%s;0;%s', + perfname($r->{datname}), $r->{current}, $nwarn, $ncrit, $limit; $total += $r->{current}; } } -- cgit v1.2.3