monit: remove sshd monitoring
This commit is contained in:
parent
424e2948f8
commit
d5195f3355
1 changed files with 0 additions and 6 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue