Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Zabbix3.0 installation (based on Ubuntu14.04)

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

I. Environmental preparation

1. Zabbix monitoring system service

1.1 、 VMServer02

Operating system: Ubuntu 14.04

IP address: 192.168.1.201

Related components: zabbix, php, nginx/apache

2. VMServer02 installation and deployment (components: zabbix, php, nginx/apache installation)

2. Install zabbix

2.1 download deb

Wget http://repo.zabbix.com/zabbix/3.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.0-1+trusty_all.deb

2.2. Install debit package

Dpkg-I zabbix-release_3.0-1+trusty_all.deb

2.3. System updates

Root@server02:~# apt-get update

2.4. Install database and front-end related components

Root@server02:~# apt-get install zabbix-server-mysql php5-mysql zabbix-frontend-php

2.5. set the new password of the MySQL "root" user: 1qaz#EDC

Re-determine the new password of the MySQL "root" user

2.7.Configuring mysql

2.7.1. Log in to the database

Root@server02:~# mysql-uroot-p1qaz#EDC

2.7.2. Create a database. Library name: zabbix

Mysql > grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix'

2.7.3. Refresh privileges

Mysql > flush privileges

2.7.3. Import zabbix data into zabbix library

Root@server02:/usr/share/doc/zabbix-server-mysql# zcat create.sql.gz | mysql-u root-p zabbix

Note: "zabbix" after-p is the database name.

Log in to the database to view the imported data

2.7.4. Copy the php file

Root@server02:/usr/share/zabbix# cp-r / usr/share/zabbix/ / var/www/html/zabbix

2.8.Configuring PHP

Root@server02:/usr/share/zabbix# vim / etc/php5/apache2/php.ini

The contents to be configured are as follows:

Post_max_size = 16m

Max_execution_time = 300

Max_input_time = 300

Date.timezone = "Asia/Shanghai"

2.8.1. Restart apache2 after modification

2.9. configure on the zabbix web configuration page

Http://192.168.1.201/zabbix/setup.php

Note: it can be executed directly according to the configuration on the web side. I will not explain it here.

2.10. Zabbix server configuration

Root@server02:/usr/share/zabbix# vim / etc/zabbix/zabbix_server.conf

The contents are as follows:

DBName=zabbix

DBUser=zabbix

DBPassword=zabbix

StartTrappers=50 # has a larger process of processing data pushed by Agentd. The default is 5.

Other basic defaults are fine, and will be configured later according to the actual needs.

2.11. Agentd configuration

2.11.1. Install Agentd

Root@server02:/usr/share/zabbix# apt-get install zabbix-agent

Root@server02:/usr/share/zabbix# vim / etc/zabbix/zabbix_agentd.conf

The contents are as follows:

Server=127.0.0.1

ServerActive=127.0.0.1

Hostname=Zabbix server

2.11.2. Just add monitoring.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report