VestaCP - CentOS 7 - monit и мониторинг named
Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2023
Версия от 13:19, 1 июня 2020; Admin iph (обсуждение | вклад) (Новая страница: «=== VestaCP - CentOS 7 - monit и мониторинг named === Конфиг для monitd для мониторинга ДНС сервера named на CentO…»)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
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