{"id":238,"date":"2019-09-02T15:51:21","date_gmt":"2019-09-02T14:51:21","guid":{"rendered":"https:\/\/www.syslab.network\/?page_id=238"},"modified":"2020-03-29T19:14:04","modified_gmt":"2020-03-29T18:14:04","slug":"zabbix-server-installation","status":"publish","type":"page","link":"https:\/\/www.syslab.network\/index.php\/zabbix-2\/zabbix-server-installation\/","title":{"rendered":"Zabbix Server Installation"},"content":{"rendered":"<div class=\"post-content\">\n<p> <\/p>\n\n\n\n<p>Resources used for this how to:<\/p>\n\n\n\n<p> \u2794 VM in ESXi 6.7<br> \u2794 Zabbix 4.x<br> \u2794 Sistema CentOS 7.x<br> \u2794 2 CPU<br> \u2794 2 GB RAM<\/p>\n\n\n\n<p>You can use VmWare Player, Virtualbox or perform a clean install on a computer.<\/p>\n\n\n\n<p>When you finished a clean install of Centos 7 update de SO:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;mode&quot;:&quot;smarty&quot;,&quot;mime&quot;:&quot;text\/x-smarty&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;showPanel&quot;:false,&quot;language&quot;:&quot;Smarty&quot;,&quot;modeName&quot;:&quot;smarty&quot;}\">yum update -y<\/pre><\/div>\n\n\n\n<p>Now let&#8217;s install some very useful packages<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;mode&quot;:&quot;smarty&quot;,&quot;mime&quot;:&quot;text\/x-smarty&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:true,&quot;readOnly&quot;:true,&quot;language&quot;:&quot;Smarty&quot;,&quot;modeName&quot;:&quot;smarty&quot;}\">yum install wget nano net-tools epel-release  -y<\/pre><\/div>\n\n\n\n<ul><li>wget (used to download files from internet)<\/li><li>nano (Text editor)<\/li><li>net-tools (ifconfig, tracert)<\/li><li>epel-release ( Extra Packages for Enterprise Linux )<\/li><\/ul>\n\n\n\n<p>Disabled SELinux edit config file:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;mode&quot;:&quot;smarty&quot;,&quot;mime&quot;:&quot;text\/x-smarty&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;language&quot;:&quot;Smarty&quot;,&quot;modeName&quot;:&quot;smarty&quot;}\">nano \/etc\/selinux\/config<\/pre><\/div>\n\n\n\n<p>and change &#8220;SELINUX=enforcing&#8221; to &#8220;SELINUX=disabled&#8221;<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;mode&quot;:&quot;shell&quot;,&quot;mime&quot;:&quot;text\/x-sh&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;language&quot;:&quot;Shell&quot;,&quot;modeName&quot;:&quot;shell&quot;}\"># This file controls the state of SELinux on the system.\n# SELINUX= can take one of these three values:\n#     enforcing - SELinux security policy is enforced.\n#     permissive - SELinux prints warnings instead of enforcing.\n#     disabled - No SELinux policy is loaded.\nSELINUX=enforcing\n# SELINUXTYPE= can take one of three values:\n#     targeted - Targeted processes are protected,\n#     minimum - Modification of targeted policy. Only selected processes are p$\n#     mls - Multi Level Security protection.\nSELINUXTYPE=targeted<\/pre><\/div>\n\n\n\n<p>and reboot the VM.<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;mode&quot;:&quot;smarty&quot;,&quot;mime&quot;:&quot;text\/x-smarty&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;language&quot;:&quot;Smarty&quot;,&quot;modeName&quot;:&quot;smarty&quot;}\">systemctl reboot<\/pre><\/div>\n\n\n\n<p> Disable firewall temporarily <\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;mode&quot;:&quot;smarty&quot;,&quot;mime&quot;:&quot;text\/x-smarty&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;language&quot;:&quot;Smarty&quot;,&quot;modeName&quot;:&quot;smarty&quot;}\">systemctl stop firewalld<\/pre><\/div>\n\n\n\n<p>Install rpm from Zabbix website<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;mode&quot;:&quot;smarty&quot;,&quot;mime&quot;:&quot;text\/x-smarty&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:true,&quot;readOnly&quot;:true,&quot;language&quot;:&quot;Smarty&quot;,&quot;modeName&quot;:&quot;smarty&quot;}\">rpm -Uvh https:\/\/repo.zabbix.com\/zabbix\/4.2\/rhel\/7\/x86_64\/zabbix-release-4.2-2.el7.noarch.rpm<\/pre><\/div>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;mode&quot;:&quot;smarty&quot;,&quot;mime&quot;:&quot;text\/x-smarty&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;language&quot;:&quot;Smarty&quot;,&quot;modeName&quot;:&quot;smarty&quot;}\">yum clean<\/pre><\/div>\n\n\n\n<p>Install Zabbix server and agent<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;mode&quot;:&quot;smarty&quot;,&quot;mime&quot;:&quot;text\/x-smarty&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;language&quot;:&quot;Smarty&quot;,&quot;modeName&quot;:&quot;smarty&quot;}\">yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent <\/pre><\/div>\n\n\n\n<p>Ok, almost there. Now we have to install the database server. We will use mysql. <\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;mode&quot;:&quot;smarty&quot;,&quot;mime&quot;:&quot;text\/x-smarty&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;language&quot;:&quot;Smarty&quot;,&quot;modeName&quot;:&quot;smarty&quot;}\">rpm -Uvh https:\/\/repo.mysql.com\/mysql80-community-release-el7-3.noarch.rpm<\/pre><\/div>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;mode&quot;:&quot;smarty&quot;,&quot;mime&quot;:&quot;text\/x-smarty&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;language&quot;:&quot;Smarty&quot;,&quot;modeName&quot;:&quot;smarty&quot;}\">yum install mysql-community-server<\/pre><\/div>\n\n\n\n<p>When the installation is finished start mysql.<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;mode&quot;:&quot;smarty&quot;,&quot;mime&quot;:&quot;text\/x-smarty&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;language&quot;:&quot;Smarty&quot;,&quot;modeName&quot;:&quot;smarty&quot;}\">systemctl start mysqld<\/pre><\/div>\n\n\n\n<p>And enable start on boot for the service.<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;mode&quot;:&quot;smarty&quot;,&quot;mime&quot;:&quot;text\/x-smarty&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;language&quot;:&quot;Smarty&quot;,&quot;modeName&quot;:&quot;smarty&quot;}\">systemctl enable mysqld<\/pre><\/div>\n\n\n\n<p>Check if the service is running <\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;mode&quot;:&quot;smarty&quot;,&quot;mime&quot;:&quot;text\/x-smarty&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;language&quot;:&quot;Smarty&quot;,&quot;modeName&quot;:&quot;smarty&quot;}\">systemctl status mysqld<\/pre><\/div>\n\n\n\n<p>Now get the temporary root password<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;mode&quot;:&quot;smarty&quot;,&quot;mime&quot;:&quot;text\/x-smarty&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;language&quot;:&quot;Smarty&quot;,&quot;modeName&quot;:&quot;smarty&quot;}\">grep 'A temporary password is generated for root@localhost' \/var\/log\/mysqld.log |tail -1<\/pre><\/div>\n\n\n\n<p>With mysql installed and running it is time to make the database more secure by setting the root password, removing remote access and so on.<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;mode&quot;:&quot;smarty&quot;,&quot;mime&quot;:&quot;text\/x-smarty&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;language&quot;:&quot;Smarty&quot;,&quot;modeName&quot;:&quot;smarty&quot;}\">mysql_secure_installation<\/pre><\/div>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;mode&quot;:&quot;smarty&quot;,&quot;mime&quot;:&quot;text\/x-smarty&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;language&quot;:&quot;Smarty&quot;,&quot;modeName&quot;:&quot;smarty&quot;}\">Securing the MySQL server deployment.\n\nEnter password for user root: \n\nThe existing password for the user account root has expired. Please set a new password.\n\nNew password: \n\nRe-enter new password: \nThe 'validate_password' component is installed on the server.\nThe subsequent steps will run with the existing configuration\nof the component.\nUsing existing password for root.\n\nEstimated strength of the password: 100 \nChange the password for root ? ((Press y|Y for Yes, any other key for No) : n\n\n ... skipping.\nBy default, a MySQL installation has an anonymous user,\nallowing anyone to log into MySQL without having to have\na user account created for them. This is intended only for\ntesting, and to make the installation go a bit smoother.\nYou should remove them before moving into a production\nenvironment.\n\nRemove anonymous users? (Press y|Y for Yes, any other key for No) : y\nSuccess.\n\n\nNormally, root should only be allowed to connect from\n'localhost'. This ensures that someone cannot guess at\nthe root password from the network.\n\nDisallow root login remotely? (Press y|Y for Yes, any other key for No) : y\nSuccess.\n\nBy default, MySQL comes with a database named 'test' that\nanyone can access. This is also intended only for testing,\nand should be removed before moving into a production\nenvironment.\n\n\nRemove test database and access to it? (Press y|Y for Yes, any other key for No) : y\n - Dropping test database...\nSuccess.\n\n - Removing privileges on test database...\nSuccess.\n\nReloading the privilege tables will ensure that all changes\nmade so far will take effect immediately.\n\nReload privilege tables now? (Press y|Y for Yes, any other key for No) : y\nSuccess.<\/pre><\/div>\n\n\n\n<p>Create the zabbix DB, in this example we chose the DB name \u201czabbix\u201d but you can choose differently.<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;mode&quot;:&quot;smarty&quot;,&quot;mime&quot;:&quot;text\/x-smarty&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;language&quot;:&quot;Smarty&quot;,&quot;modeName&quot;:&quot;smarty&quot;}\">mysql -u root -p<\/pre><\/div>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;mode&quot;:&quot;smarty&quot;,&quot;mime&quot;:&quot;text\/x-smarty&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;language&quot;:&quot;Smarty&quot;,&quot;modeName&quot;:&quot;smarty&quot;}\">mysql&gt; create database zabbix character set utf8 collate utf8_bin;<\/pre><\/div>\n\n\n\n<p> Create a user in the the DB to write in the zabbix\u2019s DB. Grant all privileges to the DB and set the user\u2019s password. <\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;mode&quot;:&quot;smarty&quot;,&quot;mime&quot;:&quot;text\/x-smarty&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;language&quot;:&quot;Smarty&quot;,&quot;modeName&quot;:&quot;smarty&quot;}\">mysql&gt; create user 'USER'@'localhost' IDENTIFIED WITH mysql_native_password BY 'YOURPASSWORD!';<\/pre><\/div>\n\n\n\n<p>Your password must have upper and lower case letters, numbers and special characters<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;mode&quot;:&quot;smarty&quot;,&quot;mime&quot;:&quot;text\/x-smarty&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;language&quot;:&quot;Smarty&quot;,&quot;modeName&quot;:&quot;smarty&quot;}\">mysql&gt; grant all privileges on zabbix.* to USER@localhost;<\/pre><\/div>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;mode&quot;:&quot;smarty&quot;,&quot;mime&quot;:&quot;text\/x-smarty&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;language&quot;:&quot;Smarty&quot;,&quot;modeName&quot;:&quot;smarty&quot;}\">mysql&gt; FLUSH PRIVILEGES;<\/pre><\/div>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;mode&quot;:&quot;smarty&quot;,&quot;mime&quot;:&quot;text\/x-smarty&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;language&quot;:&quot;Smarty&quot;,&quot;modeName&quot;:&quot;smarty&quot;}\">mysql&gt; quit;<\/pre><\/div>\n\n\n\n<p>Import the Zabbix schema to zabbix DB. This step may take some time so don\u2019t worry.<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;mode&quot;:&quot;smarty&quot;,&quot;mime&quot;:&quot;text\/x-smarty&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;language&quot;:&quot;Smarty&quot;,&quot;modeName&quot;:&quot;smarty&quot;}\">zcat \/usr\/share\/doc\/zabbix-server-mysql*\/create.sql.gz | mysql -u USER -p DBNAME<\/pre><\/div>\n\n\n\n<p> We must edit the Zabbix-server config file in order to connect the DB. <\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;mode&quot;:&quot;smarty&quot;,&quot;mime&quot;:&quot;text\/x-smarty&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;language&quot;:&quot;Smarty&quot;,&quot;modeName&quot;:&quot;smarty&quot;}\">nano \/etc\/zabbix\/zabbix_server.conf<\/pre><\/div>\n\n\n\n<p>And change the next values<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;mode&quot;:&quot;smarty&quot;,&quot;mime&quot;:&quot;text\/x-smarty&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;language&quot;:&quot;Smarty&quot;,&quot;modeName&quot;:&quot;smarty&quot;}\">DBHost=localhost\nDBName=YOURDBNAME\nDBUser=YOURDBUSER\nDBPassword=YOURPASSWORD\n<\/pre><\/div>\n\n\n\n<p> And edit the zabbix config file to uncomment and change the time zone ( php_value date.timezone ). <\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;mode&quot;:&quot;smarty&quot;,&quot;mime&quot;:&quot;text\/x-smarty&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;language&quot;:&quot;Smarty&quot;,&quot;modeName&quot;:&quot;smarty&quot;}\">nano \/etc\/httpd\/conf.d\/zabbix.conf<\/pre><\/div>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;mode&quot;:&quot;shell&quot;,&quot;mime&quot;:&quot;text\/x-sh&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;language&quot;:&quot;Shell&quot;,&quot;modeName&quot;:&quot;shell&quot;}\">#\n# Zabbix monitoring system php web frontend\n#\n\nAlias \/zabbix \/usr\/share\/zabbix\n\n&lt;Directory &quot;\/usr\/share\/zabbix&quot;&gt;\n    Options FollowSymLinks\n    AllowOverride None\n    Require all granted\n\n    &lt;IfModule mod_php5.c&gt;\n        php_value max_execution_time 300\n        php_value memory_limit 128M\n        php_value post_max_size 16M\n        php_value upload_max_filesize 2M\n        php_value max_input_time 300\n        php_value max_input_vars 10000\n        php_value always_populate_raw_post_data -1\n        # php_value date.timezone Europe\/Riga\n    &lt;\/IfModule&gt;\n&lt;\/Directory&gt;\n\n&lt;Directory &quot;\/usr\/share\/zabbix\/conf&quot;&gt;\n    Require all denied\n&lt;\/Directory&gt;\n\n&lt;Directory &quot;\/usr\/share\/zabbix\/app&quot;&gt;\n    Require all denied\n&lt;\/Directory&gt;\n\n&lt;Directory &quot;\/usr\/share\/zabbix\/include&quot;&gt;\n    Require all denied\n&lt;\/Directory&gt;\n\n&lt;Directory &quot;\/usr\/share\/zabbix\/local&quot;&gt;\n    Require all denied\n&lt;\/Directory&gt;<\/pre><\/div>\n\n\n\n<p> Almost there. Now, start and enable the zabbix server, zabbix agent and httpd <\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;mode&quot;:&quot;smarty&quot;,&quot;mime&quot;:&quot;text\/x-smarty&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;language&quot;:&quot;Smarty&quot;,&quot;modeName&quot;:&quot;smarty&quot;}\">systemctl restart zabbix-server zabbix-agent httpd<\/pre><\/div>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;mode&quot;:&quot;smarty&quot;,&quot;mime&quot;:&quot;text\/x-smarty&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;language&quot;:&quot;Smarty&quot;,&quot;modeName&quot;:&quot;smarty&quot;}\">systemctl enable zabbix-server zabbix-agent httpd<\/pre><\/div>\n\n\n\n<p>Type the following link in your browser <a href=\"http:\/\/IP_ZABBIX_SERVER\/zabbix\">http:\/\/IP_ZABBIX_SERVER\/zabbix<\/a> and hit next.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" src=\"https:\/\/www.syslab.network\/wp-content\/uploads\/2019\/09\/1page-1024x473.png\" alt=\"\" class=\"wp-image-291\" width=\"762\" height=\"351\" srcset=\"https:\/\/www.syslab.network\/wp-content\/uploads\/2019\/09\/1page-1024x473.png 1024w, https:\/\/www.syslab.network\/wp-content\/uploads\/2019\/09\/1page-300x138.png 300w, https:\/\/www.syslab.network\/wp-content\/uploads\/2019\/09\/1page-768x354.png 768w, https:\/\/www.syslab.network\/wp-content\/uploads\/2019\/09\/1page-100x46.png 100w, https:\/\/www.syslab.network\/wp-content\/uploads\/2019\/09\/1page-150x69.png 150w, https:\/\/www.syslab.network\/wp-content\/uploads\/2019\/09\/1page-200x92.png 200w, https:\/\/www.syslab.network\/wp-content\/uploads\/2019\/09\/1page-450x208.png 450w, https:\/\/www.syslab.network\/wp-content\/uploads\/2019\/09\/1page-600x277.png 600w, https:\/\/www.syslab.network\/wp-content\/uploads\/2019\/09\/1page-900x415.png 900w, https:\/\/www.syslab.network\/wp-content\/uploads\/2019\/09\/1page.png 1599w\" sizes=\"(max-width: 762px) 100vw, 762px\" \/><\/figure><\/div>\n\n\n\n<p>\nIf everything is <strong>OK<\/strong> hit next again\n\n<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" src=\"https:\/\/www.syslab.network\/wp-content\/uploads\/2019\/09\/2page-1024x496.png\" alt=\"\" class=\"wp-image-292\" width=\"762\" height=\"331\"\/><\/figure><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p>Insert the DB parameters and hit next.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" src=\"https:\/\/www.syslab.network\/wp-content\/uploads\/2019\/09\/3page-1024x539.png\" alt=\"\" class=\"wp-image-293\" width=\"762\" height=\"331\"\/><\/figure><\/div>\n\n\n\n<p> Hit next again. If you need, change the Host and Name fields. <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" src=\"https:\/\/www.syslab.network\/wp-content\/uploads\/2019\/09\/4page-1024x524.png\" alt=\"\" class=\"wp-image-294\" width=\"762\" height=\"331\"\/><\/figure><\/div>\n\n\n\n<p>This is the summary of the installation. Hit next.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" src=\"https:\/\/www.syslab.network\/wp-content\/uploads\/2019\/09\/5page-1024x532.png\" alt=\"\" class=\"wp-image-295\" width=\"762\" height=\"331\"\/><\/figure><\/div>\n\n\n\n<p>And it\u2019s done, we finished the installation. Hit finish.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" src=\"https:\/\/www.syslab.network\/wp-content\/uploads\/2019\/09\/6page-1024x533.png\" alt=\"\" class=\"wp-image-296\" width=\"762\" height=\"331\"\/><\/figure><\/div>\n\n\n\n<p>The default zabbix\u2019s User\/Password is Admin\/zabbix.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" src=\"https:\/\/www.syslab.network\/wp-content\/uploads\/2019\/09\/login-1024x465.png\" alt=\"\" class=\"wp-image-297\" width=\"762\" height=\"331\"\/><\/figure><\/div>\n\n\n\n<p>Zabbix\u2019s default dashboard.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" src=\"https:\/\/www.syslab.network\/wp-content\/uploads\/2019\/09\/zabbix-1024x555.png\" alt=\"\" class=\"wp-image-298\" width=\"762\" height=\"331\"\/><\/figure><\/div>\n\n\n\n<p>If you click in all dashboards you can choose  another Zabbix server dashboard that is already created by default <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" src=\"https:\/\/www.syslab.network\/wp-content\/uploads\/2019\/09\/dashboard-1024x555.png\" alt=\"\" class=\"wp-image-299\" width=\"762\" height=\"331\"\/><\/figure><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p>And Its done!!!<\/p>\n\n\n\n<p><\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Resources used for this how to: \u2794 VM in ESXi<a href=\"https:\/\/www.syslab.network\/index.php\/zabbix-2\/zabbix-server-installation\/\">Read More<i class=\"fa fa-long-arrow-right\" aria-hidden=\"true\"><\/i><\/a><\/p>\n","protected":false},"author":1,"featured_media":309,"parent":232,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_mi_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0},"_links":{"self":[{"href":"https:\/\/www.syslab.network\/index.php\/wp-json\/wp\/v2\/pages\/238"}],"collection":[{"href":"https:\/\/www.syslab.network\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.syslab.network\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.syslab.network\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.syslab.network\/index.php\/wp-json\/wp\/v2\/comments?post=238"}],"version-history":[{"count":21,"href":"https:\/\/www.syslab.network\/index.php\/wp-json\/wp\/v2\/pages\/238\/revisions"}],"predecessor-version":[{"id":377,"href":"https:\/\/www.syslab.network\/index.php\/wp-json\/wp\/v2\/pages\/238\/revisions\/377"}],"up":[{"embeddable":true,"href":"https:\/\/www.syslab.network\/index.php\/wp-json\/wp\/v2\/pages\/232"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.syslab.network\/index.php\/wp-json\/wp\/v2\/media\/309"}],"wp:attachment":[{"href":"https:\/\/www.syslab.network\/index.php\/wp-json\/wp\/v2\/media?parent=238"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}