VestaCP - установка и настройка monit на CentOS 7: различия между версиями
Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2024
Admin iph (обсуждение | вклад) |
Admin iph (обсуждение | вклад) |
||
(не показаны 3 промежуточные версии этого же участника) | |||
Строка 1: | Строка 1: | ||
[[Файл:B_1.gif |link=https://bit.ly/3tbFsd6| Доступная цена]] | [[Файл:B_1.gif |link=https://bit.ly/3tbFsd6| Доступная цена]] | ||
− | === VestaCP - установка и настройка monit на CentOS 7 === | + | === VestaCP - установка и настройка monit на CentOS 7 - мониторинг основных сервисов === |
# yum install monit git -y | # yum install monit git -y | ||
Строка 8: | Строка 8: | ||
# cd /etc/monit.d/ | # cd /etc/monit.d/ | ||
− | # git clone https://github.com/shapilokk/vesta-centos7-monit.git ./ | + | # git clone https://github.com/shapilokk/vesta-centos7-monit.git |
+ | # mv vesta-centos7-monit/* ./ | ||
+ | # rm -f README.md | ||
# systemctl restart monit | # systemctl restart monit | ||
Строка 15: | Строка 17: | ||
crond.conf httpd.conf memcached.conf nginx.conf sshd.conf vesta-php.conf | crond.conf httpd.conf memcached.conf nginx.conf sshd.conf vesta-php.conf | ||
exim.conf logging mysql.conf postgresql.conf vesta-nginx.conf vsftpd.conf | exim.conf logging mysql.conf postgresql.conf vesta-nginx.conf vsftpd.conf | ||
+ | |||
+ | |||
+ | Если стоит mariadb - то изменяем файл: | ||
+ | # cat mysql.conf | ||
+ | check process mysql with pidfile /var/run/mariadb/mariadb.pid | ||
+ | start program = "/usr/bin/systemctl start mariadb.service" | ||
+ | stop program = "/usr/bin/systemctl stop mariadb.service" |
Текущая версия на 14:00, 7 августа 2017
VestaCP - установка и настройка monit на CentOS 7 - мониторинг основных сервисов
# yum install monit git -y # systemctl enable monit
# cd /etc/monit.d/ # git clone https://github.com/shapilokk/vesta-centos7-monit.git # mv vesta-centos7-monit/* ./ # rm -f README.md # systemctl restart monit
Все конфиги для поднятия основных сервисов на месте:
crond.conf httpd.conf memcached.conf nginx.conf sshd.conf vesta-php.conf exim.conf logging mysql.conf postgresql.conf vesta-nginx.conf vsftpd.conf
Если стоит mariadb - то изменяем файл:
# cat mysql.conf check process mysql with pidfile /var/run/mariadb/mariadb.pid start program = "/usr/bin/systemctl start mariadb.service" stop program = "/usr/bin/systemctl stop mariadb.service"