
Linux
check_proftp_user
Description:
This plugin checks how many users are logged in on a ProFTP FTP – Server. You can specify a warning and a critical limit. Checkable local or trough check_by_ssh or NRPE Update: Corrected perfdata output to make it compliant with Nagios Plugin Guidline
Current Version
Last Release Date
June 17, 2009
Compatible With
Owner
Project Files
File | Description |
---|---|
check_proftp_user | check_proftp_user |
check_proftp_user.sh | check_proftp_user.sh |
Project Notes
This plugin checks how many users are logged in on a ProFTP FTP - Server. You can specify a warning and a critical limit.
Checkable local or trough check_by_ssh or NRPE
Reviews
(1)
Add a Review
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
Page Sections
Project Stats
Rating
4 (2)
Favorites
0
Views
150,190