diff --git a/Python/etc/monit/services b/Python/etc/monit/services index 765eb12..227ec97 100644 --- a/Python/etc/monit/services +++ b/Python/etc/monit/services @@ -152,9 +152,13 @@ service("ssh", service("syslog-ng", extra=["depend on file/var/log/syslog"]) +if has('adm-only'): + vsftpd_ip = admip() +else: + vsftpd_ip = pubip() service("vsftpd", pidf="vsftpd/vsftpd", - extra=["if failed host %s port 21 protocol ftp timeout 30 seconds then restart" % pubip()]) + extra=["if failed host %s port 21 protocol ftp timeout 30 seconds then restart" % vsftpd_ip]) service("vsftpd-federez", extra=["if failed host 138.231.136.129 port 21 protocol ftp timeout 30 seconds then restart"])