Build precise queries to find exactly what you need
Press ESC to close
Nagios World Conference 2026: Sept. 14-17 in St. Paul, MN | Learn More
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