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:
parent
e2d73f5a7e
commit
0fd058b2a2
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue