{"id":778,"date":"2017-09-19T09:30:58","date_gmt":"2017-09-19T06:30:58","guid":{"rendered":"https:\/\/helia.ee\/koolitus\/?page_id=778"},"modified":"2019-10-27T00:08:48","modified_gmt":"2019-10-26T21:08:48","slug":"monitooring-zabbix","status":"publish","type":"page","link":"https:\/\/helia.ee\/koolitus\/?page_id=778","title":{"rendered":"Monitooring &#8211; Zabbix"},"content":{"rendered":"<div class=\"td-post-header\">\n<header class=\"td-post-title\">\n<h1 class=\"entry-title\">How To Install Zabbix 3 On Debian 8 and Ubuntu 16<\/h1>\n<div class=\"td-module-meta-info\"><\/div>\n<\/header>\n<\/div>\n<div class=\"td-post-sharing td-post-sharing-top td-with-like\">\n<div class=\"td-default-sharing\">\n<div class=\"td-social-but-text\"><\/div>\n<p><i class=\"td-icon-googleplus\"><\/i>\u00a0<i class=\"td-icon-pinterest\"><\/i><\/p>\n<\/div>\n<div class=\"td-classic-sharing\"><\/div>\n<\/div>\n<div class=\"td-post-content\">\n<div class=\"td-post-featured-image\"><a class=\"td-modal-image\" href=\"https:\/\/www.unixmen.com\/wp-content\/uploads\/2015\/07\/Zabbix.jpg\" data-caption=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"entry-thumb td-animation-stack-type0-1\" title=\"Zabbix\" src=\"https:\/\/www.unixmen.com\/wp-content\/uploads\/2015\/07\/Zabbix-696x431.jpg\" sizes=\"auto, (max-width: 696px) 100vw, 696px\" srcset=\"https:\/\/www.unixmen.com\/wp-content\/uploads\/2015\/07\/Zabbix-696x431.jpg 696w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2015\/07\/Zabbix-768x476.jpg 768w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2015\/07\/Zabbix-356x220.jpg 356w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2015\/07\/Zabbix-678x420.jpg 678w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2015\/07\/Zabbix.jpg 960w\" alt=\"\" width=\"696\" height=\"431\" \/><\/a><\/div>\n<p><strong>Zabbix<\/strong>\u00a0is an enterprise-class open source distributed monitoring solution that can be used to monitor and track performance and availability of network servers, devices and other IT resources. It supports distributed and WEB monitoring, auto-discovery, and more.<\/p>\n<p>I tested this how-to On Ubuntu 16.10, although it should work on other Ubuntu distributions\u00a0 or Debian derivatives. For the testing purpose, I will use the following two machines.<\/p>\n<p>Zabbix Server System:<\/p>\n<ul>\n<li><strong>Operating system\u00a0<\/strong>: Ubuntu 16.04 64bit edition LTS<\/li>\n<li><strong>Server IP Address<\/strong>\u00a0: 192.168.28.138\/24<\/li>\n<li><strong>Hostname<\/strong>\u00a0: ubuntu.unixmen.com<\/li>\n<\/ul>\n<p>Zabbix Client System:<\/p>\n<ul>\n<li><strong>Operating system<\/strong>\u00a0: Ubuntu 16.04 LTS<\/li>\n<li><strong>IP Address\u00a0<\/strong>: 192.168.28.137\/24<\/li>\n<li><strong>Hostname<\/strong>\u00a0: ubuntu2.unixmen.com<\/li>\n<\/ul>\n<p>First let us start from server side.<\/p>\n<p><strong>Prerequisites<\/strong><\/p>\n<p>Before installing Zabbix, we should have install and configure LAMP stack on server. To install and configure LAMP server On Ubuntu or Debian refer the following links.<\/p>\n<ul>\n<li><strong><a href=\"https:\/\/www.unixmen.com\/how-to-install-lamp-stack-on-ubuntu-16-04\/\" target=\"_blank\" rel=\"noopener noreferrer\">Install LAMP Stack in Ubuntu<\/a><\/strong><\/li>\n<\/ul>\n<h2>Install Zabbix On Ubuntu 16.04 server<\/h2>\n<p>After installing LAMP stack, let us add the Zabbix repository to our Ubuntu<\/p>\n<p>Zabbix is available in Ubuntu default repositories, however it might be bit outdated. So let us install most recent version from the official Zabbix repositories. At the time of writing this tutorial, the latest version was\u00a0<strong>Zabbix 3<\/strong>.<\/p>\n<ul>\n<li><strong><a href=\"http:\/\/repo.zabbix.com\/zabbix\/3.0\/ubuntu\/pool\/main\/z\/zabbix-release\/\" target=\"_blank\" rel=\"noopener noreferrer\">Latest Zabbix repository for Ubuntu<\/a><\/strong><\/li>\n<li><strong><a href=\"http:\/\/repo.zabbix.com\/zabbix\/3.0\/debian\/pool\/main\/z\/zabbix-release\/\" target=\"_blank\" rel=\"noopener noreferrer\">Latest Zabbix repository for Debian<\/a><\/strong><\/li>\n<\/ul>\n<p>Or you can download and add the repository as shown below.<\/p>\n<p><strong>For Debian Servers<\/strong><\/p>\n<p>wget http:\/\/repo.zabbix.com\/zabbix\/3.0\/debian\/pool\/main\/z\/zabbix-release\/zabbix-release_3.0-1+jessie_all.deb<\/p>\n<p><strong>For\u00a0 my\u00a0\u00a0 Ubuntu Servers :<\/strong><\/p>\n<pre>root@ubuntu:~# wget http:\/\/repo.zabbix.com\/zabbix\/3.0\/ubuntu\/pool\/main\/z\/zabbix-release\/zabbix-release_3.0-1+trusty_all.deb\r\n--2016-03-03 06:21:03--\u00a0 http:\/\/repo.zabbix.com\/zabbix\/3.0\/ubuntu\/pool\/main\/z\/zabbix-release\/zabbix-release_3.0-1+trusty_all.deb\r\nConnecting to 10.133.80.35:8080... connected.\r\nProxy request sent, awaiting response... 200 OK\r\nLength: 2694 (2.6K) [application\/x-debian-package]\r\nSaving to: \u2018zabbix-release_3.0-1+trusty_all.deb\u2019\r\nzabbix-release_3.0-1+trusty_all.deb\u00a0\u00a0\u00a0\u00a0 100%[============================================================================&gt;]\u00a0\u00a0 2.63K\u00a0 --.-KB\/s\u00a0\u00a0\u00a0 in 0s\r\n2016-03-03 06:21:03 (85.9 MB\/s) - \u2018zabbix-release_3.0-1+trusty_all.deb\u2019 saved [2694\/2694]\r\nroot@ubuntu:~#<\/pre>\n<pre>root@ubuntu:~# dpkg -i zabbix-release_3.0-1+trusty_all.deb\r\nSelecting previously unselected package zabbix-release.\r\n(Reading database ... 87004 files and directories currently installed.)\r\nPreparing to unpack zabbix-release_3.0-1+trusty_all.deb ...\r\nUnpacking zabbix-release (3.0-1+trusty) ...\r\nSetting up zabbix-release (3.0-1+trusty) ...\r\nroot@ubuntu:~#\r\n\r\n<\/pre>\n<p>Now update package lists and\u00a0 Zabbix server using commands:<\/p>\n<pre>sudo apt-get update<\/pre>\n<pre>sudo apt-get install zabbix-server-mysql zabbix-frontend-php\r\nThe following additional packages will be installed:\r\n\u00a0 fontconfig-config fonts-dejavu-core fping libaio1 libapache2-mod-php5 libcgi-fast-perl libcgi-pm-perl libdbd-mysql-perl libdbi-perl libencode-locale-perl\r\n\u00a0 libfcgi-perl libfontconfig1 libgd3 libhtml-parser-perl libhtml-tagset-perl libhtml-template-perl libhttp-date-perl libhttp-message-perl libiksemel3\r\n\u00a0 libio-html-perl libjbig0 libjpeg-turbo8 libjpeg8 libltdl7 liblwp-mediatypes-perl libmysqlclient18 libodbc1 libopenipmi0 libsensors4 libsnmp-base\r\n\u00a0 libsnmp30 libssh2-1 libterm-readkey-perl libtiff5 libtimedate-perl liburi-perl libvpx3 libxpm4 mysql-client mysql-client-5.6 mysql-client-core-5.6\r\n\u00a0 mysql-common mysql-server mysql-server-5.6 mysql-server-core-5.6 php5 php5-cli php5-common php5-gd php5-json php5-ldap php5-mysql php5-readline snmpd\r\n\u00a0 ttf-dejavu-core\r\nSuggested packages:\r\n\u00a0 php-pear libclone-perl libmldbm-perl libnet-daemon-perl libsql-statement-perl libgd-tools libdata-dump-perl libipc-sharedcache-perl libmyodbc\r\n\u00a0 odbc-postgresql tdsodbc unixodbc-bin lm-sensors snmp-mibs-downloader libwww-perl mailx tinyca php5-user-cache snmptrapd\r\nThe following NEW packages will be installed:\r\n\u00a0 fontconfig-config fonts-dejavu-core fping libaio1 libapache2-mod-php5 libcgi-fast-perl libcgi-pm-perl libdbd-mysql-perl libdbi-perl libencode-locale-perl\r\n\u00a0 libfcgi-perl libfontconfig1 libgd3 libhtml-parser-perl libhtml-tagset-perl libhtml-template-perl libhttp-date-perl libhttp-message-perl libiksemel3\r\n\u00a0 libio-html-perl libjbig0 libjpeg-turbo8 libjpeg8 libltdl7 liblwp-mediatypes-perl libmysqlclient18 libodbc1 libopenipmi0 libsensors4 libsnmp-base\r\n\u00a0 libsnmp30 libssh2-1 libterm-readkey-perl libtiff5 libtimedate-perl liburi-perl libvpx3 libxpm4 mysql-client mysql-client-5.6 mysql-client-core-5.6\r\n\u00a0 mysql-common mysql-server mysql-server-5.6 mysql-server-core-5.6 php5 php5-cli php5-common php5-gd php5-json php5-ldap php5-mysql php5-readline snmpd\r\n\u00a0 ttf-dejavu-core zabbix-frontend-php zabbix-server-mysql\r\n0 upgraded, 57 newly installed, 0 to remove and 4 not upgraded.\r\nNeed to get 34.5 MB of archives.\r\nAfter this operation, 226 MB of additional disk space will be used.\r\nDo you want to continue? [Y\/n]\r\n\r\n<\/pre>\n<p>During installation, you\u2019ll be asked to answer couple of questions regarding database configuration.<\/p>\n<p>Select\u00a0<strong>Yes<\/strong>\u00a0and press to start the installation.<\/p>\n<p>Insert\u00a0 the mysql root pasword :<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-45755 td-animation-stack-type0-1\" src=\"https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix.png\" sizes=\"auto, (max-width: 1141px) 100vw, 1141px\" srcset=\"https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix.png 1141w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix-768x356.png 768w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix-696x323.png 696w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix-1068x495.png 1068w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix-906x420.png 906w\" alt=\"zabbix\" width=\"1141\" height=\"529\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><strong>Login to\u00a0 mysql\u00a0\u00a0 and\u00a0\u00a0 create Zabbix database<\/strong><\/p>\n<div class=\"2qRosGEb\"><iframe loading=\"lazy\" id=\"sovrn_ad_unit_428377_async\" class=\"sovrn_ad_unit\" src=\"about:blank\" width=\"728\" height=\"90\" frameborder=\"0\" scrolling=\"no\" data-zid=\"428377\" data-mce-fragment=\"1\"><\/iframe><\/div>\n<pre>root@ubuntu:~# mysql -uroot -p\r\nEnter password:\r\nWelcome to the MySQL monitor.\u00a0 Commands end with ; or \\g.\r\nYour MySQL connection id is 2\r\nServer version: 5.6.28-1ubuntu2 (Ubuntu)\r\nCopyright (c) 2000, 2015, Oracle and\/or its affiliates. All rights reserved.\r\nOracle is a registered trademark of Oracle Corporation and\/or its\r\naffiliates. Other names may be trademarks of their respective\r\nowners.\r\nType 'help;' or '\\h' for help. Type '\\c' to clear the current input statement.\r\nmysql&gt;<\/pre>\n<p><strong>Create Zabbix database<\/strong><\/p>\n<pre>mysql -uroot -p\r\nmysql&gt; create database zabbix character set utf8 collate utf8_bin;\r\nmysql&gt; grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix';\r\nmysql&gt; quit;\r\n\u00a0cd \/usr\/share\/doc\/zabbix-server-mysql\r\n\u00a0zcat create.sql.gz | mysql -uzabbix -p zabbix<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-45758 td-animation-stack-type0-1\" src=\"https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix-database.png\" sizes=\"auto, (max-width: 881px) 100vw, 881px\" srcset=\"https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix-database.png 881w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix-database-768x366.png 768w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix-database-696x332.png 696w\" alt=\"zabbix-database\" width=\"881\" height=\"420\" \/><\/p>\n<p><strong>Configure\u00a0 Zabbix\u00a0 server configuration<\/strong><\/p>\n<pre>\u00a0vi \/etc\/zabbix\/zabbix_server.conf\r\n\u00a0\u00a0 \u00a0\r\nDBHost=localhost\r\nDBName=zabbix\r\nDBUser=zabbix\r\nDBPassword=zabbix<\/pre>\n<p><strong>Start\u00a0 Zabbix Server<\/strong><\/p>\n<p><code class=\"bash plain\">service zabbix-server restart<\/code><\/p>\n<p>You can chaneg\u00a0\u00a0 Timzone\u00a0 from this\u00a0 file \/etc\/zabbix\/apache.conf<\/p>\n<pre>vi \/etc\/zabbix\/apache.conf<\/pre>\n<p>find<\/p>\n<pre>\u00a0#php_value date.timezone Europe\/Riga<\/pre>\n<p>uncoment and\u00a0 change it\u00a0 to your\u00a0 need like<\/p>\n<pre>\u00a0php_value date.timezone Europe\/Amsterdam<\/pre>\n<p>save and\u00a0 exit<\/p>\n<p>It is mandatory, to adjust the correct time zone for you. Save and close the file.<\/p>\n<p>Edit\u00a0<strong>php.ini<\/strong>\u00a0file,<\/p>\n<pre>sudo nano \/etc\/php5\/apache2\/php.ini<\/pre>\n<p>Find the following line and modify it\u00a0from:<\/p>\n<div>\n<pre class=\"alt2\">;always_populate_raw_post_data = -1<\/pre>\n<\/div>\n<p>to (just take the quotes off):<\/p>\n<div>\n<pre class=\"alt2\">always_populate_raw_post_data = -1<\/pre>\n<\/div>\n<p>Save and close the file.<\/p>\n<p>Restart apache2 service to apply the changes and check the\u00a0 status .<\/p>\n<pre>sudo systemctl restart apache2\r\nroot@ubuntu:~# systemctl\u00a0 restart\u00a0\u00a0 apache2\r\nroot@ubuntu:~# systemctl status\u00a0 apache2\r\n\u25cf apache2.service - LSB: Apache2 web server\r\n\u00a0\u00a0 Loaded: loaded (\/etc\/init.d\/apache2; bad; vendor preset: enabled)\r\n\u00a0\u00a0 Active: active (running) since Thu 2016-03-03 07:20:01 PST; 2s ago\r\n\u00a0\u00a0\u00a0\u00a0 Docs: man:systemd-sysv-generator(8)\r\n\u00a0 Process: 10118 ExecStop=\/etc\/init.d\/apache2 stop (code=exited, status=0\/SUCCESS)\r\n\u00a0 Process: 10144 ExecStart=\/etc\/init.d\/apache2 start (code=exited, status=0\/SUCCESS)\r\n\u00a0\u00a0\u00a0 Tasks: 6 (limit: 512)\r\n\u00a0\u00a0 CGroup: \/system.slice\/apache2.service\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u251c\u250010162 \/usr\/sbin\/apache2 -k start\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u251c\u250010165 \/usr\/sbin\/apache2 -k start\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u251c\u250010166 \/usr\/sbin\/apache2 -k start\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u251c\u250010167 \/usr\/sbin\/apache2 -k start\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u251c\u250010168 \/usr\/sbin\/apache2 -k start\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u2514\u250010169 \/usr\/sbin\/apache2 -k start\r\n\r\nMar 03 07:20:00 ubuntu.unixmen.com systemd[1]: Stopped LSB: Apache2 web server.\r\nMar 03 07:20:00 ubuntu.unixmen.com systemd[1]: Starting LSB: Apache2 web server...\r\nMar 03 07:20:00 ubuntu.unixmen.com apache2[10144]:\u00a0 * Starting web server apache2\r\nMar 03 07:20:00 ubuntu.unixmen.com apache2[10144]: AH00557: apache2: apr_sockaddr_info_get() failed for ubuntu.unixmen.com\r\nMar 03 07:20:00 ubuntu.unixmen.com apache2[10144]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1.\r\nMar 03 07:20:01 ubuntu.unixmen.com apache2[10144]:\u00a0 *\r\nMar 03 07:20:01 ubuntu.unixmen.com systemd[1]: Started LSB: Apache2 web server.\r\nlines 1-22\/22 (END)\r\n\r\n<\/pre>\n<p><strong>Access Zabbix Web Console<\/strong><\/p>\n<p>Open web browser and access the zabbix web console with URL:\u00a0<strong>http:\/\/ip-address\/zabbix<\/strong>\u00a0or\u00a0<strong>http:\/\/domain-name\/zabbix<\/strong>.<\/p>\n<p>Click Next to continue:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-45764 td-animation-stack-type0-1\" src=\"https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix3.png\" sizes=\"auto, (max-width: 870px) 100vw, 870px\" srcset=\"https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix3.png 870w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix3-768x465.png 768w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix3-696x422.png 696w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix3-693x420.png 693w\" alt=\"zabbix3\" width=\"870\" height=\"527\" \/><\/p>\n<p>It will check all prerequisites. If everything OK, click\u00a0 Next to continue.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-45765 td-animation-stack-type0-1\" src=\"https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix3a.png\" sizes=\"auto, (max-width: 876px) 100vw, 876px\" srcset=\"https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix3a.png 876w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix3a-768x469.png 768w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix3a-696x425.png 696w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix3a-688x420.png 688w\" alt=\"zabbix3a\" width=\"876\" height=\"535\" \/><\/p>\n<p>Next enter the mysql administrative password and click\u00a0<strong>Test connection<\/strong>. The database called\u00a0<strong>\u2018zabbix\u2019<\/strong>\u00a0will be created automatically during the installation. If it says Ok, click Next to continue.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-45766 td-animation-stack-type0-1\" src=\"https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix3b.png\" sizes=\"auto, (max-width: 873px) 100vw, 873px\" srcset=\"https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix3b.png 873w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix3b-768x462.png 768w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix3b-696x419.png 696w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix3b-698x420.png 698w\" alt=\"zabbix3b\" width=\"873\" height=\"525\" \/><\/p>\n<p>Click next:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-45767 td-animation-stack-type0-1\" src=\"https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix3c.png\" sizes=\"auto, (max-width: 868px) 100vw, 868px\" srcset=\"https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix3c.png 868w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix3c-768x465.png 768w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix3c-696x421.png 696w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix3c-694x420.png 694w\" alt=\"zabbix3c\" width=\"868\" height=\"525\" \/><\/p>\n<p>Check configuration parameters once again and click Next to continue if all correct. If you want to change anything, just hit Previous button and do the changes.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-45768 td-animation-stack-type0-1\" src=\"https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix3d.png\" sizes=\"auto, (max-width: 866px) 100vw, 866px\" srcset=\"https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix3d.png 866w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix3d-768x463.png 768w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix3d-696x420.png 696w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix3d-697x420.png 697w\" alt=\"zabbix3d\" width=\"866\" height=\"522\" \/><\/p>\n<p>Click Finish to complete the installation.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-45769 td-animation-stack-type0-1\" src=\"https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix3e.png\" sizes=\"auto, (max-width: 873px) 100vw, 873px\" srcset=\"https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix3e.png 873w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix3e-768x460.png 768w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix3e-696x417.png 696w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix3e-701x420.png 701w\" alt=\"zabbix3e\" width=\"873\" height=\"523\" \/><\/p>\n<p>Now you\u2019ll be asked to enter the username and password. The default username\/password is A<strong>dmin\/zabbix<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-45770 td-animation-stack-type0-1\" src=\"https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix3f.png\" sizes=\"auto, (max-width: 920px) 100vw, 920px\" srcset=\"https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix3f.png 920w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix3f-768x529.png 768w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix3f-100x70.png 100w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix3f-218x150.png 218w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix3f-696x480.png 696w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix3f-609x420.png 609w\" alt=\"zabbix3f\" width=\"920\" height=\"634\" \/><\/p>\n<p>Congratulations! You\u2019ve completed the zabbix server and front-end installation successfully.<\/p>\n<p>Here it is how my zabbix server Dashboard looks like.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-45772 td-animation-stack-type0-1\" src=\"https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix-dashbooard.png\" sizes=\"auto, (max-width: 1308px) 100vw, 1308px\" srcset=\"https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix-dashbooard.png 1308w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix-dashbooard-768x553.png 768w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix-dashbooard-696x501.png 696w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix-dashbooard-1068x769.png 1068w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix-dashbooard-583x420.png 583w\" alt=\"zabbix-dashbooard\" width=\"1308\" height=\"942\" \/><\/p>\n<h4><strong>Install zabbix-agent On zabbix server<br \/>\n<\/strong><\/h4>\n<p><strong>zabbix agent<\/strong>\u00a0is used to send the reports to the server. Let us install this package on our server with following command:<\/p>\n<pre>sudo apt-get install zabbix-agent<\/pre>\n<p>At the server side you don\u2019t have to configure agent, default values will work just fine.<\/p>\n<p>Now go to the Dashboard and navigate to\u00a0<strong>Configuration<\/strong>\u00a0tab on the tab menu bar. Click on the\u00a0<strong>Hosts<\/strong>\u00a0tab. You\u2019ll see that the zabbix server has been listed there.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-45775 td-animation-stack-type0-1\" src=\"https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/interface-a.png\" sizes=\"auto, (max-width: 1837px) 100vw, 1837px\" srcset=\"https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/interface-a.png 1837w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/interface-a-768x174.png 768w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/interface-a-696x158.png 696w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/interface-a-1068x242.png 1068w\" alt=\"interface-a\" width=\"1837\" height=\"417\" \/><\/p>\n<p>Initially, the zabbix server will not monitor itself. You have to enable it manually to monitor itself.<\/p>\n<p>Wait for few minutes and you\u2019ll see the zabbix server status will be changed to\u00a0<strong>Enabled<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-45774 td-animation-stack-type0-1\" src=\"https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/interface.png\" sizes=\"auto, (max-width: 1907px) 100vw, 1907px\" srcset=\"https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/interface.png 1907w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/interface-768x263.png 768w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/interface-696x239.png 696w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/interface-1068x366.png 1068w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/interface-1225x420.png 1225w\" alt=\"interface\" width=\"1907\" height=\"654\" \/><\/p>\n<h2><strong>Zabbix Client Side Configuration<\/strong><\/h2>\n<p>Install zabbix-agent package in your client system:<\/p>\n<pre>sudo apt-get install zabbix-agent<\/pre>\n<p>Next edit file\u00a0<strong>\/etc\/zabbix\/zabbix_agentd.conf<\/strong>,<\/p>\n<pre>sudo vi \/etc\/zabbix\/zabbix_agentd.conf<\/pre>\n<p>Add the server ip address and client hostname.<\/p>\n<pre>[...]\r\nServer=192.168.28.138\r\n[...]\r\nHostname=ubuntu2.unixmen.com\r\n[...]<\/pre>\n<p>Where,<\/p>\n<ul>\n<li><strong>192.168.28.138<\/strong>\u00a0Ubuntu 16.04 server\u2019s IP address (Zabbix server).<\/li>\n<li><strong>Ubuntu2.unixmen.com<\/strong>\u00a0\u2013 Ubuntu 16.04 hostname (Zabbix client hostname).<\/li>\n<\/ul>\n<p>Now restart zabbix-agent service with command:<\/p>\n<pre>sudo service zabbix-agent restart<\/pre>\n<h4><strong>Add Monitoring host \u2013 Method 1<\/strong><\/h4>\n<p>Next go to the zabbix server\u2019s Dashboard.<\/p>\n<p>Navigate to\u00a0<strong>Configuration -&gt; Hosts<\/strong>\u00a0and click on your Zabbix server name.<\/p>\n<p>Click the\u00a0<strong>Clone<\/strong>\u00a0button at the bottom.\u00a0Refer the following screenshot.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-45783 td-animation-stack-type0-1\" src=\"https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix-add-a.png\" sizes=\"auto, (max-width: 1491px) 100vw, 1491px\" srcset=\"https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix-add-a.png 1491w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix-add-a-768x513.png 768w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix-add-a-696x464.png 696w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix-add-a-1068x713.png 1068w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix-add-a-629x420.png 629w\" alt=\"zabbix-add-a\" width=\"1491\" height=\"995\" \/><\/p>\n<p>Enter the client hostname, select the group type, and enter IP address etc. Finally click\u00a0<strong>Add<\/strong>. Don\u2019t forget to check the box that says:\u00a0<strong>Enabled<\/strong>\u00a0above the Add button.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-45785 td-animation-stack-type0-1\" src=\"https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/interface-b.png\" sizes=\"auto, (max-width: 1364px) 100vw, 1364px\" srcset=\"https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/interface-b.png 1364w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/interface-b-768x583.png 768w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/interface-b-80x60.png 80w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/interface-b-696x528.png 696w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/interface-b-1068x810.png 1068w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/interface-b-554x420.png 554w\" alt=\"interface-b\" width=\"1364\" height=\"1035\" \/><\/p>\n<p>Now you\u2019ll see that the client is added to monitoring list.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-45786 td-animation-stack-type0-1\" src=\"https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix-client.png\" sizes=\"auto, (max-width: 1661px) 100vw, 1661px\" srcset=\"https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix-client.png 1661w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix-client-768x289.png 768w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix-client-696x262.png 696w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix-client-1068x402.png 1068w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/zabbix-client-1116x420.png 1116w\" alt=\"zabbix-client\" width=\"1661\" height=\"625\" \/><\/p>\n<h4><strong>Add Monitoring Host \u2013 Method 2<\/strong><\/h4>\n<p>From the Dashboard, go to\u00a0<strong>Configuration -&gt; Hosts<\/strong>. Click on\u00a0<strong>Create host<\/strong>\u00a0on the right side.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-45791 td-animation-stack-type0-1\" src=\"https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/create_host.png\" sizes=\"auto, (max-width: 1476px) 100vw, 1476px\" srcset=\"https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/create_host.png 1476w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/create_host-768x353.png 768w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/create_host-696x320.png 696w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/create_host-1068x491.png 1068w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/create_host-913x420.png 913w\" alt=\"create_host\" width=\"1476\" height=\"679\" \/><\/p>\n<p>Enter hostname, select Groups and enter IP address as shown below and click Add.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-45785 td-animation-stack-type0-1\" src=\"https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/interface-b.png\" sizes=\"auto, (max-width: 1364px) 100vw, 1364px\" srcset=\"https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/interface-b.png 1364w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/interface-b-768x583.png 768w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/interface-b-80x60.png 80w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/interface-b-696x528.png 696w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/interface-b-1068x810.png 1068w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/interface-b-554x420.png 554w\" alt=\"interface-b\" width=\"1364\" height=\"1035\" \/><\/p>\n<p>Next go to\u00a0<strong>Templates<\/strong>\u00a0section and click\u00a0<strong>Select<\/strong>\u00a0button to choose template depending upon the type of your Host.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-45795 td-animation-stack-type0-1\" src=\"https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/select.png\" sizes=\"auto, (max-width: 944px) 100vw, 944px\" srcset=\"https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/select.png 944w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/select-768x457.png 768w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/select-696x414.png 696w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/select-705x420.png 705w\" alt=\"select\" width=\"944\" height=\"562\" \/><\/p>\n<p>Hence my Zabbix client is Ubuntu desktop, So I have selected\u00a0<strong>Template OS Linux<\/strong>. Then click\u00a0<strong>Select<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-45796 td-animation-stack-type0-1\" src=\"https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/select2.png\" sizes=\"auto, (max-width: 736px) 100vw, 736px\" srcset=\"https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/select2.png 736w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/select2-696x631.png 696w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/select2-463x420.png 463w\" alt=\"select2\" width=\"736\" height=\"667\" \/><\/p>\n<p>After selecting the templates of your choice, click\u00a0<strong>Add<\/strong>\u00a0button followed by\u00a0<strong>Update<\/strong>\u00a0button.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-45798 td-animation-stack-type0-1\" src=\"https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/add3.png\" sizes=\"auto, (max-width: 953px) 100vw, 953px\" srcset=\"https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/add3.png 953w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/add3-768x338.png 768w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/add3-696x306.png 696w\" alt=\"add3\" width=\"953\" height=\"419\" \/><\/p>\n<p>Now the client will be added in the Hosts list.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-45799 td-animation-stack-type0-1\" src=\"https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/Final.png\" sizes=\"auto, (max-width: 1690px) 100vw, 1690px\" srcset=\"https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/Final.png 1690w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/Final-768x304.png 768w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/Final-696x276.png 696w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/Final-1068x423.png 1068w, https:\/\/www.unixmen.com\/wp-content\/uploads\/2016\/03\/Final-1059x420.png 1059w\" alt=\"Final\" width=\"1690\" height=\"670\" \/><\/p>\n<p>That\u2019s it. Happy monitoring!!<\/p>\n<p><strong>Links:<\/strong><\/p>\n<ul>\n<li><strong><a href=\"http:\/\/www.zabbix.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">Zabbix Home page<\/a><\/strong><\/li>\n<\/ul>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>How To Install Zabbix 3 On Debian 8 and Ubuntu 16 \u00a0 Zabbix\u00a0is an enterprise-class open source distributed monitoring solution that can be used to monitor and track performance and availability of network servers, devices and other IT resources. It supports distributed and WEB monitoring, auto-discovery, and more. I tested this how-to On Ubuntu 16.10, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":1475,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"class_list":["post-778","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/pages\/778","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=778"}],"version-history":[{"count":7,"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/pages\/778\/revisions"}],"predecessor-version":[{"id":1477,"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/pages\/778\/revisions\/1477"}],"up":[{"embeddable":true,"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/pages\/1475"}],"wp:attachment":[{"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=778"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}