update
This commit is contained in:
@@ -481,7 +481,7 @@ STATUS_NODE(){
|
||||
checkhostssl=ok
|
||||
fi
|
||||
if [ "${checkhost}" != "false" ] && [ "${checkhostssl}" == "ok" ]; then
|
||||
[ "${NODETYPE}" != "OFW" ] && cpu_usage=$(ssh -q -o ConnectTimeout=3 -o ConnectionAttempts=1 root@${nip} "/opt/idssys/defaults/get-data.sh cpu-usage") || cpu_usage=""
|
||||
[ "${NODETYPE}" != "OFW" ] && cpu_usage=$(${NCMD} "/opt/idssys/defaults/get-data.sh cpu-usage") || cpu_usage=""
|
||||
if [ "${cpu_usage}" != "" ]; then
|
||||
if [ "${NM_HOST_CPULEVELS[${nip}]}" != "" ]; then
|
||||
cpu_warn=$(echo ${NM_HOST_CPULEVELS[${nip}]} | cut -d',' -f 1)
|
||||
|
||||
Reference in New Issue
Block a user