From 1e8f3a03fe525accaa0498a25e5c308f0d7a656d Mon Sep 17 00:00:00 2001 From: Remi <remi@le-filament.com> Date: Fri, 29 Mar 2019 15:44:30 +0100 Subject: [PATCH] Add license --- check_fail2ban | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/check_fail2ban b/check_fail2ban index db1bc59..da743ee 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 + -- GitLab