monit: remove sshd monitoring

This commit is contained in:
Rico 2022-01-04 13:37:24 +01:00
parent 424e2948f8
commit d5195f3355
Signed by: stillbeben
GPG key ID: AE1066B5BD0B5041

View file

@ -33,12 +33,6 @@ check process ${systemd_service} matching "/lib/systemd/${systemd_service}"
stop program = "/usr/bin/systemctl stop ${systemd_service}.service"
% endfor
check process sshd matching "/usr/sbin/sshd"
start program = "/bin/systemctl start sshd.service"
stop program = "/bin/systemctl stop sshd.service"
if failed port 22 for 2 cycles then restart
if 3 restarts within 5 cycles then alert
% for service,options in sorted(monit.get('services', {}).items()):
check process ${service} matching "${options['bin']}"
start program = "/bin/systemctl start ${options.get('systemd_unit', 'service')}.service"