first commit
This commit is contained in:
parent
66a9520152
commit
5b74828bb4
1 changed files with 8 additions and 10 deletions
16
Stats32
16
Stats32
|
@ -48,16 +48,14 @@ processes=`ps aux | wc -l`
|
||||||
ip=`hostname -i`
|
ip=`hostname -i`
|
||||||
# if IP fail try this
|
# if IP fail try this
|
||||||
# ip=`hostname -i | awk '{ printf $2 }'`
|
# ip=`hostname -i | awk '{ printf $2 }'`
|
||||||
|
|
||||||
printf "%s-----------\t---\t--------\t----------\n"
|
|
||||||
printf "Kernel Info [ $DISTRIB_DESCRIPTION ]\n"
|
printf "Kernel Info [ $DISTRIB_DESCRIPTION ]\n"
|
||||||
printf "Shell [\t%s\t]\t%s\n" $SHELL
|
printf "%s------------\t---\t-------------\t----------\n"
|
||||||
printf "System load :\t%s\tIP Address:\t%s\n" $load $ip
|
printf "System load :\t%s\tIP Address :\t%s\n" "$(tput setab 34)$(tput setaf 0) $load $(tput sgr0)" $ip
|
||||||
printf "Memory usage :\t%s\tSystem uptime:\t%s\n" $memory_usage "$time"
|
printf "Memory usage :\t%s\tSystem uptime:\t%s\n" $memory_usage "$time"
|
||||||
printf "Usage on / :\t%s\tSwap usage:\t%s\n" $root_usage $swap_usage
|
printf "Usage on / :\t%s\tenv LANGAUAGE:\t%s\n" "$(tput setaf 202)$root_usage $(tput sgr0)" "$(env | grep LANG=)"
|
||||||
printf "Local Users :\t%s\tProcesses:\t%s\n" $users $processes
|
printf "Swap usage :\t%s\tProcesses :\t%s\n" $swap_usage $processes
|
||||||
printf "Last SSH :\t%s\t connected \t%s \n" "$(tput setab 1) $(users | wc -w) $(tput sgr0)"
|
printf "Last User SSH:\t%s\tShell :\t%s\n" "$(tput setab 1) $(users | wc -w) $(tput sgr0)" $SHELL
|
||||||
printf "%s-----------\t---\t------------\t----------\n"
|
printf "%s------------\t---\t-------------\t----------\n"
|
||||||
echo -e "\e[1;30m" ; last -a -n $nbconnected | grep pts ; echo -e "\e[0m"
|
|
||||||
|
|
||||||
|
echo -e "\n Conected Users $(users | wc -w) \e[1;30m" ; last -a -n $nbconnected | grep pts ; echo -e "\e[0m"
|
||||||
echo -e "\n\e[93m Generated by MOTDs32\e[0m"
|
echo -e "\n\e[93m Generated by MOTDs32\e[0m"
|
||||||
|
|
Loading…
Reference in a new issue