diff options
author | Sven Nierlein <sven@nierlein.de> | 2016-06-22 16:07:42 +0200 |
---|---|---|
committer | Sven Nierlein <sven@nierlein.de> | 2016-06-22 16:07:42 +0200 |
commit | c79f65a91e58b84629c2c76be49e47fc34e274a6 (patch) | |
tree | 6fe9038b5c4585b4d40e59c15c666d606123c885 | |
parent | aa86ee05fc2e7c29c89206c2ee1bbc3ef575eb83 (diff) | |
download | monitoring-plugin-perl-c79f65a.tar.gz |
use case insensitive regex
-rw-r--r-- | lib/Monitoring/Plugin/Getopt.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Monitoring/Plugin/Getopt.pm b/lib/Monitoring/Plugin/Getopt.pm index 9e68301..106600a 100644 --- a/lib/Monitoring/Plugin/Getopt.pm +++ b/lib/Monitoring/Plugin/Getopt.pm | |||
@@ -445,7 +445,7 @@ sub getopts | |||
445 | # Setup default alarm handler for alarm($ng->timeout) in plugin | 445 | # Setup default alarm handler for alarm($ng->timeout) in plugin |
446 | $SIG{ALRM} = sub { | 446 | $SIG{ALRM} = sub { |
447 | my $plugin = uc $self->{_attr}->{plugin}; | 447 | my $plugin = uc $self->{_attr}->{plugin}; |
448 | $plugin =~ s/^CHECK[-_]//; | 448 | $plugin =~ s/^CHECK[-_]//i; |
449 | $self->_die( | 449 | $self->_die( |
450 | sprintf("%s UNKNOWN - plugin timed out (timeout %ss)", | 450 | sprintf("%s UNKNOWN - plugin timed out (timeout %ss)", |
451 | $plugin, $self->timeout)); | 451 | $plugin, $self->timeout)); |