Build precise queries to find exactly what you need
Press ESC to close
@svamberg
Favorites2
Views596
Projects2
This plugin needs small patch: --- check_file_content.pl.orig 2015-09-15 13:44:43.941945012 +0200 +++ check_file_content.pl 2015-09-15 13:42:31.572945415 +0200 @@ -56,7 +56,7 @@ my $o_user= undef; # user my $o_password= undef; # password my $o_domain= undef; # domain -my @o_search= undef; # word or chain we search +my @o_search= (); # word or chain we search my @o_exception= undef; # exception word or chain we not search my $o_check_type= undef; # check type my $o_version= undef; # print version @@ -288,7 +288,7 @@ # Should match foreach (@o_search) { - if ($line =~ m/@o_search/) { + if ($line =~ m/$_/) { if ($exception==1) { if ($line =~ m/@o_exception/) { $found=0;
Reviewed 10 years ago
Output of 0.9.x fail2ban is different (added white characters). This patch fix it: --- a/check_fail2ban.sh +++ b/check_fail2ban.sh @@ -105,7 +105,7 @@ fi # ##################################################################### # Run the fail2ban-client, and generate the list of operating jails # ##################################################################### -jail_list=$($fail2ban_client status|grep "list" |cut -f 3 |tr -d ,) +jail_list=$($fail2ban_client status|grep "list" | cut -d : -f 2 | tr -d ,) # ##################################################################### # Cycle through all jails, count blocked IP, and build output strings
Reviewed 9 years ago