From c79f65a91e58b84629c2c76be49e47fc34e274a6 Mon Sep 17 00:00:00 2001 From: Sven Nierlein Date: Wed, 22 Jun 2016 16:07:42 +0200 Subject: use case insensitive regex 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 # Setup default alarm handler for alarm($ng->timeout) in plugin $SIG{ALRM} = sub { my $plugin = uc $self->{_attr}->{plugin}; - $plugin =~ s/^CHECK[-_]//; + $plugin =~ s/^CHECK[-_]//i; $self->_die( sprintf("%s UNKNOWN - plugin timed out (timeout %ss)", $plugin, $self->timeout)); -- cgit v0.10-9-g596f