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
@ -161,7 +161,7 @@ sub run {
|
|||||||
centreon::plugins::misc::mymodule_load(output => $self->{output}, module => $mod_name,
|
centreon::plugins::misc::mymodule_load(output => $self->{output}, module => $mod_name,
|
||||||
error_msg => "Cannot load module '$mod_name'.");
|
error_msg => "Cannot load module '$mod_name'.");
|
||||||
my $func = $mod_name->can('load');
|
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}}) {
|
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