This commit is contained in:
parent
9d6b6a7afc
commit
501f2be89e
17
src/basic.sh
17
src/basic.sh
@ -56,14 +56,27 @@ echo -e "\n${TEXT_COLOR_GOOD} - Installed panel: ${TEXT_COLOR_OFF}\n"
|
|||||||
echo -e "${TEXT_COLOR_GOOD} - OOMS: ${TEXT_COLOR_OFF}\n"
|
echo -e "${TEXT_COLOR_GOOD} - OOMS: ${TEXT_COLOR_OFF}\n"
|
||||||
dmesg -T | grep "Out of memory" | tail -20
|
dmesg -T | grep "Out of memory" | tail -20
|
||||||
|
|
||||||
echo -e "${TEXT_COLOR_GOOD} - Top RAM usage:${TEXT_COLOR_OFF}"
|
|
||||||
|
|
||||||
|
# Top RAM
|
||||||
|
echo -e "${TEXT_COLOR_GOOD} - Top RAM usage:${TEXT_COLOR_OFF}"
|
||||||
ps axk-%mem ouser,%cpu,%mem,command | head
|
ps axk-%mem ouser,%cpu,%mem,command | head
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
# Top CPU
|
||||||
echo -e "${TEXT_COLOR_GOOD} - Top CPU usage:${TEXT_COLOR_OFF}"
|
echo -e "${TEXT_COLOR_GOOD} - Top CPU usage:${TEXT_COLOR_OFF}"
|
||||||
|
|
||||||
ps axk-%cpu ouser,%cpu,%mem,command | head
|
ps axk-%cpu ouser,%cpu,%mem,command | head
|
||||||
|
echo
|
||||||
|
|
||||||
|
# Какое ПО стоит? Docker/atop
|
||||||
|
echo -e "\n${TEXT_COLOR_GOOD} - Installed software: ${TEXT_COLOR_OFF}\n"
|
||||||
|
|
||||||
|
for i in docker atop
|
||||||
|
do
|
||||||
|
if `which $i`
|
||||||
|
then
|
||||||
|
echo "$i is installed"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
|
Loading…
Reference in New Issue
Block a user