Protect MACHINEDOTS var
This commit is contained in:
parent
1e315eedeb
commit
8377f3ddce
|
@ -144,11 +144,11 @@ get_status()
|
||||||
### Check the jobs
|
### Check the jobs
|
||||||
###
|
###
|
||||||
get_header "Jobs" "$QSTAT -l hostname=$MACHINEDOTS"
|
get_header "Jobs" "$QSTAT -l hostname=$MACHINEDOTS"
|
||||||
jobs=$(${QSTAT} -l hostname=${MACHINEDOTS} -s r -u \*)
|
jobs=$(${QSTAT} -l hostname="${MACHINEDOTS}" -s r -u \*)
|
||||||
if [ -z "$jobs" ]; then
|
if [ -z "$jobs" ]; then
|
||||||
echo "No Running Jobs"
|
echo "No Running Jobs"
|
||||||
else
|
else
|
||||||
${QSTAT} -l hostname=${MACHINEDOTS} -s r -u \*
|
${QSTAT} -l hostname="${MACHINEDOTS}" -s r -u \*
|
||||||
fi
|
fi
|
||||||
get_footer
|
get_footer
|
||||||
|
|
||||||
|
@ -156,7 +156,7 @@ get_status()
|
||||||
### Check the host
|
### Check the host
|
||||||
###
|
###
|
||||||
get_header "Host" "$METAHS -i"
|
get_header "Host" "$METAHS -i"
|
||||||
${QHOST} -h ${MACHINEDOTS} | grep -v "global"
|
${QHOST} -h "${MACHINEDOTS}" | grep -v "global"
|
||||||
get_footer
|
get_footer
|
||||||
|
|
||||||
###
|
###
|
||||||
|
@ -171,10 +171,10 @@ get_status()
|
||||||
###
|
###
|
||||||
queueTriggered=false;
|
queueTriggered=false;
|
||||||
# Queueset=$(${QHOST} -h ${MACHINEDOTS} -q | tail +5 | awk '{ print $1 }')
|
# Queueset=$(${QHOST} -h ${MACHINEDOTS} -q | tail +5 | awk '{ print $1 }')
|
||||||
${QHOST} -h ${MACHINEDOTS} -q | tail +5 > "${PLUGIN_RESULT}.QSTATE"
|
${QHOST} -h "${MACHINEDOTS}" -q | tail +5 > "${PLUGIN_RESULT}.QSTATE"
|
||||||
Queueset=$(< "${PLUGIN_RESULT}.QSTATE" awk '{ print $1 }')
|
Queueset=$(< "${PLUGIN_RESULT}.QSTATE" awk '{ print $1 }')
|
||||||
for Qset in $Queueset; do
|
for Qset in $Queueset; do
|
||||||
# qstate=$(${QHOST} -q -h ${MACHINEDOTS} | tail +5 | grep " $Qset" | awk '{print $4}')
|
# qstate=$(${QHOST} -q -h "${MACHINEDOTS}" | tail +5 | grep " $Qset" | awk '{print $4}')
|
||||||
qstate=$(grep " $Qset" "${PLUGIN_RESULT}.QSTATE" | awk '{print $4}')
|
qstate=$(grep " $Qset" "${PLUGIN_RESULT}.QSTATE" | awk '{print $4}')
|
||||||
|
|
||||||
# Order determines more significant color status
|
# Order determines more significant color status
|
||||||
|
|
Loading…
Reference in New Issue