diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 52a70f1b..6d810b92 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -165,7 +165,7 @@ STATUS(){ fi if [ "${checkhost}" != "false" ]; then if [ "${ST_ACTION}" != "check" ]; then - if [ "${ST_ACTION}" = "report" ] && [ "${2}" != "email" ]; then + if [ "${ST_ACTION}" = "report" ] && [ "${2}" = "email" ]; then uptime=`${NCMD} uptime -p` elif [ "${ST_ACTION}" != "report" ]; then uptime=`${NCMD} uptime -p`