containers-knot/monit.conf

11 lines
499 B
Plaintext
Raw Normal View History

2020-09-12 22:42:22 +00:00
check process knot with pidfile /tmp/knot.pid
start program = "/usr/sbin/knotd -d"
stop program = "/usr/sbin/knotc stop"
if 5 restarts within 8 cycles then alert
if failed port 53 type udp protocol dns for 3 times within 5 cycles then restart
if failed port 53 type tcp protocol dns for 3 times within 5 cycles then restart
2020-10-21 19:14:29 +00:00
check process prometheus with pidfile /tmp/prometheus.pid
start program = "/usr/local/bin/prometheusd start"
stop program = "/usr/local/bin/prometheusd stop"