first commit
This commit is contained in:
parent
f3b0bc662a
commit
3c2e201c26
1 changed files with 6 additions and 1 deletions
7
Stats32
7
Stats32
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue