Skip to content
Extraits de code Groupes Projets
Valider 1e8f3a03 rédigé par Rémi - Le Filament's avatar Rémi - Le Filament
Parcourir les fichiers

Add license

parent a4857818
Branches
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -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
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter