diff --git a/plugins/check_snmp_int.pl b/plugins/check_snmp_int.pl index e680fd7..f42d02f 100755 --- a/plugins/check_snmp_int.pl +++ b/plugins/check_snmp_int.pl @@ -496,7 +496,7 @@ sub check_options { # and put the oid to query in an array verb("Filter : $o_descr"); -foreach my $key ( keys %$resultat) { +foreach my $key (sort { $$resultat{$a} cmp $$resultat{$b} } keys %$resultat) { verb("OID : $key, Desc : $$resultat{$key}"); # test by regexp or exact match my $test = defined($o_noreg)