Commit 2e4f2d39 by jajapi

fixed kpfscript

parent 4c1fc339
Showing with 6 additions and 9 deletions
......@@ -60,9 +60,9 @@ function DMESG_CHECK()
UXEN_MAIN_VERSION=0
function KPF_ISCSI_VERSION_CHECK()
function KPF_VERSION_CHECK()
{
UXEN_MAIN_VERSION=`/home/orchard/uxen_new/docs`
UXEN_MAIN_VERSION=`cat /home/orchard/uxen_new/docs/VERSION`
}
# xl info 명령에서 메모리 정보를 가져오는 함수
......@@ -252,8 +252,6 @@ function KPF_UXEN_LOG()
ls -r $SECOND_UXEN2_API_LOG | xargs cat > $ENTIRE_UXEN2_API_LOG
cat $ENTIRE_UXEN2_API_LOG | grep -E "error|fail|failure"
echo -e "\n---------------- Refine $SECOND_GUNICORN_LOG ------------------"
cat $SECOND_GUNICORN_LOG | grep -Ev " Starting|worker|Listening"
echo -e "Please see $REFINED_GUNICORN_LOG"
......@@ -271,8 +269,8 @@ function KPF_UXEN_LOG()
echo -e "\n\x1b[31m"-------------------------------------------------------------------------------------------"\x1b[0m"
echo -e "\n\x1b[45m"UWSGI"\x1b[0m"
echo -e "\n----------------\x1b[34m"entire uwsgi"\x1b[0m---------------------\n"
echo -e "\n\x1b[45m"GUNICORN"\x1b[0m"
echo -e "\n----------------\x1b[34m"entire gunicorn"\x1b[0m---------------------\n"
tail $SECOND_GUNICORN_LOG
echo -e "\n----------------\x1b[34m"error fail log"\x1b[0m--------------------\n"
......@@ -282,10 +280,9 @@ function KPF_UXEN_LOG()
echo -e "\nPlease see /tmp/refined_gunicorn-uxen-error.log"
echo -e "\n\x1b[31m"-------------------------------------------------------------------------------------------"\x1b[0m"
fi
}
'
function GET_UXEN_LOG()
{
KPF_UXEN_LOG # REFINE_UXEN_LOG 함수에서 UXEN_MAIN_VERSION 변수를 사용함.
......@@ -318,7 +315,7 @@ function MAIN()
KPF_CHECK_PROCESS
KPF_RUN_DSTAT
GET_VM_LIST
KPF_UXEN_VERSION_CHECK
KPF_VERSION_CHECK
GET_XL_INFO
VCPUS_RATIO_CHECK
CHECK_BONDING
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment