2019-03-26 08:19:37 +01:00
|
|
|
############# SHOW #############
|
2018-05-30 01:03:27 +02:00
|
|
|
|
2019-03-26 08:19:37 +01:00
|
|
|
echo -e "
|
2018-05-30 01:03:27 +02:00
|
|
|
|
2019-03-26 08:19:37 +01:00
|
|
|
$(ip4all)
|
2018-05-30 01:03:27 +02:00
|
|
|
|
2019-03-26 08:19:37 +01:00
|
|
|
$(hddtop)
|
2018-05-30 01:03:27 +02:00
|
|
|
|
2019-03-26 08:19:37 +01:00
|
|
|
$(tput bold)$(tput setaf 4)Système$(tput sgr0)
|
2018-05-30 01:03:27 +02:00
|
|
|
|
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)
|
|
|
|
"
|
2018-05-30 01:03:27 +02:00
|
|
|
|
2018-05-30 12:19:15 +02:00
|
|
|
# If reboot is required
|
|
|
|
if [ -f /run/reboot-required ] ; then
|
|
|
|
echo -e "$(tput setaf 1)\tReboot is required$(tput sgr0)"
|
|
|
|
fi
|