mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-04-07 20:35:27 +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
6b80ac0602
commit
eacd350527
@ -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…
x
Reference in New Issue
Block a user