📜 ⬆️ ⬇️

Installing Zabbix 2.0 on Ubuntu Server 11.04

image

Good day, dear habravchane (smile).

In the company where I work, I have already managed to deploy the monitoring system Nagios 3. I am very pleased with it. Everything is monitored and notified: linux and windows servers, printers and all cisco routers. Hyde laid out here, but he disappeared somewhere in time. Why? I do not know. If necessary, I can lay out again.
')
And here not so long ago I came across a post that Zabbix 2.0 came out. And I decided to install it and see in it, that yes how. I finally installed it yesterday, but have not set it up yet. So the first article is dedicated to the installation of Zabbix 2.0 and its web interface. Who cares please press the button below.



Install Zabbix server.

Initially we need to download the Zabbix source codes. You can download them from here:

http://www.zabbix.com/en/download.php

For download, I use the links2 console browser

$ apt-get install links2

After downloading, unzip it:

$ tar -zxvf zabbix-2.0.0.tar.gz

Create a zabbix user account and a zabbix group:

$ groupadd zabbix
$ useradd -g zabbix zabbix


For zabbix to work, we need a database for it. I used MySQL. I quote its installation:

$ apt-get install mysql-server

When installing, specify the password for the root user.
After installation, start the database server:

$ /etc/init.d/mysql start

Now we need to create a zabbix database and a zabbix user and give it the necessary rights. Connect to MySQL:

$ mysql -u root -p
Enter password: < , >

mysql>create database zabbix;
mysql>grant usage on *.* to zabbix@localhost identified by 'password';
mysql>grant all privileges on zabbix.* to zabbix@localhost;
mysql>flush privileges;
mysql>quit;

MySQL:

$ mysql -u zabbix -p
Enter password:

. .
. :

./configure --enable-server --enable-agent --with-mysql --enable-ipv6 --with-net-snmp --with-libcurl


:

$ make install

Zabbix . :

/usr/local/etc/zabbix_agentd.conf
/usr/local/etc/zabbix_server.conf


IP Zabbix. , .
zabbix :

$ zabbix_server

- Zabbix

Apache PHP:

$ apt-get install apache2
$ apt-get install php5

html, zabbix. html :

/var/www/

Zabbix :

/var/www/zabbix/

:

$ mkdir /var/www /zabbix
$ cd frontends/php
$ cp -a . /var/www /zabbix



:

http://<IP__zabbix_>/zabbix

. . , «». . , :

1. php post max size, php max execution time, php max input time, php time zone

php.ini, , . :

/etc/php5/apache2/php.ini

php time zone :

date.timezone = Europe/Moscow

Apache :

$ /etc/init.d/apache2 restart

2.php database support

MySQL PHP:

$ apt-get install php5-mysql

3.php GD, php GD PNG support

GD PHP:

$ apt-get install php5-gd

. .
, .
/ : Admin/zabbix
, – . . zabbix.
:

/database/zabbix/

:

$ cat schema.sql | mysql –u zabbix –p
Enter password:
$ cat images.sql | mysql –u zabbix –p

Enter password:
$ cat data.sql | mysql –u zabbix –p

Enter password:

MySQL Apache. .

Source: https://habr.com/ru/post/149500/


All Articles