From 95b109a444fc463273f55c85a822b52b29294ef8 Mon Sep 17 00:00:00 2001 From: Quentin Garnier Date: Mon, 25 Aug 2014 11:00:12 +0200 Subject: [PATCH] Refs #5523 --- centreon/plugins/snmp.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/centreon/plugins/snmp.pm b/centreon/plugins/snmp.pm index b6592970e..49b84a0f8 100644 --- a/centreon/plugins/snmp.pm +++ b/centreon/plugins/snmp.pm @@ -347,7 +347,7 @@ sub get_multiple_table { # It's for "bulk". We ask 50 next values. If you set 1, it's like a getnext (snmp v1) my $repeat_count = 50; if (defined($self->{maxrepetitions}) && - $self->{maxrepetitions} =~ /^d+$/) { + $self->{maxrepetitions} =~ /^\d+$/) { $repeat_count = $self->{maxrepetitions}; } @@ -481,7 +481,7 @@ sub get_table { # It's for "bulk". We ask 50 next values. If you set 1, it's like a getnext (snmp v1) my $repeat_count = 50; if (defined($self->{maxrepetitions}) && - $self->{maxrepetitions} =~ /^d+$/) { + $self->{maxrepetitions} =~ /^\d+$/) { $repeat_count = $self->{maxrepetitions}; } @@ -825,7 +825,7 @@ Set the number of retries (default: 5) before failure. =item B<--maxrepetitions> -Max repititions value (default: 50) (only for SNMP v2 and v3). +Max repetitions value (default: 50) (only for SNMP v2 and v3). =item B<--subsetleef>