Update status.inc
This commit is contained in:
@@ -447,13 +447,13 @@ STATUS_NODE(){
|
|||||||
else
|
else
|
||||||
NCMD="ssh -o ConnectTimeout=3 root@${nip}"; LH=''
|
NCMD="ssh -o ConnectTimeout=3 root@${nip}"; LH=''
|
||||||
fi
|
fi
|
||||||
if [ "${NCMD}" != "" ]; then
|
# if [ "${NCMD}" != "" ]; then
|
||||||
checkhost=$(CHECK_HOST ${nip})
|
# checkhost=$(CHECK_HOST ${nip})
|
||||||
[ "${checkhost}" != "false" ] && checkhostssl=$(ssh -o BatchMode=yes -o ConnectTimeout=3 root@${nip} echo ok 2>&1)
|
# [ "${checkhost}" != "false" ] && checkhostssl=$(ssh -o BatchMode=yes -o ConnectTimeout=3 root@${nip} echo ok 2>&1)
|
||||||
else
|
# else
|
||||||
checkhost=true
|
checkhost=true
|
||||||
checkhostssl=ok
|
checkhostssl=ok
|
||||||
fi
|
# fi
|
||||||
# echo "HERE: $checkhost - $checkhostssl"
|
# echo "HERE: $checkhost - $checkhostssl"
|
||||||
if [ "${checkhost}" != "false" ] && [ "${checkhostssl}" == "ok" ]; then
|
if [ "${checkhost}" != "false" ] && [ "${checkhostssl}" == "ok" ]; then
|
||||||
[ "${NODETYPE}" != "OFW" ] && cpu_usage=$(ssh -q -o ConnectTimeout=1 -o ConnectionAttempts=1 root@${nip} "/opt/idssys/defaults/get-data.sh cpu-usage") || cpu_usage=""
|
[ "${NODETYPE}" != "OFW" ] && cpu_usage=$(ssh -q -o ConnectTimeout=1 -o ConnectionAttempts=1 root@${nip} "/opt/idssys/defaults/get-data.sh cpu-usage") || cpu_usage=""
|
||||||
|
|||||||
Reference in New Issue
Block a user