diff options
-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 19ad7fe..9e68301 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[-_]//; |
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)); |