Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
orchard
/
CSCS
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
4c1fc339
authored
Nov 08, 2018
by
jajapi
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
add kpf-iscsi-script , fixed code
parent
ffb50a7a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
10 deletions
GuestPM/cms_cmspm/cms_cmspm_check.sh
GuestPM/cms_webpm/cms_webpm_check.sh
GuestPM/kpf_iscsi/kpf_check.sh
GuestPM/cms_cmspm/cms_cmspm_check.sh
View file @
4c1fc339
...
@@ -23,11 +23,11 @@ function CHECK_MEMORY()
...
@@ -23,11 +23,11 @@ function CHECK_MEMORY()
}
}
function
CHECK_PROCESS
()
function
C
MS_C
HECK_PROCESS
()
{
{
echo
-e
"
\n
-------------- Check Process --------------"
echo
-e
"
\n
-------------- Check Process --------------"
process
=(
"nginx"
"
pengx
"
"ntp"
)
process
=(
"nginx"
"
uxen
"
"ntp"
)
for
((
idx
=
0
;
idx <
${#
process
[@]
}
;
idx++
))
for
((
idx
=
0
;
idx <
${#
process
[@]
}
;
idx++
))
do
do
...
@@ -67,7 +67,6 @@ function DMESG_CHECK()
...
@@ -67,7 +67,6 @@ function DMESG_CHECK()
UXEN_MAIN_VERSION
=
0
UXEN_MAIN_VERSION
=
0
function
CMS_UXEN_VERSION_CHECK
()
function
CMS_UXEN_VERSION_CHECK
()
{
{
echo
-e
"
\n
--------------- UXEN_VERSION Check ----------------"
UXEN_MAIN_VERSION
=
`
cat
/opt/uxen3/docs/VERSION
`
UXEN_MAIN_VERSION
=
`
cat
/opt/uxen3/docs/VERSION
`
}
}
...
@@ -140,7 +139,7 @@ function REFINE_SYSLOG()
...
@@ -140,7 +139,7 @@ function REFINE_SYSLOG()
echo
-e
"
\n\x
1b[41m"
SYSLOG
"
\x
1b[0m"
echo
-e
"
\n\x
1b[41m"
SYSLOG
"
\x
1b[0m"
echo
-e
"
\n
----------------
\x
1b[34m"
entire syslog
"
\x
1b[0m---------------------
\n
"
echo
-e
"
\n
----------------
\x
1b[34m"
entire syslog
"
\x
1b[0m---------------------
\n
"
tail
$ENTIRE_SYSLOG
|
grep
-Ev
"CRON"
grep
-Ev
"CRON"
$ENTIRE_SYSLOG
|tail
echo
-e
"
\n
----------------
\x
1b[34m"
error fail log
"
\x
1b[0m--------------------
\n
"
echo
-e
"
\n
----------------
\x
1b[34m"
error fail log
"
\x
1b[0m--------------------
\n
"
cat
$ENTIRE_SYSLOG
|
grep
--color
=
yes
-E
"error|fail|failure"
cat
$ENTIRE_SYSLOG
|
grep
--color
=
yes
-E
"error|fail|failure"
...
@@ -287,7 +286,7 @@ function GET_SUMMARY()
...
@@ -287,7 +286,7 @@ function GET_SUMMARY()
function
MAIN
()
function
MAIN
()
{
{
GET_DATE
GET_DATE
CHECK_PROCESS
C
MS_C
HECK_PROCESS
UXEN_DSTAT
UXEN_DSTAT
GET_VM_LIST
GET_VM_LIST
CMS_UXEN_VERSION_CHECK
CMS_UXEN_VERSION_CHECK
...
...
GuestPM/cms_webpm/cms_webpm_check.sh
View file @
4c1fc339
...
@@ -23,7 +23,7 @@ function CHECK_MEMORY()
...
@@ -23,7 +23,7 @@ function CHECK_MEMORY()
}
}
function
CHECK_PROCESS
()
function
WEB_
CHECK_PROCESS
()
{
{
echo
-e
"
\n
-------------- Check Process --------------"
echo
-e
"
\n
-------------- Check Process --------------"
...
@@ -67,7 +67,6 @@ function DMESG_CHECK()
...
@@ -67,7 +67,6 @@ function DMESG_CHECK()
UXEN_MAIN_VERSION
=
0
UXEN_MAIN_VERSION
=
0
function
WEB_UXEN_VERSION_CHECK
()
function
WEB_UXEN_VERSION_CHECK
()
{
{
echo
-e
"
\n
--------------- UXEN_VERSION Check ----------------"
UXEN_MAIN_VERSION
=
`
cat
/opt/pengx3/docs/VERSION
`
UXEN_MAIN_VERSION
=
`
cat
/opt/pengx3/docs/VERSION
`
}
}
...
@@ -140,8 +139,8 @@ function REFINE_SYSLOG()
...
@@ -140,8 +139,8 @@ function REFINE_SYSLOG()
echo
-e
"
\n\x
1b[41m"
SYSLOG
"
\x
1b[0m"
echo
-e
"
\n\x
1b[41m"
SYSLOG
"
\x
1b[0m"
echo
-e
"
\n
----------------
\x
1b[34m"
entire syslog
"
\x
1b[0m---------------------
\n
"
echo
-e
"
\n
----------------
\x
1b[34m"
entire syslog
"
\x
1b[0m---------------------
\n
"
tail
$ENTIRE_SYSLOG
|
grep
-Ev
"CRON"
grep
-Ev
"CRON"
$ENTIRE_SYSLOG
| tail
echo
-e
"
\n
----------------
\x
1b[34m"
error fail log
"
\x
1b[0m--------------------
\n
"
echo
-e
"
\n
----------------
\x
1b[34m"
error fail log
"
\x
1b[0m--------------------
\n
"
cat
$ENTIRE_SYSLOG
|
grep
--color
=
yes
-E
"error|fail|failure"
cat
$ENTIRE_SYSLOG
|
grep
--color
=
yes
-E
"error|fail|failure"
...
@@ -287,7 +286,7 @@ function GET_SUMMARY()
...
@@ -287,7 +286,7 @@ function GET_SUMMARY()
function
MAIN
()
function
MAIN
()
{
{
GET_DATE
GET_DATE
CHECK_PROCESS
WEB_
CHECK_PROCESS
UXEN_DSTAT
UXEN_DSTAT
GET_VM_LIST
GET_VM_LIST
WEB_UXEN_VERSION_CHECK
WEB_UXEN_VERSION_CHECK
...
...
GuestPM/kpf_iscsi/kpf_check.sh
0 → 100644
View file @
4c1fc339
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment