conf-99-basic_config_debian/root/.profile.d/01_stats_connexion.conf

26 lines
710 B
Plaintext
Raw Normal View History

2019-03-26 08:19:37 +01:00
############# SHOW #############
2019-03-26 08:19:37 +01:00
echo -e "
2019-03-26 08:19:37 +01:00
$(ip4all)
2019-03-26 08:19:37 +01:00
$(hddtop)
2019-03-26 08:19:37 +01:00
$(tput bold)$(tput setaf 4)Système$(tput sgr0)
2019-03-26 08:19:37 +01:00
- 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