mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-31 01:24:35 +02:00
+ Fix #222
This commit is contained in:
parent
bd9fd07391
commit
a2272f189d
@ -91,6 +91,11 @@ sub run {
|
||||
foreach (sort @{$self->{diskpath_id_selected}}) {
|
||||
my $name_diskpath = $self->get_display_value(id => $_);
|
||||
|
||||
if (!defined($result->{$oid_dskPercentNode . '.' . $_})) {
|
||||
$self->{output}->output_add(long_msg => "Cannot usage for '" . $name_diskpath . "'", debug => 1);
|
||||
next;
|
||||
}
|
||||
|
||||
my $prct_used = $result->{$oid_dskPercentNode . '.' . $_};
|
||||
my $prct_free = 100 - $prct_used;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user