Build precise queries to find exactly what you need
Press ESC to close
Nagios World Conference 2026: Sept. 14-17 in St. Paul, MN | Learn More
Plugin generally works, but exit codes are not correct, so it will show Warning in all cases.
To correct this, replace the code with:
if [ “$FTPUSER” -lt “$WARNLIMIT” ] then echo OK $FTPUSER logged in! “| $FTPUSER” exit 0 elif [ “$FTPUSER” -ge “$WARNLIMIT” ] && [ “$FTPUSER” -lt “$CRITLIMIT” ] then echo WARNING $FTPUSER logged in! “| $FTPUSER” exit 1 elif [ “$FTPUSER” -ge “$CRITLIMIT” ] then echo CRIRICAL $FTPUSER logged in! “| $FTPUSER” exit 2