Update status.inc
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user