Update status.inc
This commit is contained in:
@@ -480,7 +480,6 @@ STATUS_NODE(){
|
|||||||
checkhost=true
|
checkhost=true
|
||||||
checkhostssl=ok
|
checkhostssl=ok
|
||||||
fi
|
fi
|
||||||
echo "HERE: ${NCMD}"
|
|
||||||
if [ "${checkhost}" != "false" ] && [ "${checkhostssl}" == "ok" ]; then
|
if [ "${checkhost}" != "false" ] && [ "${checkhostssl}" == "ok" ]; then
|
||||||
[ "${NODETYPE}" != "OFW" ] && cpu_usage=$(${NCMD} "/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 [ "${cpu_usage}" != "" ]; then
|
||||||
@@ -564,6 +563,7 @@ STATUS_NODE(){
|
|||||||
srvcs=${NODETYPE}_SERVICES_CHECK[@];
|
srvcs=${NODETYPE}_SERVICES_CHECK[@];
|
||||||
srvcstotest="$(join_by " " ${!srvcs})"
|
srvcstotest="$(join_by " " ${!srvcs})"
|
||||||
[ "${NODETYPE}" != "OFW" ] && srvctst=(`${NCMD} "systemctl is-active ${srvcstotest}"`)
|
[ "${NODETYPE}" != "OFW" ] && srvctst=(`${NCMD} "systemctl is-active ${srvcstotest}"`)
|
||||||
|
echo "HERE: systemctl is-active ${srvcstotest} = ${srvctst}"
|
||||||
sr=0
|
sr=0
|
||||||
for srvc in "${!srvcs}"; do
|
for srvc in "${!srvcs}"; do
|
||||||
if [ "${STATUS_ACTION}" != "report" ]; then
|
if [ "${STATUS_ACTION}" != "report" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user