diff --git a/defaults.inc b/defaults.inc index 69727f83..1fbc3e11 100755 --- a/defaults.inc +++ b/defaults.inc @@ -1,5 +1,5 @@ #!/usr/bin/env bash -VERS='5.1.59-01062024' +VERS='5.1.60-01062024' NM_BETA=false noheader=' service status-check nightlyrephp7.3-fpm,new backup report check checkcerts gitea update-nodes copynpmcerts singleservercheck update-dyndns backup-offsitepfsense gui nightlyreview update log betacheck ' diff --git a/inc/status.inc b/inc/status.inc index db9026c4..bab80b30 100755 --- a/inc/status.inc +++ b/inc/status.inc @@ -445,8 +445,8 @@ STATUS_NODE(){ [ "${NODETYPE}" != "OFW" ] && cpu_usage=$(ssh -q -o ConnectTimeout=1 -o ConnectionAttempts=1 root@${nip} "/opt/idssys/defaults/get-data.sh cpu-usage") || cpu_usage="" if [ "${cpu_usage}" != "" ]; then if [ "${NM_HOST_CPULEVELS[${nip}]}" != "" ]; then - echo ${NM_HOST_CPULEVELS[${nip}]} | cut -d',' -f 1 | read cpu_warn - echo ${NM_HOST_CPULEVELS[${nip}]} | cut -d',' -f 2 | read cpu_crit + cpu_warn=$(echo ${NM_HOST_CPULEVELS[${nip}]} | cut -d',' -f 1) + cpu_crit=$(echo ${NM_HOST_CPULEVELS[${nip}]} | cut -d',' -f 2) else cpu_warn=40 cpu_crit=80