Issue #2629: Update capture to grab Xorg log files.
Change-Id: Ic6d4806bee75894805fb7fa5882d3b454418c26d Former-commit-id:de249decab
[formerly 38ad09697f3e618b6c9edb6592913b2d50014d14] Former-commit-id:1cc7977b99
This commit is contained in:
parent
7499987f52
commit
7e3d3f3093
1 changed files with 18 additions and 0 deletions
|
@ -7,6 +7,8 @@ grepString="(/awips2/cave/cave|/usr/local/viz/cave)"
|
|||
|
||||
edexGrepString="edex.run.mode="
|
||||
|
||||
xorgLogPath="/var/log"
|
||||
|
||||
# the remote servers to grab top on. Use to get general state of servers
|
||||
REMOTE_SERVERS_TO_CHECK="${DX_SERVERS}"
|
||||
|
||||
|
@ -30,6 +32,7 @@ GRAB_REMOTE_VMSTAT="Y"
|
|||
GRAB_CAVE_AND_ALERTVIZ_LOGS="Y"
|
||||
GRAB_SCREENSHOT="Y"
|
||||
GRAB_CURRENT_QUERIES="Y"
|
||||
GRAB_XORG_LOG="Y"
|
||||
EDEX_MODE="N"
|
||||
FORCE="N"
|
||||
TGZ_OUTPUT="Y"
|
||||
|
@ -150,6 +153,16 @@ grabScreenShot() {
|
|||
fi
|
||||
}
|
||||
|
||||
# runs import to grab screen shot of users desktop
|
||||
grabXorgLog() {
|
||||
if [ "$GRAB_XORG_LOG" == "y" ]; then
|
||||
echo "Capturing Xorg logs"
|
||||
t1=`date "+%Y%m%d %H:%M:%S"`
|
||||
echo "${t1}: Capturing Xorg logs" >> $processFile
|
||||
cp ${xorgLogPath}/Xorg*.log* ${dataPath} >> $processFile 2>&1 &
|
||||
fi
|
||||
}
|
||||
|
||||
# runs ssh command to grab top on a remote server, requires auto login to be setup
|
||||
grabRemoteTop() {
|
||||
if [ "$GRAB_REMOTE_TOP" == "y" ]; then
|
||||
|
@ -433,6 +446,7 @@ checkYes TGZ_OUTPUT $TGZ_OUTPUT
|
|||
checkYes ACCCUM $ACCCUM
|
||||
checkYes RUN_VERSIONS $RUN_VERSIONS
|
||||
checkYes GRAB_SCREENSHOT $GRAB_SCREENSHOT
|
||||
checkYes GRAB_XORG_LOG $GRAB_XORG_LOG
|
||||
|
||||
# if PID mode don't grab other hs_err_pids
|
||||
if [ ! -z $cavePid ]; then
|
||||
|
@ -451,6 +465,7 @@ if [ "$EDEX_MODE" == "y" ]; then
|
|||
MOVE_ALL_HS_ERR_PID="n"
|
||||
GRAB_REMOTE_TOP="n"
|
||||
GRAB_REMOTE_VMSTAT="n"
|
||||
GRAB_XORG_LOG="n"
|
||||
fi
|
||||
|
||||
umask 0002
|
||||
|
@ -553,6 +568,9 @@ else
|
|||
echo "" >> $processFile
|
||||
fi
|
||||
|
||||
# grab Xorg logs
|
||||
grabXorgLog
|
||||
|
||||
# grab top for servers
|
||||
grabRemoteTop
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue