Ubuntu under the Zabbix server monitoring tool deployment a installation of Apache, install zabbix 4.4 on ubuntu 18.04 Mysql, Php, zabbixsudoapt-getupdatesudoapt-getinstallapache2mysql-serverlibapache2-mod-php5php5-gdphp5-mysqlphp5-commonzabbix-server-mysqlzabbi
Deployment of Zabbix server monitoring tool in Ubuntu
1. Installation:install zabbix ubuntu server 18.04
Install Apache, Mysql, Php, installing zabbix on ubuntu and zabbix
Sudo apt-get update
Sudo apt-get install apache2 mysql-server libapache2-mod-php5 php5-gd php5-mysql php5-common zabbix-server-mysql zabbix-frontend-php
2. Server Configuration
zabbix install ubuntu
2.1 configure database connection
Modify sudo vim/etc/zabbix/zabbix_server.conf
DBName = zabbix
DBUser = zabbix
DBPassword = zabbix
# Optional, but recommended
StartDiscoverers = 5
2.2 create a mysql account
Mysql-u root-p
Mysql> create user 'zabbix' @ 'localhost' identified by 'zabbix ';
Mysql> create database zabbix;
Mysql> grant all privileges on zabbix. * to 'zabbix' @ 'localhost ';
Mysql> flush privileges;
Mysql> exit;
2.3 import initialization data
Cd/usr/share/zabbix-server-mysql/
Sudo gunzip *. gz
Mysql-u zabbix-p zabbix <schema. SQL
Mysql-u zabbix-p zabbix <images. SQL
Mysql-u zabbix-p zabbix <data. SQL
2.4 modify PHP Parameters
Sudo vim/etc/php5/apache2/php. ini:
Post_max_size = 16 M
Max_execution_time= 300
Max_input_time= 300
Date. timezone = "Asia/Shanghai"
2.5 configure webpage
Sudo cp/usr/share/doc/zabbix-frontend-php/examples/zabbix. conf. php. example/etc/zabbix. conf. php
Sudo vim/etc/zabbix. conf. php Modification Item
$ DB ['database'] = 'zabbix ';
$ DB ['user'] = 'zabbix ';
$ DB ['Password'] = 'zabbix' 2.6 configure apache
Sudo cp/usr/share/doc/zabbix-frontend-php/examples/apache. conf/etc/apache2/conf-available/zabbix. conf
Sudo a2enconf zabbix. conf
Sudo a2enmod alias
Sudo service apache2 restart
2.7 configure zabbix server to start
Sudo vim/etc/default/zabbix-server:
START = yes START:
Sudo service zabbix-server start
2.8 local monitoring
Sudo apt-get install zabbix-agent
Sudo service zabbix-agent restart
2.9 Access
Http://xxx.xxx.xxx.xxx/zabbixaccounts:
Username = admin
Password = zabbix
3. Client Configuration
Sudo apt-get install zabbix-agent modify configuration
Sudo vim/etc/zabbix/zabbix_agentd.conf adjustment item
Server = 127.0.0.1 # change to the IP address of the zabbix server Server. If a gateway or the monitored host is a virtual machine, the IP address of the master server is added.
ServerActive = 127.0.0.1 # change to the IP address of the zabbix server
Hostname = Zabbix server # change it to the Hostname added to the webpage, which must be consistent. Simple script:
Sudo-Hs
# Ubuntu 12.04 and 14.04 do not need to be added
# Echo "deb http://ppa.launchpad.net/9v-shaun-42/zabbix22/ubuntu precise main">/etc/apt/sources. list. d/zabbix. list
Apt-get update
Apt-get install zabbix-agent
Echo "Server = 192.168.3.52, 192.168.3.10">/etc/zabbix/zabbix_agentd.conf.d/server. conf
Echo "ServerActive = 192.168.3.52">/etc/zabbix/zabbix_agentd.conf.d/server. conf
Echo "Hostname = '/sbin/ifconfig eth0 | sed-n'/inet addr/s/^ [^:] *: \ ([0-9.] \ {7, 15 \}\). */\ 1/P' ">/etc/zabbix/zabbix_agentd.conf.d/server. conf
/Etc/init. d/zabbix-agent restart Client installation under four CentOS
// Installation Method
Rpm-ivh
Yum install zabbix-agent
// Start
Service zabbix-agent start
// Start upon startup
Chkconfig zabbix-agent on
// Configuration method
Vi/etc/zabbix/zabbix_agentd.conf
Some Zabbix tutorials:
how to install zabbix on ubuntu 16.04
Ubuntu 14.04 Zabbix2.4.5 source code compilation installation http://www.linuxidc.com/Linux/2015-05/117657.htm
Install and deploy the distributed monitoring system Zabbix 2.06 http://www.linuxidc.com/Linux/2013-07/86942.htm
Install and deploy distributed monitoring system Zabbix 2.06 http://www.linuxidc.com/Linux/2013-07/86942.htm
CentOS 6.3 Zabbix installation and deployment http://www.linuxidc.com/Linux/2013-05/83786.htm
Zabbix distributed monitoring system practice http://www.linuxidc.com/Linux/2013-06/85758.htm
CentOS 6.3 Zabbix monitoring apache server-status http://www.linuxidc.com/Linux/2013-05/84740.htm
CentOS 6.3 Zabbix monitoring MySQL database parameter http://www.linuxidc.com/Linux/2013-05/84800.htm
Install Zabbix 2.0.6 http://www.linuxidc.com/Linux/2014-11/109541.htm under 64-bit CentOS 6.2
ZABBIX: Click here
ZABBIX's: Click here
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2
This article permanently updates the link address: Http://www.linuxidc.com/Linux/2015-12/125793.htm