Compare commits
2 Commits
e7513a4060
...
3290c04f6b
Author | SHA1 | Date | |
---|---|---|---|
3290c04f6b | |||
8da6e9dbdf |
@ -29,7 +29,7 @@ lsb_release -a 2> /dev/null
|
||||
echo -e "\n${TEXT_COLOR_GOOD} - Load:${TEXT_COLOR_OFF}\n"
|
||||
|
||||
nproc=`nproc`
|
||||
la=`cat /proc/loadavg | awk '{print $1, $2, $3}'`
|
||||
la=`cat /proc/loadavg | awk '{print $1", " $2", " $3}'`
|
||||
usedmem=`free -m | head -2 | tail -1 | awk '{print $3}'`
|
||||
totalmem=`free -m | head -2 | tail -1 | awk '{print $2}'`
|
||||
|
||||
@ -45,7 +45,7 @@ echo "- Inodes:"
|
||||
|
||||
df -hi | grep '/dev/vd'
|
||||
|
||||
echo -e "${TEXT_COLOR_GOOD} - Installed panel: ${TEXT_COLOR_OFF}\n"
|
||||
echo -e "\n ${TEXT_COLOR_GOOD} - Installed panel: ${TEXT_COLOR_OFF}\n"
|
||||
|
||||
#if zero - false
|
||||
[[ -d /opt/webdir/bin/ ]] && echo "Bitrix!"
|
||||
@ -65,6 +65,7 @@ echo -e "
|
||||
---
|
||||
1. Посмотреть жрущие ЦПУ/ОЗУ процессы
|
||||
2. Вывести OOM'ы
|
||||
3. nginx: Посмотреть конфиги и домены в них
|
||||
|
||||
0. Выход
|
||||
"
|
||||
@ -87,6 +88,9 @@ echo -e "
|
||||
echo "- OOMS:"
|
||||
dmesg -T | grep "Out of memory"
|
||||
;;
|
||||
3)
|
||||
nginx -T | egrep "configuration file|server_name"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user