Ubuntu14.04 Zabbix3.0 installation configuration (client/server)

[color=green][/color] 准备
wget http://repo.zabbix.com/zabbix/3.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.0-1+trusty_all.deb

dpkg -i zabbix-release_3.0-1+trusty_all.deb

apt-get update

安装服务端
apt-get install zabbix-server-mysql php5-mysql zabbix-frontend-php
配置zabbix
# vi /etc/zabbix/zabbix_server.conf
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=zabbix
设置mysql
mysql>create database zabbix character set utf8 collate utf8_bin;
mysql>grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix';
mysql> flush privileges;
cd /usr/share/doc/zabbix-server-mysql
zcat create.sql.gz | mysql -u root -p zabbix
cp -r /usr/share/zabbix /var/www/html/zabbix
service zabbix-server restart
Configure the configuration information of the server
vim /etc/php5/apache2/php .ini
post_max_size = 32M
max_execution_time = 600
max_input_time = 600 date.timezone
= "Asia/Shanghai"
service apache2 start
and then log in http://IP/zabbix ; default login user password Admin/ zabbix install zabbix


client

apt-get install zabbix- agent
vi /etc/zabbix/zabbix_agentd.conf
Server=server IP address ServerActive
=server IP address
Hostname=client IP
and then restart the client

Monitor a linux host See the attachment for specific steps


Install zabbix (windows) client
1. Download with decompression
Address: http://www.zabbix.com/downloads/2.4.0/zabbix_agents_2.4.0.win.zip

Unzip zabbix_agents_2.4.0.win.zip The

conf directory stores the agent configuration file bin file for 32-bit and 64-bit under windows Installer

2. Configuration and installation

Configure zabbix agent related configuration.

Find the configuration file zabbix_agentd.win.conf under conf, and modify the three parameters of LogFile, Server, and Hostname. The specific configuration is as follows:

LogFile=c:\zabbix_agentd.log

Server=server IP address

Hostname=client IP address

ServerActive=server IP address

where logfile is the zabbix log storage address. Server is the ip address of the zabbix server. Hostname is the local machine name.

Install the agent

and execute the following command under the windows console:

E:\zabbix\bin\win32\zabbix_agentd.exe -c E:\zabbix\conf\zabbix_agentd.win.conf –i

2.3 Start the agent client The

startup command is as follows:

E: \zabbix\bin\win32\zabbix_agentd.exe -c E:\zabbix\conf\zabbix_agentd.win.conf –s

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326352126&siteId=291194637