VestaCP - установка и настройка monit на CentOS 7: различия между версиями

Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2024
Перейти к:навигация, поиск
 
(не показаны 2 промежуточные версии этого же участника)
Строка 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 ./ && rm -f README.md
+
  # git clone https://github.com/shapilokk/vesta-centos7-monit.git
 +
# mv vesta-centos7-monit/* ./
 +
# rm -f README.md
 
  # systemctl restart monit
 
  # systemctl restart monit
  
Строка 17: Строка 19:
  
  
 +
Если стоит mariadb - то изменяем файл:
 
  # cat mysql.conf
 
  # cat mysql.conf
 
  check process mysql with pidfile /var/run/mariadb/mariadb.pid
 
  check process mysql with pidfile /var/run/mariadb/mariadb.pid
     start program = "/usr/bin/systemctl start mysqld"
+
     start program = "/usr/bin/systemctl start mariadb.service"
     stop program  = "/usr/bin/systemctl stop mysqld"
+
     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"