From 046b4bc711323600d71e5b127502fde7948e7360 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Tue, 13 Oct 2015 13:59:05 +0200 Subject: [PATCH] + Fix #190 --- snmp_standard/mode/diskio.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snmp_standard/mode/diskio.pm b/snmp_standard/mode/diskio.pm index 76d1c1746..953b69c31 100644 --- a/snmp_standard/mode/diskio.pm +++ b/snmp_standard/mode/diskio.pm @@ -340,7 +340,7 @@ sub manage_selection { $oid =~ /\.(\d+)$/; my $instance = $1; my $filter_name = $self->{results}->{$oid_diskIODevice}->{$oid}; - if (!defined($self->{option_results}->{device})) { + if (!defined($self->{option_results}->{device}) || $self->{option_results}->{device} eq '') { $self->add_result(instance => $instance); next; }