conf-99-basic_config_debian/root/.profile.d/01_stats_connexion.conf
2019-03-26 08:19:37 +01:00

26 lines
710 B
Plaintext

############# SHOW #############
echo -e "
$(ip4all)
$(hddtop)
$(tput bold)$(tput setaf 4)Système$(tput sgr0)
- OS : $(lsb_release -d | sed -e 's/Description://g' | sed 's/^[ \t]*//')
- Kernel : $(uname -srmo)
- Uptime : $(template_uptime)
- Charge Cpu : $(template_check_cpu)
- Utilisation mémoire : $(template_check_memory)
- Utilisation Swap : $(template_check_swap)
- Nombre de processus : $(ps aux | wc -l)
- Utilisateur(s) : $(users | wc -w)
- Crons : $(check_cron)
"
# If reboot is required
if [ -f /run/reboot-required ] ; then
echo -e "$(tput setaf 1)\tReboot is required$(tput sgr0)"
fi