+ In storage you can have the value in cache but the disk is not here anymore.

This commit is contained in:
Quentin Garnier 2014-09-12 12:07:59 +02:00
parent 370d3e7ca8
commit ebb2cb0135
2 changed files with 3 additions and 3 deletions

View File

@ -371,5 +371,4 @@ Example: --threshold-overload='CRITICAL,^(?!(normal)$)'
=back
=cut
=cut

View File

@ -161,7 +161,8 @@ sub run {
my $oid_hrStorageUsed = '.1.3.6.1.2.1.25.2.3.1.6';
my $oid_hrStorageType = '.1.3.6.1.2.1.25.2.3.1.2';
$self->{snmp}->load(oids => [$oid_hrStorageAllocationUnits, $oid_hrStorageSize, $oid_hrStorageUsed], instances => $self->{storage_id_selected});
$self->{snmp}->load(oids => [$oid_hrStorageAllocationUnits, $oid_hrStorageSize, $oid_hrStorageUsed],
instances => $self->{storage_id_selected}, nothing_quit => 1);
my $result = $self->{snmp}->get_leef();
if (!defined($self->{option_results}->{storage}) || defined($self->{option_results}->{use_regexp})) {