Update status.inc

This commit is contained in:
2024-11-20 15:52:04 -06:00
parent 41e8ec949c
commit 5720deba4d

View File

@@ -480,7 +480,6 @@ STATUS_NODE(){
checkhost=true
checkhostssl=ok
fi
echo "HERE: ${NCMD}"
if [ "${checkhost}" != "false" ] && [ "${checkhostssl}" == "ok" ]; then
[ "${NODETYPE}" != "OFW" ] && cpu_usage=$(${NCMD} "/opt/idssys/defaults/get-data.sh cpu-usage") || cpu_usage=""
if [ "${cpu_usage}" != "" ]; then
@@ -564,6 +563,7 @@ STATUS_NODE(){
srvcs=${NODETYPE}_SERVICES_CHECK[@];
srvcstotest="$(join_by " " ${!srvcs})"
[ "${NODETYPE}" != "OFW" ] && srvctst=(`${NCMD} "systemctl is-active ${srvcstotest}"`)
echo "HERE: systemctl is-active ${srvcstotest} = ${srvctst}"
sr=0
for srvc in "${!srvcs}"; do
if [ "${STATUS_ACTION}" != "report" ]; then