{"id":198354,"date":"2013-10-21T11:09:03","date_gmt":"2013-10-21T07:09:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=198354"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=198354","title":{"rendered":"<span class=\"post_title\">Zabbix 2.0.9 \u0432\u0435\u0440\u0445\u043e\u043c \u043d\u0430 nginx + php-fpm \u0438 mariadb<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/6ab\/8bc\/2be\/6ab8bc2be9d3c4ff89a47783a9ac5626.png\"\/><\/p>\n<p>  \u041f\u0435\u0440\u0435\u0434 \u043d\u0430\u043c\u0438 \u0441\u0442\u043e\u0438\u0442 \u043d\u0435\u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430, \u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430 zabbix.<br \/>  \u0421\u0440\u0435\u0434\u0438 \u043c\u043d\u043e\u0433\u0438\u0445 \u0441\u0442\u0430\u0442\u0435\u0439 \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435, \u0435\u0441\u0442\u044c \u043c\u043d\u043e\u0433\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0439 \u0442\u0438\u043f\u043e\u0432\u044b\u0445 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043e\u043a \u044d\u0442\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b. \u042f \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043e\u043f\u0438\u0448\u0443, \u043a\u0430\u043a \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c zabbix \u0431\u044b\u0441\u0442\u0440\u0435\u0435.<br \/>  \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0431\u0430\u0437\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u044f \u0431\u0443\u0434\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c CentOS 6.4. \u0422\u0430\u043a \u0442\u0430\u043a \u0436\u0435 \u043a\u0430\u043a \u0438 \u043c\u043d\u043e\u0433\u0438\u0435 \u044f \u043b\u044e\u0431\u043b\u044e Debian, Gentoo \u0438 \u0432\u0441\u0435 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u044b, \u043d\u043e \u044d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f \u0438\u043c\u0435\u043d\u043d\u043e \u0434\u043b\u044f CentOS.<\/p>\n<p>  <b>\u0412\u0441\u0435 \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u044f \u0440\u0430\u0441\u043f\u0438\u0448\u0443 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u0438 \u0448\u0430\u0433 \u0437\u0430 \u0448\u0430\u0433\u043e\u043c, \u0438 \u043d\u0430\u0447\u043d\u0435\u043c \u0441 \u0431\u0430\u0437\u043e\u0432\u043e\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043d\u0430\u0448\u0435\u0433\u043e CentOS<\/b><\/p>\n<p>  <a name=\"habracut\"><\/a><\/p>\n<p>  <b># \u0412\u044b\u043a\u043b\u044e\u0447\u0430\u0435\u043c SELINUX<\/b><br \/>  <code>sed -i 's\/SELINUX=enforcing\/SELINUX=disabled\/g' \/etc\/selinux\/config<\/code><\/p>\n<p>  <b># \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u0447\u0430\u0441\u043e\u0432\u043e\u0439 \u043f\u043e\u044f\u0441<\/b><br \/>  <code>ln -sf \/usr\/share\/zoneinfo\/Europe\/Moscow \/etc\/localtime<\/code><\/p>\n<p>  <b># \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 <\/b><br \/>  <code>yum install ntp -y chkconfig ntpd on \/etc\/init.d\/ntpd stop ntpdate  0.ru.pool.ntp.org 1.ru.pool.ntp.org 2.ru.pool.ntp.org 3.ru.pool.ntp.org \/etc\/init.d\/ntpd start<\/code><\/p>\n<p>  <b># \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438<\/b><br \/>  <code>yum install wget nano wget ntpdate -y <\/code><\/p>\n<p>  <b># \u042d\u0442\u0438 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c, \u043e\u0447\u0435\u043d\u044c \u043c\u043d\u043e\u0433\u043e \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u0447\u0442\u043e \u043d\u0435\u0442 \u0432 \u0431\u0430\u0437\u043e\u0432\u044b\u0445 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f\u0445, \u043c\u044b \u043d\u0430\u0439\u0434\u0435\u043c \u0442\u0443\u0442<\/b><br \/>  <code>wget http:\/\/dl.fedoraproject.org\/pub\/epel\/6\/x86_64\/epel-release-6-8.noarch.rpm wget http:\/\/rpms.famillecollet.com\/enterprise\/remi-release-6.rpm sudo rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm rm *.rpm -f<\/code><\/p>\n<p>  <b># \u042d\u0442\u043e\u0442 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u043d\u0430\u043c \u043f\u0440\u0438\u0433\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u043d\u043e \u043c\u044b \u0435\u0433\u043e \u0432\u044b\u043a\u043b\u044e\u0447\u0438\u043c \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e <\/b><br \/>  <code>rpm --import http:\/\/dag.wieers.com\/rpm\/packages\/RPM-GPG-KEY.dag.txt cd \/tmp wget http:\/\/dag.wieers.com\/rpm\/packages\/rpmforge-release\/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm && rpm -ivh rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm <\/code><\/p>\n<p>  <b># \u0412\u044b\u043a\u043b\u044e\u0447\u0430\u0435\u043c, \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 &#8212;enablerepo=rpmforge <\/b><br \/>  <code>sed -i 's\/enabled = 1\/enabled = 0\/g' \/etc\/yum.repos.d\/rpmforge.repo <\/code><\/p>\n<p>  <b># \u0410 \u0432\u043e\u0442 \u044d\u0442\u043e \u0436\u0435\u043c\u0447\u0443\u0436\u0438\u043d\u0430 \u0434\u043b\u044f web \u0441\u0438\u0441\u0442\u0435\u043c \u0438 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e, \u0442\u0443\u0442 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0435\u0441\u0442\u044c \u043e\u0447\u0435\u043d\u044c \u043c\u043d\u043e\u0433\u043e \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0443 \u0432 \u0441\u0432\u043e\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u0435. MustHave<\/b><br \/>  <code>wget -q -O - http:\/\/www.atomicorp.com\/installers\/atomic | sh<\/code><\/p>\n<p>  <b># \u0421\u0442\u0430\u0432\u0438\u043c \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0439 \u0441\u043e\u0444\u0442 <\/b><br \/>  <code>yum install nano mc screen sudo nscd htop ntp zip unzip pigz iotop sysstat lsof strace atop multitail -y  yum --enablerepo=rpmforge  install htop -y <\/code><\/p>\n<p>  <b># \u041e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c \u0441\u0438\u0441\u0442\u0435\u043c\u0443<\/b><br \/>  <code>yum update -y<\/code><\/p>\n<p>  <b>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u043a \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u0441\u0430\u043c\u043e\u0433\u043e zabbix \u0438 \u0442\u0440\u0435\u0431\u0443\u0435\u043c\u044b\u0445 \u0435\u043c\u0443 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432:<\/b><\/p>\n<p>  <b>SERVER<\/b><\/p>\n<p>  <b># \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 zabbix \u0434\u043b\u044f centos<\/b><br \/>  <code>rpm -ivh http:\/\/repo.zabbix.com\/zabbix\/2.0\/rhel\/6\/x86_64\/zabbix-release-2.0-1.el6.noarch.rpm<\/code><\/p>\n<p>  <b># \u0423\u0431\u0438\u0432\u0430\u0435\u043c \u0432\u0441\u0435 \u0441\u0442\u0430\u0440\u044b\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b MySQL, \u042d\u0442\u043e \u0443\u0434\u0430\u043b\u0438\u0442 MySQL!<\/b><\/p>\n<p>  <code>yum remove php-* mysql-* MariaDB-* -y<\/code><\/p>\n<p>  <b># \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c mariadb \u0438\u0437 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f atomic<\/b><br \/>  <code>yum install mariadb-server mariadb-devel mariadb-client -y<\/code><\/p>\n<p>  <b># \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043c\u043d\u043e\u0433\u043e \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 \u0438 \u043c\u043e\u0434\u0443\u043b\u0435\u0439 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0443\u0436\u043d\u044b \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b zabbix<\/b><br \/>  <code>yum install ntp php php-mysql php-mbstring php-mcrypt rpm-build gcc mariadb-devel openssl-devel cyrus-sasl-devel pkgconfig zlib-devel pcre-devel openldap-devel postgresql-devel expect libtool-ltdl-devel openldap-servers libtool gdbm-devel pam-devel gamin-devel php-fpm php-cli php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc php-pecl-apc hp-magpierss php-snmp php-tidy spawn-fcgi openssl perl-TimeDate webalizer perl-DateTime-Format-HTTP perl-DateTime-Format-Builder perl-TimeDate libevent-devel php-pecl-memcache nginx cronie cronie-anacron  crontabs postfix sysstat -y<\/code><\/p>\n<p>  <b># \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0441\u0430\u043c zabbix<\/b><br \/>  yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent<\/p>\n<p>  <b># \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c MariaDB, \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u0435\u0435 \u043a\u043e\u043d\u0444\u0438\u0433 \u043a \u0442\u0430\u043a\u043e\u043c\u0443 \u0432\u0438\u0434\u0443 (\u044d\u0442\u0438 \u043a\u043e\u043d\u0444\u0438\u0433 \u0440\u0430\u0441\u0447\u0438\u0442\u0430\u043d \u043d\u0430 16\u0413\u0411 \u041e\u0417\u0423 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435)<br \/>  [root@zabbix ~] nano \/etc\/my.cnf<\/b><\/p>\n<blockquote><p>[mysqld]<br \/>  datadir=\/var\/lib\/mysql<br \/>  socket=\/var\/lib\/mysql\/mysql.sock<br \/>  # Disabling symbolic-links is recommended to prevent assorted security risks<br \/>  symbolic-links=0<br \/>  <b>default_storage_engine=InnoDB<br \/>  innodb_file_per_table = 1<\/b><br \/>  #<br \/>  #<br \/>  # network<br \/>  connect_timeout = 60<br \/>  wait_timeout = 28800<br \/>  max_connections = 200<br \/>  max_allowed_packet = 512M<br \/>  max_connect_errors = 1000<\/p>\n<p>  # limits<br \/>  tmp_table_size = 512M<br \/>  max_heap_table_size = 256M<br \/>  table_cache = 1024<\/p>\n<p>  # logs<br \/>  log_error = \/var\/log\/mysql\/mysql-error.log<br \/>  #slow_query_log_file = \/var\/log\/mysql\/mysql-slow.log<br \/>  #slow_query_log = 1<br \/>  #long_query_time = 20<\/p>\n<p>  # innodb<br \/>  default_storage_engine=InnoDB<br \/>  innodb_file_per_table = 1<br \/>  innodb_status_file = 1<br \/>  innodb_additional_mem_pool_size = 128M<br \/>  innodb_buffer_pool_size = 12G <b># \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u044d\u0442\u043e\u0433\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u043d\u0435 \u0431\u043e\u043b\u0435\u0435 60% \u043e\u0442 \u043e\u0431\u044a\u0435\u043c\u0430 \u041e\u0417\u0423 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435<\/b><br \/>  innodb_flush_method = O_DIRECT<br \/>  innodb_io_capacity = 2000<br \/>  innodb_flush_log_at_trx_commit = 2<br \/>  innodb_support_xa = 0<br \/>  innodb_log_buffer_size = 128M<\/p>\n<p>  # experimental<br \/>  innodb_stats_update_need_lock = 0<\/p>\n<p>  # other stuff<br \/>  event_scheduler = 1<br \/>  query_cache_type = 0<br \/>  query_cache_size = 536870912<br \/>  join_buffer_size=1M<br \/>  query_cache_limit=2M<br \/>  sort_buffer_size=2M<br \/>  read_buffer_size=2M<br \/>  read_rnd_buffer_size=4M<br \/>  key_buffer = 256M<br \/>  key_buffer_size=64M<br \/>  open_files_limit = 100000<br \/>  thread_cache_size = 1024M<\/p>\n<p>  [mysqld_safe]<br \/>  log-error=\/var\/log\/mysqld.log<br \/>  pid-file=\/var\/run\/mysqld\/mysqld.pid<\/p>\n<p>  #<br \/>  # include all files from the config directory<br \/>  #<br \/>  !includedir \/etc\/my.cnf.d<\/p><\/blockquote>\n<p>  <b># \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c mysql \u0432 \u0430\u0432\u0442\u043e\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443<\/b><br \/>  <code> chkconfig mysqld on && \/etc\/init.d\/mysqld restart<\/code><\/p>\n<p>  <b># \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c php-fpm \u0432 \u0430\u0432\u0442\u043e\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443<\/b><br \/>  <code>chkconfig --levels 235 php-fpm on \/etc\/init.d\/php-fpm start<\/code><\/p>\n<p>  <b># \u0423\u0434\u0430\u043b\u044f\u0435\u043c \u043a\u043e\u043d\u0444\u0438\u0433\u0438 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e nginx<\/b><br \/>  <code>rm \/etc\/nginx\/conf.d\/default.conf -f rm \/etc\/nginx\/conf.d\/virtual.conf -f<\/code><\/p>\n<p>  <b># \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0431\u0430\u0437\u0443 zabbix<\/b><br \/>  <code>mysql -e 'create database zabbix character set utf8;' mysql -e 'grant all privileges on zabbix.* to zabbix@localhost identified by &quot;69c9yUiUuros&quot;;' mysql -e 'flush privileges;' <\/code><\/p>\n<p>  <b># \u0417\u0430\u043b\u0438\u0432\u0430\u0435\u043c \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0435 \u0441\u0445\u0435\u043c\u044b \u0434\u043b\u044f \u0431\u0430\u0437\u044b zabbix<\/b><br \/>  <code>mysql zabbix &lt; \/usr\/share\/doc\/zabbix-server-mysql-2.0.9\/create\/schema.sql mysql zabbix &lt; \/usr\/share\/doc\/zabbix-server-mysql-2.0.9\/create\/images.sql mysql zabbix &lt; \/usr\/share\/doc\/zabbix-server-mysql-2.0.9\/create\/data.sql<\/code><\/p>\n<p>  <i># \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u0430 iptables<\/i>  <\/p>\n<blockquote><p>iptables -A INPUT -p tcp -m state &#8212;state NEW -m tcp &#8212;dport 10050 -j ACCEPT<br \/>  iptables -A INPUT -p tcp -m state &#8212;state NEW -m tcp &#8212;dport 10051 -j ACCEPT<br \/>  iptables -A INPUT -p udp -m state &#8212;state NEW -m udp &#8212;dport 10050 -j ACCEPT<br \/>  iptables -A INPUT -p udp -m state &#8212;state NEW -m udp &#8212;dport 10051 -j ACCEPT<br \/>  iptables -A INPUT -p tcp -m state &#8212;state NEW -m tcp &#8212;dport 80 -j ACCEPT<br \/>  service iptables save<\/p><\/blockquote>\n<p>  <b># \u0412\u043d\u0435\u0441\u0435\u043c \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e php<br \/>  [root@zabbix ~] nano \/etc\/php.ini<\/b><\/p>\n<p>  <code>post_max_size = 16M max_execution_time = 300 max_input_time = 300 date.timezone = Europe\/Moscow<\/code><\/p>\n<p>  <b># \u041f\u0440\u0438\u0432\u0435\u0434\u0435\u043c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438\u044e zabbix \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c\u0443 \u0432\u0438\u0434\u0443:<br \/>  egrep -v &#8216;^#|^$&#8217; \/etc\/zabbix\/zabbix_server.conf<\/p>\n<p>  [root@zabbix ~] nano \/etc\/zabbix\/zabbix_server.conf<\/b>  <\/p>\n<blockquote><p>LogFile=\/var\/log\/zabbix\/zabbix_server.log<br \/>  LogFileSize=0<br \/>  PidFile=\/var\/run\/zabbix\/zabbix_server.pid<br \/>  DBName=zabbix<br \/>  DBUser=zabbix<br \/>  DBUser=zabbix<br \/>  DBPassword=69c9yUiUuros\\<br \/>  DBSocket=\/var\/lib\/mysql\/mysql.sock<br \/>  SNMPTrapperFile=\/var\/log\/snmptt\/snmptt.log<br \/>  AlertScriptsPath=\/usr\/lib\/zabbix\/alertscripts<br \/>  ExternalScripts=\/usr\/lib\/zabbix\/externalscripts<\/p><\/blockquote>\n<p>  <b># \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u0435\u0440\u0432\u0435\u0440 zabbix \u0432 \u0430\u0432\u0442\u043e\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443 <\/b><br \/>  <code>chkconfig zabbix-server on<\/code><\/p>\n<p>  <b># \u041d\u0435\u043c\u043d\u043e\u0433\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u043c \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0443\u044e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e nginx, \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043c \u043a\u043e\u043d\u0444\u0438\u0433 \u043a \u0442\u0430\u043a\u043e\u043c\u0443 \u0432\u0438\u0434\u0443:<br \/>  [root@zabbix ~] nano \/etc\/nginx\/nginx.conf<\/b>  <\/p>\n<blockquote><p>user nginx;<br \/>  worker_processes 10;<br \/>  pid \/var\/run\/nginx.pid;<\/p>\n<p>  events {<br \/>   worker_connections 1024;<br \/>   use epoll;<\/p>\n<p>  multi_accept on;<\/p>\n<p>  }<\/p>\n<p>  error_log \/var\/log\/nginx\/error.log warn;<\/p>\n<p>  http {<br \/>   include \/etc\/nginx\/mime.types;<br \/>   default_type application\/octet-stream;<\/p>\n<p>  log_format main &#8216;$remote_addr \u2014 $remote_user [$time_local] &quot;$request&quot; &#8216;<br \/>   &#8216;$status $body_bytes_sent &quot;$http_referer&quot; &#8216;<br \/>   &#8216;&quot;$http_user_agent&quot; &quot;$http_x_forwarded_for&quot;&#8217;;<\/p>\n<p>  access_log \/var\/log\/nginx\/access.log main;<\/p>\n<p>  connection_pool_size 256;<br \/>   client_header_buffer_size 4k;<br \/>   client_max_body_size 100m;<br \/>   large_client_header_buffers 8 8k;<br \/>   request_pool_size 4k;<br \/>   output_buffers 1 32k;<br \/>   postpone_output 1460;<br \/>   proxy_max_temp_file_size 0;<br \/>  gzip on;<br \/>  gzip_min_length 1024;<br \/>  gzip_proxied any;<br \/>  gzip_proxied expired no-cache no-store private auth;<br \/>  gzip_types text\/plain text\/xml application\/xml application\/x-javascript text\/javascript text\/css text\/json;<br \/>   gzip_comp_level 8;<br \/>   gzip_disable \u00abMSIE [1-6]\\.(?!.*SV1)\u00bb;<\/p>\n<p>  sendfile on;<br \/>   tcp_nopush on;<br \/>   tcp_nodelay on;<br \/>   keepalive_timeout 75 20;<br \/>   server_names_hash_max_size 8192;<br \/>   ignore_invalid_headers on;<br \/>   server_name_in_redirect off;<\/p>\n<p>  proxy_buffer_size 8k;<br \/>   proxy_buffers 32 4k;<br \/>   proxy_connect_timeout 1000;<br \/>   proxy_read_timeout 12000;<br \/>   proxy_send_timeout 12000;<br \/>   proxy_cache_path \/var\/cache\/nginx levels=2 keys_zone=pagecache:5m inactive=10m max_size=50m;<br \/>   real_ip_header X-Real-IP;<\/p>\n<p>  proxy_set_header Host $host;<br \/>   proxy_set_header X-Real-IP $remote_addr;<br \/>   proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<\/p>\n<p>  allow all;<\/p>\n<p>  include \/etc\/nginx\/conf.d\/*.conf;<br \/>  }<\/p><\/blockquote>\n<p>  <b># \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c nginx \u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 zabbix \u0438 php-fpm<br \/>  [root@zabbix ~]# nano \/etc\/nginx\/conf.d\/zabbix.conf<\/b>  <\/p>\n<blockquote><p>server {<br \/>   listen 80;<br \/>   server_name \u0438\u043c\u044f;<br \/>  server_name \u0435\u0449\u0435 \u0438\u043c\u044f;<\/p>\n<p>  location \/ {<br \/>   root \/usr\/share\/zabbix;<br \/>   index index.php index.html index.htm;<br \/>   }<\/p>\n<p>  location ~ \\.php$ {<br \/>   root \/usr\/share\/zabbix;<br \/>   try_files $uri =404;<br \/>   fastcgi_pass 127.0.0.1:9000;<br \/>   fastcgi_index index.php;<br \/>   fastcgi_buffers 4 256k;<br \/>   fastcgi_busy_buffers_size 256k;<br \/>   fastcgi_temp_file_write_size 256k;<\/p>\n<p>  fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;<br \/>   include fastcgi_params;<br \/>   }<\/p>\n<p>  # deny access to .htaccess files, if Apache&#8217;s document root<br \/>   # concurs with nginx&#8217;s one<br \/>   #<br \/>   location ~ \/\\.ht {<br \/>   deny all;<br \/>   }<br \/>  }<\/p>\n<p>  server {<br \/>   listen 80;<br \/>   server_name _;<\/p>\n<p>  location \/ {<br \/>   root \/usr\/share\/zabbix;<br \/>   index index.php index.html index.htm;<br \/>   }<\/p>\n<p>  location ~ \\.php$ {<br \/>   root \/usr\/share\/zabbix;<br \/>   try_files $uri =404;<br \/>   fastcgi_pass 127.0.0.1:9000;<br \/>   fastcgi_index index.php;<br \/>   fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;<br \/>   include fastcgi_params;<br \/>   }<\/p>\n<p>  # deny access to .htaccess files, if Apache&#8217;s document root<br \/>   # concurs with nginx&#8217;s one<br \/>   #<br \/>   location ~ \/\\.ht {<br \/>   deny all;<br \/>   }<br \/>  }<\/p><\/blockquote>\n<p>  <b>\u0412\u043e\u0442 \u0442\u0430\u043a\u0438\u043c \u043f\u0440\u043e\u0441\u0442\u044b\u043c \u043c\u0435\u0442\u043e\u0434\u043e\u043c, \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0432\u044b\u0441\u043e\u043a\u043e\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 zabbix.<\/p>\n<p>  \u0421\u0442\u0430\u0442\u044c\u044f \u0431\u044b\u043b\u0430 \u0431\u044b \u043d\u0435 \u043f\u043e\u043b\u043d\u043e\u0439, \u0435\u0441\u043b\u0438 \u0431\u044b \u044f \u043d\u0435 \u0441\u043a\u0430\u0437\u0430\u043b \u043e\u0431 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 zabbix-proxy \u0438 zabbix-agent, \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f \u0447\u0442\u043e \u0448\u0430\u0433\u0438 \u0431\u0430\u0437\u043e\u0432\u043e\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u044b (\u0432 \u0441\u0430\u043c\u043e\u043c \u043d\u0430\u0447\u0430\u043b\u0435 \u0441\u0442\u0430\u0442\u044c\u0438) \u043c\u044b \u0443\u0436\u0435 \u043f\u0440\u043e\u0448\u043b\u0438<\/b><\/p>\n<p>  <b>PROXY<\/b><\/p>\n<p>  <b># \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 zabbix \u0434\u043b\u044f centos<\/b><br \/>  <code>rpm -ivh http:\/\/repo.zabbix.com\/zabbix\/2.0\/rhel\/6\/x86_64\/zabbix-release-2.0-1.el6.noarch.rpm<\/code><\/p>\n<p>  # \u0423\u0434\u0430\u043b\u044f\u0435\u043c \u0441\u0442\u0430\u0440\u044b\u0439 \u0441\u043e\u0444\u0442<br \/>  <code>yum remove zabbix-proxy-* -y yum remove mysql* mysql-*<\/code><\/p>\n<p>  <b># \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c mariadb \u0438\u0437 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f atomic<\/b><br \/>  <code>yum install mariadb-server mariadb-devel mariadb-client -y<\/code><\/p>\n<p>  # \u041f\u043e\u0441\u043b\u0435 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 mysql, \u043c\u043e\u0433\u043b\u0438 \u0443\u0434\u0430\u043b\u0438\u0442\u044c\u0441\u044f \u0432\u0430\u0436\u043d\u044b\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b <br \/>  <code>yum install -y cronie cronie-anacron crontabs postfix sysstat<\/code><\/p>\n<p>  <b># \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0441\u0430\u043c zabbix \u0438\u0437 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f<\/b><br \/>  <code>yum install zabbix zabbix-agent zabbix-proxy-mysql zabbix-proxy -y<\/code><\/p>\n<p>  <b>\u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0441\u043b\u0443\u0447\u0430\u0439, \u0447\u0442\u043e zabbix-proxy \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043d\u0430 \u0447\u0435\u043c \u0442\u043e \u0434\u0440\u0443\u0433\u043e\u043c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 fedora 14<\/b><\/p>\n<p>  <code>mkdir \/root\/zabbix && cd \/root\/zabbix wget http:\/\/repo.zabbix.com\/zabbix\/2.0\/rhel\/6\/x86_64\/zabbix-2.0.9-1.el6.x86_64.rpm wget http:\/\/repo.zabbix.com\/zabbix\/2.0\/rhel\/6\/x86_64\/zabbix-agent-2.0.9-1.el6.x86_64.rpm wget http:\/\/repo.zabbix.com\/zabbix\/2.0\/rhel\/6\/x86_64\/zabbix-proxy-2.0.9-1.el6.x86_64.rpm wget http:\/\/repo.zabbix.com\/zabbix\/2.0\/rhel\/6\/x86_64\/zabbix-proxy-mysql-2.0.9-1.el6.x86_64.rpm wget http:\/\/repo.zabbix.com\/zabbix\/2.0\/rhel\/6\/x86_64\/zabbix-get-2.0.9-1.el6.x86_64.rpm rpm -Uhv *.rpm<\/code><\/p>\n<p>  <b># \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c MariaDB, \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b<br \/>  [root@zabbix ~] nano \/etc\/my.cnf<\/b><\/p>\n<p>  <code>default_storage_engine=InnoDB innodb_file_per_table = 1<\/code><\/p>\n<p>  <b># \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c zabbix \u0432 \u0430\u0432\u0442\u043e\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443 <\/b><br \/>  <code>chkconfig zabbix-proxy on chkconfig zabbix-agent on chkconfig mysqld on && \/etc\/init.d\/mysqld start<\/code><\/p>\n<p>  <i># \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0431\u0430\u0437\u0443<\/i><br \/>  mysql -e &#8216;create database zabbix character set utf8;&#8217;<br \/>  mysql -e &#8216;grant all privileges on zabbix.* to zabbix@localhost identified by \u00ablNZrKeZASv0L\u00bb;&#8217;<br \/>  mysql -e &#8216;flush privileges;&#8217;<\/p>\n<p>  <b># \u0417\u0430\u043b\u0438\u0432\u0430\u0435\u043c \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0435 \u0441\u0445\u0435\u043c\u044b \u0434\u043b\u044f \u0431\u0430\u0437\u044b zabbix<\/b><br \/>  mysql zabbix &lt; \/usr\/share\/doc\/zabbix-server-mysql-2.0.9\/create\/schema.sql<br \/>  mysql zabbix &lt; \/usr\/share\/doc\/zabbix-server-mysql-2.0.9\/create\/images.sql<\/p>\n<p>  <i># \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u0430 iptables<\/i>  <\/p>\n<blockquote><p>iptables -A INPUT -p tcp -m state &#8212;state NEW -m tcp &#8212;dport 10050 -j ACCEPT<br \/>  iptables -A INPUT -p tcp -m state &#8212;state NEW -m tcp &#8212;dport 10051 -j ACCEPT<br \/>  iptables -A INPUT -p udp -m state &#8212;state NEW -m udp &#8212;dport 10050 -j ACCEPT<br \/>  iptables -A INPUT -p udp -m state &#8212;state NEW -m udp &#8212;dport 10051 -j ACCEPT<br \/>  service iptables save<\/p><\/blockquote>\n<p>  # \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u0441\u0430\u043c zabbix-proxy<\/p>\n<blockquote><p>sed -i \u00abs\/^Server=.*\/Server=\u0430\u0434\u0440\u0435\u0441-\u0441\u0435\u0440\u0432\u0435\u0440\u0430-zabbix\/g\u00bb \/etc\/zabbix\/zabbix_proxy.conf<br \/>  sed -i \u00abs\/^Hostname=.*\/Hostname=\u0438\u043c\u044f-\u044d\u0442\u043e\u0433\u043e-\u043f\u0440\u043e\u043a\u0441\u0438-\u043a\u043e\u0442\u043e\u0440\u044b\u0439-\u0443\u043a\u0430\u0437\u0430\u043b\u0438-zabbix-server\/g\u00bb \/etc\/zabbix\/zabbix_proxy.conf<br \/>  sed -i \u00abs\/^DBName=.*\/DBName=zabbix\/g\u00bb \/etc\/zabbix\/zabbix_proxy.conf<br \/>  echo ProxyMode=0 &gt;&gt; \/etc\/zabbix\/zabbix_proxy.conf<br \/>  echo ProxyLocalBuffer=1 &gt;&gt; \/etc\/zabbix\/zabbix_proxy.conf<br \/>  echo ProxyLocalBuffer=ProxyOfflineBuffer=100 &gt;&gt; \/etc\/zabbix\/zabbix_proxy.conf<br \/>  echo HousekeepingFrequency=1r=100 &gt;&gt; \/etc\/zabbix\/zabbix_proxy.conf<br \/>  echo DataSenderFrequency=300 &gt;&gt; \/etc\/zabbix\/zabbix_proxy.conf<br \/>  echo StartPollers=5 &gt;&gt; \/etc\/zabbix\/zabbix_proxy.conf<br \/>  echo StartIPMIPollers=1 &gt;&gt; \/etc\/zabbix\/zabbix_proxy.conf<br \/>  echo StartPollersUnreachable=1 &gt;&gt; \/etc\/zabbix\/zabbix_proxy.conf<br \/>  echo StartTrappers=5 &gt;&gt; \/etc\/zabbix\/zabbix_proxy.conf<br \/>  echo StartHTTPPollers=1 &gt;&gt; \/etc\/zabbix\/zabbix_proxy.conf<br \/>  echo StartDBSyncers=4 &gt;&gt; \/etc\/zabbix\/zabbix_proxy.conf<br \/>  echo Timeout=10 &gt;&gt; \/etc\/zabbix\/zabbix_proxy.conf<br \/>  echo FpingLocation=\/usr\/sbin\/fping &gt;&gt; \/etc\/zabbix\/zabbix_proxy.conf<br \/>  echo Fping6Location=\/usr\/sbin\/fping6 &gt;&gt; \/etc\/zabbix\/zabbix_proxy.conf<br \/>  echo DebugLevel=3 &gt;&gt; \/etc\/zabbix\/zabbix_proxy.conf<br \/>  echo StartDiscoverers=10 &gt;&gt; \/etc\/zabbix\/zabbix_proxy.conf<br \/>  echo DBPassword=lNZrKeZASv0L &gt;&gt; \/etc\/zabbix\/zabbix_proxy.conf<\/p><\/blockquote>\n<p>  <b># \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b zabbix-proxy<\/b><br \/>  <code>egrep -v '^#|^$' \/etc\/zabbix\/zabbix_proxy.conf<\/code><\/p>\n<p>  # \u041f\u043e\u0435\u0445\u0430\u043b\u0438<br \/>  \/etc\/init.d\/zabbix-proxy start<\/p>\n<p>  <b>AGENT, \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0435\u0433\u043e \u0440\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 chef \u0438\u043b\u0438 puppet \u043d\u043e \u0434\u043b\u044f \u043f\u043e\u043b\u043d\u043e\u0442\u044b \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u0430<\/b><\/p>\n<p>  <b># \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 zabbix \u0434\u043b\u044f centos<\/b><br \/>  <code>rpm -ivh http:\/\/repo.zabbix.com\/zabbix\/2.0\/rhel\/6\/x86_64\/zabbix-release-2.0-1.el6.noarch.rpm<\/code><\/p>\n<p>  <b># \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0430\u0433\u0435\u043d\u0442\u0430 \u0438\u0437 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f<\/b><br \/>  <code>yum install zabbix zabbix-agent -y<\/code><\/p>\n<p>  <b>\u0438\u043b\u0438 \u0435\u0441\u043b\u0438 \u0443 \u0412\u0430\u0441 \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0441\u0432\u0435\u0436\u0430\u044f fedora<\/b><br \/>  <code>rpm -Uhv http:\/\/repo.zabbix.com\/zabbix\/2.0\/rhel\/6\/x86_64\/zabbix-2.0.9-1.el6.x86_64.rpm<\/code><\/p>\n<p>  <b># \u0414\u0430\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e zabbix \u043f\u0440\u0430\u0432\u0430 sudo \u0438 \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0430\u043f\u043a\u0438 \u0434\u043b\u044f \u043d\u0430\u0448\u0438\u0445 \u0431\u0443\u0434\u0443\u0449\u0438\u0445 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432<\/b><br \/>  <code>usermod -s \/bin\/bash zabbix echo 'zabbix  ALL=(ALL) NOPASSWD: ALL' &gt;&gt; \/etc\/sudoers sed -i 's\/Defaults\\    requiretty\/#Defaults\\    requiretty\/g' \/etc\/sudoers mkdir \/etc\/zabbix\/scripts\/ chmod 750 \/etc\/zabbix\/scripts\/<\/code><\/p>\n<p>  <b># \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c zabbix-agent \u0432 \u0430\u0432\u0442\u043e\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443<\/b><br \/>  <code>chkconfig zabbix-agent on<\/code><\/p>\n<p>  <i># \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u0430 iptables<\/i>  <\/p>\n<blockquote><p>iptables -A INPUT -p tcp -m state &#8212;state NEW -m tcp &#8212;dport 10050 -j ACCEPT<br \/>  iptables -A INPUT -p tcp -m state &#8212;state NEW -m tcp &#8212;dport 10051 -j ACCEPT<br \/>  iptables -A INPUT -p udp -m state &#8212;state NEW -m udp &#8212;dport 10050 -j ACCEPT<br \/>  iptables -A INPUT -p udp -m state &#8212;state NEW -m udp &#8212;dport 10051 -j ACCEPT<br \/>  service iptables save<\/p><\/blockquote>\n<blockquote><p>sed -i \u00abs\/^Server=.*\/Server=\u0430\u0434\u0440\u0435\u0441-zabbix-sever-\u0438\u043b\u0438-proxy\/g\u00bb \/etc\/zabbix\/zabbix_agentd.conf<br \/>  sed -i \u00abs\/^ServerActive=.*\/ServerActive=\u0430\u0434\u0440\u0435\u0441-zabbix-sever-\u0438\u043b\u0438-proxy\/g\u00bb \/etc\/zabbix\/zabbix_agentd.conf<br \/>  sed -i \u00abs\/^Hostname=.*\/Hostname=`hostname`\/g\u00bb \/etc\/zabbix\/zabbix_agentd.conf<br \/>  echo EnableRemoteCommands=1 &gt;&gt; \/etc\/zabbix\/zabbix_agentd.conf<br \/>  echo LogRemoteCommands=1 &gt;&gt; \/etc\/zabbix\/zabbix_agentd.conf<br \/>  echo Timeout=30 &gt;&gt; \/etc\/zabbix\/zabbix_agentd.conf<br \/>  echo Include=\/etc\/zabbix\/zabbix_agentd.d\/ &gt;&gt; \/etc\/zabbix\/zabbix_agentd.conf  <\/p><\/blockquote>\n<p>  <b># \u0413\u043e\u0442\u043e\u0432\u043e, \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0435\u043c \u043b\u043e\u0433\u0438<\/b><br \/>  <code>\/etc\/init.d\/zabbix-agent restart && tail -f -n 100 \/var\/log\/zabbix\/zabbix_*.log<\/code><\/p>\n<p>  <b>\u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0412\u0430\u0448\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0435\u0441\u043b\u0438 \u0441\u043e\u0447\u0442\u0435\u0442\u0435 \u044d\u0442\u043e\u043c \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u043c, \u0442\u043e \u044f \u0431\u0443\u0434\u0443 \u0440\u0430\u0434 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0435\u0449\u0435 \u043c\u043d\u043e\u0433\u0438\u043c \u0438 \u043c\u043d\u043e\u0433\u0438\u043c! <\/b>    \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/198354\/\"> http:\/\/habrahabr.ru\/post\/198354\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/6ab\/8bc\/2be\/6ab8bc2be9d3c4ff89a47783a9ac5626.png\"\/><\/p>\n<p>  \u041f\u0435\u0440\u0435\u0434 \u043d\u0430\u043c\u0438 \u0441\u0442\u043e\u0438\u0442 \u043d\u0435\u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430, \u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430 zabbix.<br \/>  \u0421\u0440\u0435\u0434\u0438 \u043c\u043d\u043e\u0433\u0438\u0445 \u0441\u0442\u0430\u0442\u0435\u0439 \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435, \u0435\u0441\u0442\u044c \u043c\u043d\u043e\u0433\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0439 \u0442\u0438\u043f\u043e\u0432\u044b\u0445 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043e\u043a \u044d\u0442\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b. \u042f \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043e\u043f\u0438\u0448\u0443, \u043a\u0430\u043a \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c zabbix \u0431\u044b\u0441\u0442\u0440\u0435\u0435.<br \/>  \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0431\u0430\u0437\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u044f \u0431\u0443\u0434\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c CentOS 6.4. \u0422\u0430\u043a \u0442\u0430\u043a \u0436\u0435 \u043a\u0430\u043a \u0438 \u043c\u043d\u043e\u0433\u0438\u0435 \u044f \u043b\u044e\u0431\u043b\u044e Debian, Gentoo \u0438 \u0432\u0441\u0435 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u044b, \u043d\u043e \u044d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f \u0438\u043c\u0435\u043d\u043d\u043e \u0434\u043b\u044f CentOS.<\/p>\n<p>  <b>\u0412\u0441\u0435 \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u044f \u0440\u0430\u0441\u043f\u0438\u0448\u0443 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u0438 \u0448\u0430\u0433 \u0437\u0430 \u0448\u0430\u0433\u043e\u043c, \u0438 \u043d\u0430\u0447\u043d\u0435\u043c \u0441 \u0431\u0430\u0437\u043e\u0432\u043e\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043d\u0430\u0448\u0435\u0433\u043e CentOS<\/b><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-198354","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/198354","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=198354"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/198354\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=198354"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=198354"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=198354"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}