VestaCP - CentOS 7 - monit и мониторинг named
Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2024
VestaCP - CentOS 7 - monit и мониторинг named
Конфиг для monitd для мониторинга ДНС сервера named на CentOS 7:
# vi /etc/monit.d/named.conf check process named with pidfile "/var/run/named/named.pid" start program = "/usr/bin/systemctl start named.service" stop program = "/usr/bin/systemctl stop named.service" if failed host 127.0.0.1 port 53 then restart if 5 restarts within 5 cycles then timeout
# systemctl restart monit
Логи можно отследить в логе:
# tail -f /var/log/monit.log