From d5195f33552cffa8e7eb8b38f73b2d9f20bba8fb Mon Sep 17 00:00:00 2001 From: Rico Ullmann Date: Tue, 4 Jan 2022 13:37:24 +0100 Subject: [PATCH] monit: remove sshd monitoring --- bundles/monit/files/monitrc | 6 ------ 1 file changed, 6 deletions(-) diff --git a/bundles/monit/files/monitrc b/bundles/monit/files/monitrc index 89b0dd2..6fd724f 100644 --- a/bundles/monit/files/monitrc +++ b/bundles/monit/files/monitrc @@ -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"