mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-28 08:04:36 +02:00
+ Fix #523
This commit is contained in:
parent
d8232223ba
commit
9458d4726d
@ -162,6 +162,18 @@ sub run {
|
|||||||
foreach (sort @{$self->{storage_id_selected}}) {
|
foreach (sort @{$self->{storage_id_selected}}) {
|
||||||
my $name_storage = $self->get_display_value(id => $_);
|
my $name_storage = $self->get_display_value(id => $_);
|
||||||
|
|
||||||
|
if (!defined($result->{$oid_hrStorageAllocationUnits . "." . $_})) {
|
||||||
|
if ($multiple == 0) {
|
||||||
|
$self->{output}->add_option_msg(severity => 'UNKNOWN',
|
||||||
|
short_msg => sprintf("Skipping storage '%s': not found (need to reload the cache)",
|
||||||
|
$name_storage));
|
||||||
|
} else {
|
||||||
|
$self->{output}->add_option_msg(long_msg => sprintf("Skipping storage '%s': not found (need to reload the cache)",
|
||||||
|
$name_storage));
|
||||||
|
}
|
||||||
|
next;
|
||||||
|
}
|
||||||
|
|
||||||
# in bytes hrStorageAllocationUnits
|
# in bytes hrStorageAllocationUnits
|
||||||
my $total_size = $result->{$oid_hrStorageSize . "." . $_} * $result->{$oid_hrStorageAllocationUnits . "." . $_};
|
my $total_size = $result->{$oid_hrStorageSize . "." . $_} * $result->{$oid_hrStorageAllocationUnits . "." . $_};
|
||||||
if ($total_size <= 0) {
|
if ($total_size <= 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user