We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7e95a42 + 9fb9fd5 commit aa86ee0Copy full SHA for aa86ee0
1 file changed
lib/Monitoring/Plugin/Getopt.pm
@@ -445,7 +445,7 @@ sub getopts
445
# Setup default alarm handler for alarm($ng->timeout) in plugin
446
$SIG{ALRM} = sub {
447
my $plugin = uc $self->{_attr}->{plugin};
448
- $plugin =~ s/^check_//;
+ $plugin =~ s/^CHECK[-_]//;
449
$self->_die(
450
sprintf("%s UNKNOWN - plugin timed out (timeout %ss)",
451
$plugin, $self->timeout));
0 commit comments