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


Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
Project Files
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
Exit codes are not correct
by B0ris, January 31, 2013
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
Helpful? Yes  No 
Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
4 (2)
Favorites
0
Views
150,171