{"id":706,"date":"2018-07-08T00:15:58","date_gmt":"2018-07-07T17:15:58","guid":{"rendered":"https:\/\/lagonet.vn\/?p=706"},"modified":"2018-07-08T00:15:58","modified_gmt":"2018-07-07T17:15:58","slug":"lam-sao-de-tao-ra-zabbix","status":"publish","type":"post","link":"https:\/\/kb.lagonet.vn\/?p=706","title":{"rendered":"L\u00c0M SAO \u0110\u1ec2 T\u1ea0O RA ZABBIX"},"content":{"rendered":"<p>Currently Zabbix 3.4.3 (<a class=\"ext-link\" href=\"https:\/\/zabbix.itim.vn\/\"><span class=\"icon\">\u200b<\/span>https:\/\/zabbix.itim.vn<\/a>) is running on VM zbx-server1v-virt.itim.vn (bare metal node virt1v.itim.vn)<\/p>\n<ul>\n<li>SMS notification numbers:\n<ul>\n<li>98.681.4021 &#8211; VDC Datacenter<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>New Zabbix server (zbx-server1v-virt.itim.vn)<\/p>\n<ul>\n<li>Zabbix Server Installation<\/li>\n<li>Zabbix Proxy Installation<\/li>\n<\/ul>\n<h2 id=\"HowtoinstallZabbixserver:\">How to install Zabbix server:<a id=\"section_1\" class=\"anchor\" title=\"Edit this section\" href=\"https:\/\/trac.coccoc.com\/coccoc\/wiki\/NCC\/DC_zabbix\/Installation_Process?action=edit&amp;section=1\"><\/a><\/h2>\n<ul>\n<li>Use Debian 9 host, with\u00a0<strong>network<\/strong>\u00a0and\u00a0<strong>security<\/strong>\u00a0repositories added into apt source lists.<\/li>\n<li>Add Zabbix repo and snmp-mib-downliader\n<pre class=\"wiki\">    wget http:\/\/repo.zabbix.com\/zabbix\/3.4\/debian\/pool\/main\/z\/zabbix-release\/zabbix-release_3.4-1+stretch_all.deb;\n    dpkg -i zabbix-release_3.4-1+stretch_all.deb;\n    apt-get update;\n    wget http:\/\/ftp.us.debian.org\/debian\/pool\/non-free\/s\/snmp-mibs-downloader\/snmp-mibs-downloader_1.1+nmu1_all.deb;\n    dpkg -i snmp-mibs-downloader_1.1+nmu1_all.deb;\n<\/pre>\n<\/li>\n<\/ul>\n<blockquote>\n<blockquote><p>You can ignore dependency errors at this step (it will be resolved later).<\/p><\/blockquote>\n<\/blockquote>\n<ul>\n<li>Stop Mysql Slave process if any\n<pre class=\"wiki\">    MariaDB [(none)]&gt; slave stop;\n<\/pre>\n<pre class=\"wiki\">    iptables -A INPUT -s &lt;MysqlMasterIP&gt; -p tcp -m tcp --sport 3306 -j DROP\n<\/pre>\n<\/li>\n<li>Install package\u00a0<strong>coccoc-zabbix-server-config-stretch<\/strong>\u00a0(if something above will fail &#8211; package will exit with notification about it) and follow the output instructions\n<pre class=\"wiki\">    apt-get install coccoc-zabbix-server-config-stretch\n<\/pre>\n<\/li>\n<li>Create mysql user zabbix and grant access to db &#8216;zabbix&#8217; (password in zabbix server config)\n<pre class=\"wiki\">    use zabbix;\n    GRANT ALL ON zabbix.* TO zabbix@localhost IDENTIFIED BY \"(password in zabbix server config)\";\n    FLUSH PRIVILEGES;\n<\/pre>\n<\/li>\n<li>Install package\u00a0<strong>coccoc-net-zabbix-server-tools<\/strong>\n<pre class=\"wiki\">    apt-get install coccoc-net-zabbix-server-tools\n<\/pre>\n<\/li>\n<li>Run partitioning script\n<pre class=\"wiki\">    \/etc\/cron.daily\/zabbix-housekeeping\n<\/pre>\n<\/li>\n<li>Restart zabbix server\n<pre class=\"wiki\">    systemctl restart zabbix-server.service\n<\/pre>\n<\/li>\n<li>Use\n<pre class=\"wiki\">    tailf \/var\/log\/zabbix\/zabbix_server.log\n<\/pre>\n<\/li>\n<\/ul>\n<blockquote>\n<blockquote><p>to observe a Zabbix DB upgrade (if any) or errors (if any)<\/p><\/blockquote>\n<\/blockquote>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>As described in\u00a0<a href=\"https:\/\/trac.coccoc.com\/coccoc\/ticket\/472946\">https:\/\/trac.coccoc.com\/coccoc\/ticket\/472946<\/a><\/p>\n<ul>\n<li>Installation\n<ul>\n<li>Add official zabbix repo to apt &lt;<a class=\"ext-link\" href=\"https:\/\/www.zabbix.com\/documentation\/3.4\/manual\/installation\/install_from_packages\/debian_ubuntu\"><span class=\"icon\">\u200b<\/span>https:\/\/www.zabbix.com\/documentation\/3.4\/manual\/installation\/install_from_packages\/debian_ubuntu<\/a>&gt;\n<ul>\n<li>Deb 9\n<pre class=\"wiki\">    wget http:\/\/repo.zabbix.com\/zabbix\/3.4\/debian\/pool\/main\/z\/zabbix-release\/zabbix-release_3.4-1+stretch_all.deb\n    dpkg -i zabbix-release_3.4-1+stretch_all.deb\n    apt-get update\n    apt-get install mariadb-server zabbix-proxy-mysql smistrip patch\n    wget http:\/\/ftp.us.debian.org\/debian\/pool\/non-free\/s\/snmp-mibs-downloader\/snmp-mibs-downloader_1.1+nmu1_all.deb &amp;&amp; dpkg -i snmp-mibs-downloader_1.1+nmu1_all.deb\n<\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<li>Create DB\n<pre class=\"wiki\">    create database zabbix_proxy_vdc character set utf8 collate utf8_bin;\n    grant all privileges on zabbix_proxy_vdc.* to zabbix@localhost identified by '################';\n    flush privileges;\n<\/pre>\n<pre class=\"wiki\">    zcat \/usr\/share\/doc\/zabbix-proxy-mysql\/schema.sql.gz | mysql -uzabbix -p zabbix_proxy_vdc\n<\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<li>Zabbix proxy configuration:\n<ul>\n<li>Install package\u00a0<strong>coccoc-zabbix-proxy-config-vdc<\/strong><\/li>\n<li>Make sure that you have a correct password to MariaDB DB in zabbix_proxy.conf<\/li>\n<li>Restart zabbix proxy process<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Currently Zabbix 3.4.3 (\u200bhttps:\/\/zabbix.itim.vn) is running on VM zbx-server1v-virt.itim.vn (bare metal node virt1v.itim.vn) SMS notification numbers: 98.681.4021 &#8211; VDC Datacenter [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[19,6],"tags":[],"class_list":["post-706","post","type-post","status-publish","format-standard","hentry","category-issues","category-networking"],"_links":{"self":[{"href":"https:\/\/kb.lagonet.vn\/index.php?rest_route=\/wp\/v2\/posts\/706","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kb.lagonet.vn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kb.lagonet.vn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kb.lagonet.vn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.lagonet.vn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=706"}],"version-history":[{"count":0,"href":"https:\/\/kb.lagonet.vn\/index.php?rest_route=\/wp\/v2\/posts\/706\/revisions"}],"wp:attachment":[{"href":"https:\/\/kb.lagonet.vn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=706"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kb.lagonet.vn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=706"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kb.lagonet.vn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=706"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}