Deployment of Zabbix server monitoring tool in Ubuntu

Source: Internet
Author: User

Deployment of Zabbix server monitoring tool in Ubuntu

Deployment of Zabbix server monitoring tool in Ubuntu

installing zabbix on ubuntu

1. Installation
Install Apache, Mysql, Php, and zabbix,zabbix install ubuntu

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
 how to install zabbix on ubuntu 16.04
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, install zabbix ubuntu server 18.04 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:

Compile and install Zabbix2.4.5 source code in Ubuntu 14.04

Install and deploy the distributed monitoring system Zabbix 2.06

Install and deploy the distributed monitoring system Zabbix 2.06

Install and deploy Zabbix in CentOS 6.3

Zabbix distributed monitoring system practice

Under CentOS 6.3, Zabbix monitors apache server-status

Monitoring MySQL database Parameters Using Zabbix in CentOS 6.3

Install Zabbix 2.0.6 in 64-bit CentOS 6.2

ZABBIX details: click here
ZABBIX: click here

install zabbix 4.4 on ubuntu 18.04


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.