{"id":8557,"date":"2016-11-24T19:51:02","date_gmt":"2016-11-24T10:51:02","guid":{"rendered":"http:\/\/www.skyarch.net\/blog\/?p=8557"},"modified":"2016-11-24T19:52:05","modified_gmt":"2016-11-24T10:52:05","slug":"install-zabbix-3-0-server-on-amazon-linux-2016-09-version","status":"publish","type":"post","link":"https:\/\/www.skyarch.net\/blog\/en\/install-zabbix-3-0-server-on-amazon-linux-2016-09-version\/","title":{"rendered":"Install Zabbix 3.0 Server on Amazon Linux 2016.09 Version"},"content":{"rendered":"<p>According to Wikipedia:<\/p>\n<p><b>Zabbix<\/b> is enterprise open source monitoring software for networks and applications, created by Alexei Vladishev. It is designed to monitor and track the status of various network services, servers, and other network hardware.<\/p>\n<p>Zabbix uses MySQL, PostgreSQL, SQLite, Oracle or IBM DB2 to store data.<span style=\"font-size: 11.25px;\">\u00a0<\/span>Its backend is written in C and the web frontend is written in PHP. Zabbix offers several monitoring options:<\/p>\n<ul>\n<li>Simple checks can verify the availability and responsiveness of standard services such as SMTP or HTTP without installing any software on the monitored host.<\/li>\n<li>A Zabbix <a title=\"Software agent\" href=\"https:\/\/en.wikipedia.org\/wiki\/Software_agent\">agent<\/a> can also be installed on UNIX and Windows hosts to monitor statistics such as CPU load, network utilization, disk space, etc.<\/li>\n<li>As an alternative to installing an agent on hosts, Zabbix includes support for monitoring via <a title=\"Simple Network Management Protocol\" href=\"https:\/\/en.wikipedia.org\/wiki\/Simple_Network_Management_Protocol\">SNMP<\/a>, <a title=\"Transmission Control Protocol\" href=\"https:\/\/en.wikipedia.org\/wiki\/Transmission_Control_Protocol\">TCP<\/a> and <a title=\"Internet Control Message Protocol\" href=\"https:\/\/en.wikipedia.org\/wiki\/Internet_Control_Message_Protocol\">ICMP<\/a> checks, as well as over <a title=\"Intelligent Platform Management Interface\" href=\"https:\/\/en.wikipedia.org\/wiki\/Intelligent_Platform_Management_Interface\">IPMI<\/a>, <a title=\"Java Management Extensions\" href=\"https:\/\/en.wikipedia.org\/wiki\/Java_Management_Extensions\">JMX<\/a>, <a title=\"Secure Shell\" href=\"https:\/\/en.wikipedia.org\/wiki\/Secure_Shell\">SSH<\/a>, <a title=\"Telnet\" href=\"https:\/\/en.wikipedia.org\/wiki\/Telnet\">Telnet<\/a> and using custom parameters. Zabbix supports a variety of near-real-time notification mechanisms, including <a class=\"mw-redirect\" title=\"Extensible Messaging and Presence Protocol\" href=\"https:\/\/en.wikipedia.org\/wiki\/Extensible_Messaging_and_Presence_Protocol\">XMPP<\/a>.<\/li>\n<\/ul>\n<p>In this blog, I will be installing Zabbix 3.0 on The latest version of Amazon Linux version 2016.09 EC2 Using MySQL database server and Additional Japanese Language Interface.<\/p>\n<p>Before we start, Please make sure you have Amazon linux ec2 running and connected to it using SSH protocol.<\/p>\n<p>Then, Let's update your system by using the command below:<\/p>\n<pre class=\"loom_code prettyprint prettyprinted\"><span class=\"pln\">$ sudo yum update<\/span><\/pre>\n<h4>Step:1 Install PHP 7 modules and git<\/h4>\n<pre><span class=\"pln\">$ sudo yum -y install php70 php70-bcmath php70-cli php70-common \u00a0php70-devel php70-gd php70-json php70-mbstring \u00a0php70-mcrypt php70-mysqlnd php70-opcache php70-pdo php70-process git\n<\/span><\/pre>\n<h4>Step:2 Clone Prepared Zabbix Packages<\/h4>\n<p>I already prepared the packages necessary only for the zabbix server to be installed on your EC2 server. Now clone it using the git command below:<\/p>\n<pre>$ git clone https:\/\/github.com\/Joeper214\/zabbix_rpms.git<\/pre>\n<h4>Step:3 \u00a0Install Zabbix Server, Database, Web Server, \u00a0PHP packages, Japanese Language Web Interface and Modules.<\/h4>\n<pre>$ cd zabbix_rpms<\/pre>\n<pre>$ sudo yum install .\/fping-2.4b2-16.amzn1.x86_64.rpm .\/iksemel-1.4-2.amzn1.x86_64.rpm .\/zabbix-agent-3.0.4-1.amzn1.x86_64.rpm .\/zabbix-web-japanese-3.0.4-1.amzn1.noarch.rpm .\/zabbix-web-mysql-3.0.4-1.amzn1.noarch.rpm .\/zabbix-server-mysql-3.0.4-1.amzn1.x86_64.rpm zabbix-sender-3.0.4-1.amzn1.x86_64.rpm \u00a0.\/zabbix-web-3.0.4-1.amzn1.noarch.rpm<\/pre>\n<h4>Step:4 Configure Zabbix Database.<\/h4>\n<p>Start the Database (MySQL) service<\/p>\n<pre>$ sudo chkconfig mysqld on<\/pre>\n<pre>$ sudo service mysqld start<\/pre>\n<p>Now create the Zabbix Database (<strong>zabbix<\/strong>) and database user (<strong>zabbix_user<\/strong>) and grant all privileges to the user on the Zabbix database.<\/p>\n<pre>$ mysql -uroot\nmysql&gt; CREATE USER zabbix;\nQuery OK, 0 rows affected (0.00 sec)\n\nmysql&gt; CREATE DATABASE zabbix;\nQuery OK, 1 row affected (0.00 sec)\n\nmysql&gt; GRANT ALL PRIVILEGES ON zabbix_user.* TO zabbix@localhost IDENTIFIED BY '{your_own_choice_of_password}';\nQuery OK, 0 rows affected (0.00 sec)\n\nmysql&gt; FLUSH PRIVILEGES;\nQuery OK, 0 rows affected (0.00 sec)\n\nmysql&gt; exit;<\/pre>\n<p>Now import the database Schema using this commands below,<\/p>\n<pre>$ cd \/usr\/share\/doc\/zabbix-server-mysql-3.0.4\/\n$ zcat create.sql.gz| mysql -uroot zabbix_user<\/pre>\n<h4>Step:4 Copy the Zabbix Server Configuration file<\/h4>\n<p>Copy the Zabbix Server\u2019s example config file (<strong>\/usr\/share\/doc\/zabbix-web-3.0.4\/httpd24-example.conf\/<\/strong>) to the apache (<strong>\/etc\/httpd\/conf.d\/zabbix.conf)<\/strong> location for zabbix<\/p>\n<pre>$ sudo cp \/usr\/share\/doc\/zabbix-web-3.0.4\/httpd24-example.conf \/etc\/httpd\/conf.d\/zabbix.conf<\/pre>\n<p>Then edit the Zabbix Server\u2019s config file (<strong>\/etc\/httpd\/conf.d\/zabbix.conf<\/strong>) and specify the database name for zabbix , database user name &amp; its password.<\/p>\n<pre>[root@zabbix ~]# vi \/etc\/zabbix\/zabbix_server.conf\n...................................\nDBHost=localhost\nDBName=zabbix\nDBUser=zabbix_user\nDBPassword=your_own_choice_of_password<\/pre>\n<p><strong>Configure PHP Setting<\/strong><\/p>\n<p>Set the below parameters in the PHP config file (\/etc\/php.ini )<\/p>\n<pre>$ sudo vi \/etc\/php.ini\n................................\nmax_execution_time = 600\nmax_input_time = 600\nmemory_limit = 256M\npost_max_size = 32M\nupload_max_filesize = 16M\ndate.timezone = Asia\/Tokyo\n...............................<\/pre>\n<p><span style=\"font-family: Lato, \u6e38\u30b4\u30b7\u30c3\u30af\u4f53, 'Yu Gothic', YuGothic, '\u30d2\u30e9\u30ae\u30ce\u89d2\u30b4\u30b7\u30c3\u30af Pro', 'Hiragino Kaku Gothic Pro', \u30e1\u30a4\u30ea\u30aa, Meiryo, Osaka, '\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af', 'MS PGothic', sans-serif; font-size: 1.3em; font-weight: bold;\">Start the Zabbix and Web Server Service and make sure it will run during reboot.<\/span><\/p>\n<pre>$ sudo service zabbix-server start \n$ sudo chkconfig zabbix-server on\n$ sudo service httpd start\n$ sudo chkconfig httpd on\n<\/pre>\n<h4><\/h4>\n<h5 id=\"installing_frontend\" class=\"sectionedit12\"><\/h5>\n<h5 id=\"installing_frontend\" class=\"sectionedit12\">Installing frontend<\/h5>\n<p>Please see: <a href=\"https:\/\/www.zabbix.com\/documentation\/3.2\/manual\/installation\/install#installing_frontend\" target=\"_blank\">Zabbix UI Installtion Guide<\/a><\/p>\n<p>After you follow the instructions shown in the Zabbix Documentation Page.<\/p>\n<p>Then you are good to go! Take time to explore and discover the awesomeness of zabbix monitoring tool.<\/p>\n<p>If you have some questions, Please feel free to comment below. Thank!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>According to Wikipedia: Zabbix is enterprise open source monitoring software for networks and applications, cr&#8230;<\/p>\n","protected":false},"author":1,"featured_media":8581,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"en_US","_original_post":"8557","footnotes":""},"categories":[95,110],"tags":[],"class_list":{"0":"post-8557","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-skyhopper","8":"category-zabbix","9":"en-US"},"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/8557","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/comments?post=8557"}],"version-history":[{"count":8,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/8557\/revisions"}],"predecessor-version":[{"id":8872,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/8557\/revisions\/8872"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media\/8581"}],"wp:attachment":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media?parent=8557"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/categories?post=8557"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/tags?post=8557"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}