mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-27 07:34:35 +02:00
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
|
-p, --port=PORT
|
||||||
SNMP port (Default 161)
|
SNMP port (Default 161)
|
||||||
-n, --name=NAME
|
-n, --name=NAME
|
||||||
Name of the process (regexp)
|
Name of the process (regexp, case insensitive per default)
|
||||||
No trailing slash !
|
No trailing slash !
|
||||||
-r, --noregexp
|
-r, --noregexp
|
||||||
Do not use regexp to match NAME in description OID
|
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
|
# test by regexp or exact match
|
||||||
my $test = defined($o_noreg)
|
my $test = defined($o_noreg)
|
||||||
? $$resultat{$key} eq $o_descr
|
? $$resultat{$key} eq $o_descr
|
||||||
: $$resultat{$key} =~ /$o_descr/;
|
: $$resultat{$key} =~ /$o_descr/i;
|
||||||
if ($test) {
|
if ($test) {
|
||||||
# get the index number of the interface
|
# get the index number of the interface
|
||||||
my @oid_list = split (/\./,$key);
|
my @oid_list = split (/\./,$key);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user