Howto install Zabbix on Ubuntu 12 or Debian

Howto install Zabbix on Ubuntu 12 or Debian

 

 

 

 

1. Install Zabbix, Zabbix agent and Zabbix web

root@ubuntu:~# apt-get install zabbix-server-mysql zabbix-agent zabbix-frontend-php
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following extra packages will be installed:
apache2 apache2-mpm-prefork apache2-utils apache2.2-bin apache2.2-common dbconfig-common fontconfig-config fping javascript-common libapache2-mod-php5 libapr1 libaprutil1
libaprutil1-dbd-sqlite3 libaprutil1-ldap libcap2 libfontconfig1 libgd2-xpm libiksemel3 libjpeg-turbo8 libjpeg8 libjs-prototype libjs-scriptaculous libopenipmi0 libssh2-1 libt1-5 libxpm4 php5
php5-cli php5-common php5-gd php5-mysql ssl-cert ttf-dejavu-core wwwconfig-common
Suggested packages:
www-browser apache2-doc apache2-suexec apache2-suexec-custom php-pear libgd-tools php5-suhosin openssl-blacklist postgresql-client
The following NEW packages will be installed:
apache2 apache2-mpm-prefork apache2-utils apache2.2-bin apache2.2-common dbconfig-common fontconfig-config fping javascript-common libapache2-mod-php5 libapr1 libaprutil1
libaprutil1-dbd-sqlite3 libaprutil1-ldap libcap2 libfontconfig1 libgd2-xpm libiksemel3 libjpeg-turbo8 libjpeg8 libjs-prototype libjs-scriptaculous libopenipmi0 libssh2-1 libt1-5 libxpm4 php5
php5-cli php5-common php5-gd php5-mysql ssl-cert ttf-dejavu-core wwwconfig-common zabbix-agent zabbix-frontend-php zabbix-server-mysql
0 upgraded, 37 newly installed, 0 to remove and 48 not upgraded.
Need to get 14.5 MB of archives.
After this operation, 44.7 MB of additional disk space will be used.
Do you want to continue [Y/n]?yGet:1 http://us.archive.ubuntu.com/ubuntu/ precise/main libcap2 i386 1:2.22-1ubuntu3 [12.4 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ precise/main ttf-dejavu-core all 2.33-2ubuntu1 [1,552 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main fontconfig-config all 2.8.0-3ubuntu9.1 [44.4 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libfontconfig1 i386 2.8.0-3ubuntu9.1 [125 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libjpeg-turbo8 i386 1.1.90+svn733-0ubuntu4.1 [118 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu/ precise/main libjpeg8 i386 8c-2ubuntu7 [2,112 B]
Get:7 http://us.archive.ubuntu.com/ubuntu/ precise/main libxpm4 i386 1:3.5.9-4 [37.4 kB]
Get:8 http://us.archive.ubuntu.com/ubuntu/ precise/main libgd2-xpm i386 2.0.36~rc1~dfsg-6ubuntu2 [201 kB]
Get:9 http://us.archive.ubuntu.com/ubuntu/ precise/universe libiksemel3 i386 1.2-4build1 [27.4 kB]
Get:10 http://us.archive.ubuntu.com/ubuntu/ precise/main libopenipmi0 i386 2.0.18-0ubuntu3 [496 kB]
Get:11 http://us.archive.ubuntu.com/ubuntu/ precise/universe libssh2-1 i386 1.2.8-2 [74.0 kB]
Get:12 http://us.archive.ubuntu.com/ubuntu/ precise/universe fping i386 2.4b2-to-ipv6-16.1 [30.9 kB]
Get:13 http://us.archive.ubuntu.com/ubuntu/ precise/main dbconfig-common all 1.8.47 [458 kB]
Get:14 http://us.archive.ubuntu.com/ubuntu/ precise/universe zabbix-server-mysql i386 1:1.8.11-1 [614 kB]
Get:15 http://us.archive.ubuntu.com/ubuntu/ precise/main libapr1 i386 1.4.6-1 [91.3 kB]
Get:16 http://us.archive.ubuntu.com/ubuntu/ precise/main libaprutil1 i386 1.3.12+dfsg-3 [75.4 kB]
Get:17 http://us.archive.ubuntu.com/ubuntu/ precise/main libaprutil1-dbd-sqlite3 i386 1.3.12+dfsg-3 [10.2 kB]
Get:18 http://us.archive.ubuntu.com/ubuntu/ precise/main libaprutil1-ldap i386 1.3.12+dfsg-3 [7,962 B]
Get:19 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main apache2.2-bin i386 2.2.22-1ubuntu1.2 [1,326 kB]
Get:20 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main apache2-utils i386 2.2.22-1ubuntu1.2 [91.0 kB]
Get:21 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main apache2.2-common i386 2.2.22-1ubuntu1.2 [227 kB]
Get:22 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main apache2-mpm-prefork i386 2.2.22-1ubuntu1.2 [2,416 B]
Get:23 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main apache2 i386 2.2.22-1ubuntu1.2 [1,496 B]
Get:24 http://us.archive.ubuntu.com/ubuntu/ precise/universe wwwconfig-common all 0.2.2 [18.0 kB]
Get:25 http://us.archive.ubuntu.com/ubuntu/ precise/universe javascript-common all 8 [4,208 B]
Get:26 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main php5-common i386 5.3.10-1ubuntu3.4 [162 kB]
Get:27 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libapache2-mod-php5 i386 5.3.10-1ubuntu3.4 [3,108 kB]
Get:28 http://us.archive.ubuntu.com/ubuntu/ precise/universe libjs-prototype all 1.7.0-2 [40.9 kB]
Get:29 http://us.archive.ubuntu.com/ubuntu/ precise/universe libjs-scriptaculous all 1.9.0-2 [107 kB]
Get:30 http://us.archive.ubuntu.com/ubuntu/ precise/main libt1-5 i386 5.1.2-3.4ubuntu1 [148 kB]
Get:31 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main php5 all 5.3.10-1ubuntu3.4 [1,074 B]
Get:32 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main php5-cli i386 5.3.10-1ubuntu3.4 [3,085 kB]
Get:33 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main php5-gd i386 5.3.10-1ubuntu3.4 [37.5 kB]
Get:34 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main php5-mysql i386 5.3.10-1ubuntu3.4 [73.6 kB]
Get:35 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main ssl-cert all 1.0.28ubuntu0.1 [12.3 kB]
Get:36 http://us.archive.ubuntu.com/ubuntu/ precise/universe zabbix-agent i386 1:1.8.11-1 [223 kB]
Get:37 http://us.archive.ubuntu.com/ubuntu/ precise/universe zabbix-frontend-php all 1:1.8.11-1 [1,885 kB]
Fetched 14.5 MB in 3min 3s (79.0 kB/s)
Extracting templates from packages: 100%
Preconfiguring packages …
Selecting previously unselected package libcap2.
(Reading database … 30606 files and directories currently installed.)
Unpacking libcap2 (from …/libcap2_1%3a2.22-1ubuntu3_i386.deb) …
Selecting previously unselected package ttf-dejavu-core.
Unpacking ttf-dejavu-core (from …/ttf-dejavu-core_2.33-2ubuntu1_all.deb) …
Selecting previously unselected package fontconfig-config.
Unpacking fontconfig-config (from …/fontconfig-config_2.8.0-3ubuntu9.1_all.deb) …
Selecting previously unselected package libfontconfig1.
Unpacking libfontconfig1 (from …/libfontconfig1_2.8.0-3ubuntu9.1_i386.deb) …
Selecting previously unselected package libjpeg-turbo8.
Unpacking libjpeg-turbo8 (from …/libjpeg-turbo8_1.1.90+svn733-0ubuntu4.1_i386.deb) …
Selecting previously unselected package libjpeg8.
Unpacking libjpeg8 (from …/libjpeg8_8c-2ubuntu7_i386.deb) …
Selecting previously unselected package libxpm4.
Unpacking libxpm4 (from …/libxpm4_1%3a3.5.9-4_i386.deb) …
Selecting previously unselected package libgd2-xpm.
Unpacking libgd2-xpm (from …/libgd2-xpm_2.0.36~rc1~dfsg-6ubuntu2_i386.deb) …
Selecting previously unselected package libiksemel3.
Unpacking libiksemel3 (from …/libiksemel3_1.2-4build1_i386.deb) …
Selecting previously unselected package libopenipmi0.
Unpacking libopenipmi0 (from …/libopenipmi0_2.0.18-0ubuntu3_i386.deb) …
Selecting previously unselected package libssh2-1.
Unpacking libssh2-1 (from …/libssh2-1_1.2.8-2_i386.deb) …
Selecting previously unselected package fping.
Unpacking fping (from …/fping_2.4b2-to-ipv6-16.1_i386.deb) …
Selecting previously unselected package dbconfig-common.
Unpacking dbconfig-common (from …/dbconfig-common_1.8.47_all.deb) …
Selecting previously unselected package zabbix-server-mysql.
Unpacking zabbix-server-mysql (from …/zabbix-server-mysql_1%3a1.8.11-1_i386.deb) …
Selecting previously unselected package libapr1.
Unpacking libapr1 (from …/libapr1_1.4.6-1_i386.deb) …
Selecting previously unselected package libaprutil1.
Unpacking libaprutil1 (from …/libaprutil1_1.3.12+dfsg-3_i386.deb) …
Selecting previously unselected package libaprutil1-dbd-sqlite3.
Unpacking libaprutil1-dbd-sqlite3 (from …/libaprutil1-dbd-sqlite3_1.3.12+dfsg-3_i386.deb) …
Selecting previously unselected package libaprutil1-ldap.
Unpacking libaprutil1-ldap (from …/libaprutil1-ldap_1.3.12+dfsg-3_i386.deb) …
Selecting previously unselected package apache2.2-bin.
Unpacking apache2.2-bin (from …/apache2.2-bin_2.2.22-1ubuntu1.2_i386.deb) …
Selecting previously unselected package apache2-utils.
Unpacking apache2-utils (from …/apache2-utils_2.2.22-1ubuntu1.2_i386.deb) …
Selecting previously unselected package apache2.2-common.
Unpacking apache2.2-common (from …/apache2.2-common_2.2.22-1ubuntu1.2_i386.deb) …
Selecting previously unselected package apache2-mpm-prefork.
Unpacking apache2-mpm-prefork (from …/apache2-mpm-prefork_2.2.22-1ubuntu1.2_i386.deb) …
Selecting previously unselected package apache2.
Unpacking apache2 (from …/apache2_2.2.22-1ubuntu1.2_i386.deb) …
Selecting previously unselected package wwwconfig-common.
Unpacking wwwconfig-common (from …/wwwconfig-common_0.2.2_all.deb) …
Selecting previously unselected package javascript-common.
Unpacking javascript-common (from …/javascript-common_8_all.deb) …
Selecting previously unselected package php5-common.
Unpacking php5-common (from …/php5-common_5.3.10-1ubuntu3.4_i386.deb) …
Selecting previously unselected package libapache2-mod-php5.
Unpacking libapache2-mod-php5 (from …/libapache2-mod-php5_5.3.10-1ubuntu3.4_i386.deb) …
Selecting previously unselected package libjs-prototype.
Unpacking libjs-prototype (from …/libjs-prototype_1.7.0-2_all.deb) …
Selecting previously unselected package libjs-scriptaculous.
Unpacking libjs-scriptaculous (from …/libjs-scriptaculous_1.9.0-2_all.deb) …
Selecting previously unselected package libt1-5.
Unpacking libt1-5 (from …/libt1-5_5.1.2-3.4ubuntu1_i386.deb) …
Selecting previously unselected package php5.
Unpacking php5 (from …/php5_5.3.10-1ubuntu3.4_all.deb) …
Selecting previously unselected package php5-cli.
Unpacking php5-cli (from …/php5-cli_5.3.10-1ubuntu3.4_i386.deb) …
Selecting previously unselected package php5-gd.
Unpacking php5-gd (from …/php5-gd_5.3.10-1ubuntu3.4_i386.deb) …
Selecting previously unselected package php5-mysql.
Unpacking php5-mysql (from …/php5-mysql_5.3.10-1ubuntu3.4_i386.deb) …
Selecting previously unselected package ssl-cert.
Unpacking ssl-cert (from …/ssl-cert_1.0.28ubuntu0.1_all.deb) …
Selecting previously unselected package zabbix-agent.
Unpacking zabbix-agent (from …/zabbix-agent_1%3a1.8.11-1_i386.deb) …
Selecting previously unselected package zabbix-frontend-php.
Unpacking zabbix-frontend-php (from …/zabbix-frontend-php_1%3a1.8.11-1_all.deb) …
Processing triggers for man-db …
Processing triggers for ureadahead …
Processing triggers for ufw …
Setting up libcap2 (1:2.22-1ubuntu3) …
Setting up ttf-dejavu-core (2.33-2ubuntu1) …
Setting up fontconfig-config (2.8.0-3ubuntu9.1) …
Setting up libfontconfig1 (2.8.0-3ubuntu9.1) …
Setting up libjpeg-turbo8 (1.1.90+svn733-0ubuntu4.1) …
Setting up libjpeg8 (8c-2ubuntu7) …
Setting up libxpm4 (1:3.5.9-4) …
Setting up libgd2-xpm (2.0.36~rc1~dfsg-6ubuntu2) …
Setting up libiksemel3 (1.2-4build1) …
Setting up libopenipmi0 (2.0.18-0ubuntu3) …
Setting up libssh2-1 (1.2.8-2) …
Setting up fping (2.4b2-to-ipv6-16.1) …
Setting up dbconfig-common (1.8.47) …Creating config file /etc/dbconfig-common/config with new version
Setting up zabbix-server-mysql (1:1.8.11-1) …
dbconfig-common: writing config to /etc/dbconfig-common/zabbix-server-mysql.confCreating config file /etc/dbconfig-common/zabbix-server-mysql.conf with new versionCreating config file /etc/zabbix/zabbix_server.conf with new version
chown: invalid user: `zabbix’
granting access to database zabbix for zabbix@localhost: success.
verifying access for zabbix@localhost: success.
creating database zabbix: success.
verifying database zabbix exists: success.
populating database via sql… done.
dbconfig-common: flushing administrative password
* Starting Zabbix server zabbix_server [ OK ]
Setting up libapr1 (1.4.6-1) …
Setting up libaprutil1 (1.3.12+dfsg-3) …
Setting up libaprutil1-dbd-sqlite3 (1.3.12+dfsg-3) …
Setting up libaprutil1-ldap (1.3.12+dfsg-3) …
Setting up apache2.2-bin (2.2.22-1ubuntu1.2) …
Setting up apache2-utils (2.2.22-1ubuntu1.2) …
Setting up apache2.2-common (2.2.22-1ubuntu1.2) …
Enabling site default.
Enabling module alias.
Enabling module autoindex.
Enabling module dir.
Enabling module env.
Enabling module mime.
Enabling module negotiation.
Enabling module setenvif.
Enabling module status.
Enabling module auth_basic.
Enabling module deflate.
Enabling module authz_default.
Enabling module authz_user.
Enabling module authz_groupfile.
Enabling module authn_file.
Enabling module authz_host.
Enabling module reqtimeout.
Setting up apache2-mpm-prefork (2.2.22-1ubuntu1.2) …
* Starting web server apache2 apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName
[ OK ]
Setting up apache2 (2.2.22-1ubuntu1.2) …
Setting up wwwconfig-common (0.2.2) …
Setting up javascript-common (8) …
Setting up php5-common (5.3.10-1ubuntu3.4) …
Setting up libapache2-mod-php5 (5.3.10-1ubuntu3.4) …Creating config file /etc/php5/apache2/php.ini with new version
* Restarting web server apache2 apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName
… waiting apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName
[ OK ]
Setting up libjs-prototype (1.7.0-2) …
Setting up libjs-scriptaculous (1.9.0-2) …
Setting up libt1-5 (5.1.2-3.4ubuntu1) …
Setting up php5 (5.3.10-1ubuntu3.4) …
Setting up php5-cli (5.3.10-1ubuntu3.4) …Creating config file /etc/php5/cli/php.ini with new version
update-alternatives: using /usr/bin/php5 to provide /usr/bin/php (php) in auto mode.
Setting up php5-gd (5.3.10-1ubuntu3.4) …
Setting up php5-mysql (5.3.10-1ubuntu3.4) …
Setting up ssl-cert (1.0.28ubuntu0.1) …
Setting up zabbix-agent (1:1.8.11-1) …

Creating config file /etc/zabbix/zabbix_agentd.conf with new version
* Starting Zabbix agent zabbix_agentd [ OK ]
Setting up zabbix-frontend-php (1:1.8.11-1) …
dbconfig-common: writing config to /etc/dbconfig-common/zabbix-frontend-php.conf

Creating config file /etc/dbconfig-common/zabbix-frontend-php.conf with new version

Creating config file /etc/zabbix/dbconfig.php with new version
dbconfig-common: flushing administrative password
* Restarting web server apache2 apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName
… waiting apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName
[ OK ]
Processing triggers for libc-bin …
ldconfig deferred processing now taking place
root@ubuntu:~#

 

2. Now we can access Zabbix and monitor your system

http://x.x.x.x/zabbix

Username: admin

Password: zabbix

That’s all. Thanks for using IThelpblog.com.

 

 

Tags:  

Leave a reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>