mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-09-23 09:48:39 +02:00
+ Fix #222
This commit is contained in:
parent
07108298e0
commit
33520a92d7
@ -91,6 +91,11 @@ sub run {
|
|||||||
foreach (sort @{$self->{diskpath_id_selected}}) {
|
foreach (sort @{$self->{diskpath_id_selected}}) {
|
||||||
my $name_diskpath = $self->get_display_value(id => $_);
|
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_used = $result->{$oid_dskPercentNode . '.' . $_};
|
||||||
my $prct_free = 100 - $prct_used;
|
my $prct_free = 100 - $prct_used;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user