-2

I just installed monit and checked the web interface. Unfortunately proftpd is marked as not running although it's running. I think it's because I'm running proftpd with S/FTP not FTP. Is it possible to run monit with S/FTP?

##CHECK ProFTPD
check process proftpd with pidfile /var/run/proftpd.pid
start program = "/etc/init.d/proftpd start"
stop program = "/etc/init.d/proftpd stop"
if failed port 21 protocol sftp then restart
if 5 restarts within 5 cycles then timeout
ewwhite
  • 197,159
  • 92
  • 443
  • 809

1 Answers1

0

Your ProFTPd check is looking at port 21. Sftp should probably be on port 22, and is already covered in the ssh check you have in place.

Remove the "if failed port 21 protocol sftp then restart". It's unnecessary.

ewwhite
  • 197,159
  • 92
  • 443
  • 809