mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-23 21:55:16 +02:00
+ Fix #222
This commit is contained in:
parent
07108298e0
commit
33520a92d7
@ -161,7 +161,7 @@ sub run {
|
||||
centreon::plugins::misc::mymodule_load(output => $self->{output}, module => $mod_name,
|
||||
error_msg => "Cannot load module '$mod_name'.");
|
||||
my $func = $mod_name->can('load');
|
||||
$func->(request => $snmp_request);
|
||||
$func->(request => $snmp_request);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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