mirror of https://github.com/mikaku/Monitorix.git
Fixed a bug that prevented a correctly data collection in the 'fail2ban' graph.
This commit is contained in:
parent
edf456a317
commit
0db10022c3
|
@ -147,8 +147,8 @@ sub fail2ban_update {
|
|||
if(/^$date/) {
|
||||
my $e = 0;
|
||||
while($e < scalar(my @fl = split(',', $fail2ban->{list}))) {
|
||||
foreach my $i (split(',', $fail2ban->{desc}->{$e})) {
|
||||
my $e2 = 0;
|
||||
foreach my $i (split(',', $fail2ban->{desc}->{$e})) {
|
||||
($str = trim($i)) =~ s/\[/\\[/;
|
||||
$str =~ s/\]/\\]/;
|
||||
$jails[$e][$e2] = 0 unless defined $jails[$e][$e2];
|
||||
|
|
Loading…
Reference in New Issue