first commit

This commit is contained in:
Erreur32 2020-05-18 11:05:36 +02:00
parent f3b0bc662a
commit 3c2e201c26

View file

@ -37,10 +37,15 @@ processes=`ps aux | wc -l`
#ip=`hostname -i`
# if IP fail try this
ip=`hostname -i | awk '{ printf $1 }'`
[ -f /var/log/banabuseip.log ] && echo "" || touch /var/log/banabuseip.log
#echo "Banabuseip File not found"
ipban="/var/log/banabuseip.log"
printf "Kernel Info [ $DISTRIB_DESCRIPTION ]\n"
printf "%s------------\t------\t------------\t--------------\n"
printf "System load \e[42;30;1m\t%s\e[0;0m\tIP Address \e[0;1m\e[38;5;166m\t%s\e[0;0m\n" " $load " $ip
printf "Ban IP \e[41m\e[1m\t%s\e[0;0m\tUptime system \e[33;3m\t%s\e[0;0m\n" " $(cat /var/log/banabuseip.log |wc -l ) " "$time"
printf "Ban IP \e[41m\e[1m\t%s\e[0;0m\tUptime system \e[33;3m\t%s\e[0;0m\n" " `cat $ipban |wc -l` " "$time"
printf "Process \t(\e[38;5;166m%s\e[0;0m)\tenv LANG \e[33;3m\t%s\e[0;0m\n" " $processes" "$(env | grep LANG=)"
printf "User SSH \e[41m\e[1m\t%s\e[0;0m\tShell \e[33;3m\t%s\e[0;0m\n" " $(users | wc -w) " $SHELL
printf "%s------------\t------\t------------\t--------------\n"