Permit case insensitive to process name.

git-svn-id: http://svn.centreon.com/trunk/plugins-2.x@9517 6bcd3966-0018-0410-8128-fd23d134de7e
This commit is contained in:
Damien Duponchelle 2009-12-04 16:35:51 +00:00
parent e2d73f5a7e
commit 0fd058b2a2
1 changed files with 2 additions and 2 deletions

View File

@ -181,7 +181,7 @@ sub help {
-p, --port=PORT
SNMP port (Default 161)
-n, --name=NAME
Name of the process (regexp)
Name of the process (regexp, case insensitive per default)
No trailing slash !
-r, --noregexp
Do not use regexp to match NAME in description OID
@ -379,7 +379,7 @@ foreach my $key ( keys %$resultat) {
# test by regexp or exact match
my $test = defined($o_noreg)
? $$resultat{$key} eq $o_descr
: $$resultat{$key} =~ /$o_descr/;
: $$resultat{$key} =~ /$o_descr/i;
if ($test) {
# get the index number of the interface
my @oid_list = split (/\./,$key);