@@ -30,7 +30,7 @@ package check_postgres;
30
30
$Data::Dumper::Indent = 2;
31
31
$Data::Dumper::Useqq = 1;
32
32
33
- our $VERSION = ' 2.15.1 ' ;
33
+ our $VERSION = ' 2.15.2 ' ;
34
34
35
35
use vars qw/ %opt $PSQL $res $COM $SQL $db / ;
36
36
@@ -2844,11 +2844,12 @@ sub check_bloat {
2844
2844
2845
2845
for my $r (@{$db -> {slurp }}) {
2846
2846
2847
- my ($dbname ,$schema ,$table ,$tups ,$pages ,$otta ,$bloat ,$wp ,$wb ,$ws ) = @$r {
2848
- qw/ db schemaname tablename tups pages otta tbloat wastedpages wastedbytes wastedsize/ };
2849
- my ($index ,$irows ,$ipages ,$iotta ,$ibloat ,$iwp ,$iwb ,$iws ) = @$r {
2850
- qw/ iname irows ipages iotta ibloat wastedipgaes wastedibytes wastedisize/ };
2851
-
2847
+ my ($dbname ,$schema ,$table ,$tups ,$pages ,$otta ,$bloat ,$wp ,$wb ) = @$r {
2848
+ qw/ db schemaname tablename tups pages otta tbloat wastedpages wastedbytes/ };
2849
+ my $ws = pretty_size($wb );
2850
+ my ($index ,$irows ,$ipages ,$iotta ,$ibloat ,$iwp ,$iwb ) = @$r {
2851
+ qw/ iname irows ipages iotta ibloat wastedipgaes wastedibytes/ };
2852
+ my $iws = pretty_size($iwb );
2852
2853
next if skip_item($table , $schema );
2853
2854
2854
2855
# # Made it past the exclusions
@@ -7179,7 +7180,7 @@ =head1 NAME
7179
7180
7180
7181
B<check_postgres.pl > - a Postgres monitoring script for Nagios, MRTG, Cacti, and others
7181
7182
7182
- This documents describes check_postgres.pl version 2.15.1
7183
+ This documents describes check_postgres.pl version 2.15.2
7183
7184
7184
7185
=head1 SYNOPSIS
7185
7186
0 commit comments