1. According to the official website documentation, install Zabbix-server
wget http://repo.zabbix.com/zabbix/3.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.0-1+trusty_ All.debdpkg-i zabbix-release_3.0-1+trusty_all.debapt-get Update
2. Installing the Zabbix-server and Zabbix front end
Apt-get Install Zabbix-server-mysql zabbix-frontend-php
3. Zabbix to create database Zabbix and user Zabbix in the database before using the database
Create user ' Zabbix ' @ ' localhost ' identified by ' your_chosen_password_here '; Create database zabbix;grant all privileges On zabbix.* to ' Zabbix ' @ ' localhost '; Flush Privileges;exit;
4. Database description
You can see several compressed files in the/usr/share/doc/zabbix-server-mysql directory: Changelog. debian.gz, create.sql.gz and copyright. gz files can be extracted with the gunzip command.
You can also import it directly to MySQL without extracting it.
Cd/usr/share/doc/zabbix-server-mysqlzcat create.sql.gz | Mysql-uroot Zabbix
There are no schema.sql,images.sql,data.sql three files as prompted by the official website, but it should be correct to import a single create.sql.
5. Modify the configuration parameters to have Zabbix connected to MySQL
This can be viewed by official website or reference website.
6. Accessing Http://IP/zabbix after starting Zabbix-server will help you verify the installation components. The problems encountered are
(1) Time Problem with PHP module: Modify Date.timezone = Asia/shanghai in/etc/php5/apache2/php.ini
(2) Zabbix connection database problem, can be viewed in real time/var/log/zabbix/zabbix_server.log
(2.1) connection to database ' Zabbix ' failed: [2003] Can ' t connect to MySQL server on ' 172.18.216.121 ' (111)
This should be the MySQL listener, from changing the bind_address=127.0.0.1 to the actual IP address.
(2.2) connection to database ' Zabbix ' failed: [1044] Access denied for user ' Zabbix ' @ '% ' to database ' Zabbix '
There was a previous setting of% access in the user table, but there was still a problem. Later the visual inspection was reset again to resolve.
Grant all privileges on * * to ' Zabbix ' @ ' percent ' identified by ' Your_password ' with GRANT option;
7. Login to Http://IP/zabbix. Default User name Admin, password Zabbix
8. Add Zabbix_agent,ubuntu apt-get Install zabbix-agent, and then modify the configuration parameters.
(1) Ubuntu encounters problems with server and serveractive IP remember to be right.
(2) Windows encounters cannot connect to [agent_ip:10050][interrupted system call] after configuration, which is caused by a firewall. My workaround adds the release of the Zabbix_agent.exe program to the inbound rule.
9. Other
The server installs Apt-get install Zabbix-get, which can be detected with the Zabbix_get command line.
Reference:
"Zabbix Documentation 3.0"
"BLOG installing ZABBIX on UBUNTU 14.04"
"Zabbix Database description (seems a bit outdated)"
"Zabbix Monitoring Windows Host"
This article is from the "Novice PS Welcome Exchange" Blog, please be sure to keep this source http://linpeisong.blog.51cto.com/9601554/1760125
Installation of Zabbix records in ubuntu14.02 LTS