diff --git a/centreon-plugins/database/oracle/mode/tablespaceusage.pm b/centreon-plugins/database/oracle/mode/tablespaceusage.pm index fe541970d..bd3779d4d 100644 --- a/centreon-plugins/database/oracle/mode/tablespaceusage.pm +++ b/centreon-plugins/database/oracle/mode/tablespaceusage.pm @@ -394,13 +394,19 @@ sub manage_selection { $used = $size - $free; } - $self->{tablespace}->{$name} = { used => $used, - free => $free, - total => $size, - prct_used => $percent_used, - display => lc $name }; + $self->{tablespace}->{$name} = { + used => $used, + free => $free, + total => $size, + prct_used => $percent_used, + display => lc($name) + }; } + if (scalar(keys %{$self->{tablespace}}) <= 0) { + $self->{output}->add_option_msg(short_msg => "No tablespaces found."); + $self->{output}->option_exit(); + } } 1;