diff --git a/inc/status.inc b/inc/status.inc index 8692e537..ab037170 100755 --- a/inc/status.inc +++ b/inc/status.inc @@ -562,8 +562,10 @@ 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}" + if [ "${NODETYPE}" != "OFW" ]; then + [ "${NCMD}" != "" ] && srvctst=(`${NCMD} "systemctl is-active ${srvcstotest}"`) || srvctst=(`systemctl is-active ${srvcstotest}`) + fi + echo "HERE: (${NCMD} "systemctl is-active ${srvcstotest}") = ${srvctst}" sr=0 for srvc in "${!srvcs}"; do if [ "${STATUS_ACTION}" != "report" ]; then