diff --git a/check_fail2ban b/check_fail2ban index db1bc59097f3dc7eeb3d2cca43926d202f8af036..da743eed0d4966d0358ca3864699874c578c8c73 100755 --- a/check_fail2ban +++ b/check_fail2ban @@ -10,6 +10,16 @@ #checks for banned IP's # #integrated performance data for banned IPs # #shows banned IP since the last logrotate in long output# +# # +# Modified by Le Filament htpps://le-filament.com : # +# Modified: 2018-10-24 (version 1.2fil) # +# - change reporting to get it in French # +# - display usage with -h option # +# - change fail2ban.sock to fail2ban-server # +# - add AGPL3 license # +# Copyright © 2019 Le Filament # +# License AGPL-3.0 or later # +# (http://www.gnu.org/licenses/agpl.html). # ######################################################### STATUS_OK="0" STATUS_WARNING="1" @@ -23,7 +33,7 @@ jail_count=$($fail2ban_client status|grep "Number" |cut -f 2) -print_help() { +print_usage() { echo " Usage: @@ -67,7 +77,7 @@ while test -n "$1"; do shift ;; -h) - print_help + print_usage exit $STATUS_UNKNOWN ;; -l) @@ -131,3 +141,4 @@ elif [ ${State} == "Unknown" ];then else exit ${STATUS_OK} fi +