Skip to content

Commit

Permalink
Fixes #2 - enabling strict causes the value to be sent multiple times
Browse files Browse the repository at this point in the history
  • Loading branch information
altiben committed Aug 12, 2016
1 parent cde622e commit 0b3c288
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Zabbix/Sender.pm
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ is active:

sub _check_info {
my $self = shift;
if($self->_info() !~ /^Processed (\d+) Failed (\d+) Total (\d+) Seconds spent \d+.\d+$/)
if($self->_info() !~ /^Processed:?\s+(\d+);?\s+Failed:?\s+(\d+);?\s+Total:?\s+(\d+);?\s+Seconds\s+spent:?\s+\d+.\d+$/i )
{
return "Failed to parse info from zabbix server: ", $self->_info();
}
Expand Down

0 comments on commit 0b3c288

Please sign in to comment.