Commit 4c1fc339 by jajapi

add kpf-iscsi-script , fixed code

parent ffb50a7a
......@@ -23,11 +23,11 @@ function CHECK_MEMORY()
}
function CHECK_PROCESS()
function CMS_CHECK_PROCESS()
{
echo -e "\n-------------- Check Process --------------"
process=("nginx" "pengx" "ntp")
process=("nginx" "uxen" "ntp")
for ((idx=0; idx < ${#process[@]}; idx++))
do
......@@ -67,7 +67,6 @@ function DMESG_CHECK()
UXEN_MAIN_VERSION=0
function CMS_UXEN_VERSION_CHECK()
{
echo -e "\n--------------- UXEN_VERSION Check ----------------"
UXEN_MAIN_VERSION=`cat /opt/uxen3/docs/VERSION`
}
......@@ -140,7 +139,7 @@ function REFINE_SYSLOG()
echo -e "\n\x1b[41m"SYSLOG"\x1b[0m"
echo -e "\n----------------\x1b[34m"entire syslog"\x1b[0m---------------------\n"
tail $ENTIRE_SYSLOG | grep -Ev "CRON"
grep -Ev "CRON" $ENTIRE_SYSLOG |tail
echo -e "\n----------------\x1b[34m"error fail log"\x1b[0m--------------------\n"
cat $ENTIRE_SYSLOG | grep --color=yes -E "error|fail|failure"
......@@ -287,7 +286,7 @@ function GET_SUMMARY()
function MAIN()
{
GET_DATE
CHECK_PROCESS
CMS_CHECK_PROCESS
UXEN_DSTAT
GET_VM_LIST
CMS_UXEN_VERSION_CHECK
......
......@@ -23,7 +23,7 @@ function CHECK_MEMORY()
}
function CHECK_PROCESS()
function WEB_CHECK_PROCESS()
{
echo -e "\n-------------- Check Process --------------"
......@@ -67,7 +67,6 @@ function DMESG_CHECK()
UXEN_MAIN_VERSION=0
function WEB_UXEN_VERSION_CHECK()
{
echo -e "\n--------------- UXEN_VERSION Check ----------------"
UXEN_MAIN_VERSION=`cat /opt/pengx3/docs/VERSION`
}
......@@ -140,8 +139,8 @@ function REFINE_SYSLOG()
echo -e "\n\x1b[41m"SYSLOG"\x1b[0m"
echo -e "\n----------------\x1b[34m"entire syslog"\x1b[0m---------------------\n"
tail $ENTIRE_SYSLOG | grep -Ev "CRON"
grep -Ev "CRON" $ENTIRE_SYSLOG | tail
echo -e "\n----------------\x1b[34m"error fail log"\x1b[0m--------------------\n"
cat $ENTIRE_SYSLOG | grep --color=yes -E "error|fail|failure"
......@@ -287,7 +286,7 @@ function GET_SUMMARY()
function MAIN()
{
GET_DATE
CHECK_PROCESS
WEB_CHECK_PROCESS
UXEN_DSTAT
GET_VM_LIST
WEB_UXEN_VERSION_CHECK
......
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