mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-25 14:44:43 +02:00
indent tablespace
This commit is contained in:
parent
d55c7fd72b
commit
0584201179
@ -257,9 +257,9 @@ sub manage_container {
|
|||||||
%s
|
%s
|
||||||
%s
|
%s
|
||||||
},
|
},
|
||||||
defined($self->{option_results}->{notemp}) ? $tbs_sql_undo_empty : $tbs_sql_undo,
|
defined($self->{option_results}->{notemp}) ? $tbs_sql_undo_empty : $tbs_sql_undo,
|
||||||
defined($self->{option_results}->{notemp}) ? "AND (b.contents != 'TEMPORARY' AND b.contents != 'UNDO')" : '',
|
defined($self->{option_results}->{notemp}) ? "AND (b.contents != 'TEMPORARY' AND b.contents != 'UNDO')" : '',
|
||||||
defined($self->{option_results}->{notemp}) ? "" : $tbs_sql_temp
|
defined($self->{option_results}->{notemp}) ? "" : $tbs_sql_temp
|
||||||
);
|
);
|
||||||
|
|
||||||
$self->{sql}->query(query => $query);
|
$self->{sql}->query(query => $query);
|
||||||
@ -419,9 +419,9 @@ sub manage_selection {
|
|||||||
%s
|
%s
|
||||||
%s
|
%s
|
||||||
},
|
},
|
||||||
defined($self->{option_results}->{notemp}) ? $tbs_sql_undo_empty : $tbs_sql_undo,
|
defined($self->{option_results}->{notemp}) ? $tbs_sql_undo_empty : $tbs_sql_undo,
|
||||||
defined($self->{option_results}->{notemp}) ? "AND (b.contents != 'TEMPORARY' AND b.contents != 'UNDO')" : '',
|
defined($self->{option_results}->{notemp}) ? "AND (b.contents != 'TEMPORARY' AND b.contents != 'UNDO')" : '',
|
||||||
defined($self->{option_results}->{notemp}) ? "" : $tbs_sql_temp
|
defined($self->{option_results}->{notemp}) ? "" : $tbs_sql_temp
|
||||||
);
|
);
|
||||||
} elsif ($self->{sql}->is_version_minimum(version => '8')) {
|
} elsif ($self->{sql}->is_version_minimum(version => '8')) {
|
||||||
$query = q{SELECT
|
$query = q{SELECT
|
||||||
@ -540,7 +540,6 @@ sub manage_selection {
|
|||||||
my $result = $self->{sql}->fetchall_arrayref();
|
my $result = $self->{sql}->fetchall_arrayref();
|
||||||
|
|
||||||
$self->{tablespace} = {};
|
$self->{tablespace} = {};
|
||||||
|
|
||||||
foreach my $row (@$result) {
|
foreach my $row (@$result) {
|
||||||
my ($name, $status, $type, $extentmgmt, $bytes, $bytes_max, $bytes_free) = @$row;
|
my ($name, $status, $type, $extentmgmt, $bytes, $bytes_max, $bytes_free) = @$row;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user