Removing FTP and related monitoring

Problem Description

Yesterday I noticed that my Sympl server was running FTP. I don’t want this on my server for fairly obvious security reasons, so I removed the sympl-ftp package and did an apt autoremove afterwards to remove any packages that were no longer required. Unfortunately I’m now being bombarded with emails because the monitoring of the FTP service has failed.

Is there a way to completely disable FTP, including the monitoring?

Any Error Messages

Started Sympl service monitor.
 INFO Runner: pure-ftpd: sh: 1: /etc/sympl/monit.d/pure-ftpd: not found
 WARN Runner: pure-ftpd: FAILED: exit 127
 INFO Runner: RESULT: 9/10 passed.
sympl-monit.service: Main process exited, code=exited, status=1/FAILURE
sympl-monit.service: Failed with result 'exit-code'.
sympl-monit.service: Triggering OnFailure= dependencies.

Environment

  • Sympl Version [9.0/10.0]: 10.0
  • Sympl Testing Version? [Yes/No]: No
  • Debian Version [Buster/Stretch]: Buster
  • Hardware Type? [Dedicated/Virtual/Pi]: Virtual
  • Hosted On? [name of hosting co]: Mythic Beasts

Just to add, I’ve had to reinstall sympl-ftp as I was getting a service failure email every 2 minutes and it was overwhelming my inbox.

It sounds like the sympl-ftp package isn’t cleaning up its monit files properly. I’ll add an issue to review that, as the packages should all clean up after themselves.

In the meantime you can remove sympl-ftp as before, then run the following to remove the leftover pieces:

sudo rm /etc/sympl/monit.d/pure-ftpd
sudo rm /etc/sympl/firewall/patterns.d/ftp.patterns
sudo rm /etc/sympl/ssl-hooks.d/sympl-ftp
sudo rm /usr/sbin/symbiosis-ftpd-check-password