monit #4
1 changed files with 3 additions and 0 deletions
|
@ -48,5 +48,8 @@ check process postfix matching "/usr/lib/postfix/sbin/master"
|
||||||
check process ${service} matching "${options['bin']}"
|
check process ${service} matching "${options['bin']}"
|
||||||
start program = "/bin/systemctl start ${options.get('systemd_unit', 'service')}.service"
|
start program = "/bin/systemctl start ${options.get('systemd_unit', 'service')}.service"
|
||||||
stop program = "/bin/systemctl stop ${options.get('systemd_unit', 'service')}.service"
|
stop program = "/bin/systemctl stop ${options.get('systemd_unit', 'service')}.service"
|
||||||
|
% for port,port_options in options.get('ports', {}).items():
|
||||||
|
if failed port ${port} protocol ${port_options['protocol']} for ${port_options.get('cycles', '5')} cycles then restart
|
||||||
|
% endfor
|
||||||
|
|
||||||
% endfor
|
% endfor
|
||||||
|
|
Loading…
Reference in a new issue