Ubuntu under Zabbix Server monitoring tool deployment

Source: Internet
Author: User

an installation

Install Apache, Mysql, PHP, Zabbix

sudo apt-get update sudo apt-get install apache2 mysql-server libapache2-mod-php5 php5-gd php5-mysql Php5-common zabbix-s Erver-mysql zabbix-frontend-php

Two server-side configuration

2.1 Configuring database Connections
sudo vim/etc/zabbix/zabbix_server.conf

Modify the relevant

dbname=zabbixdbuser=zabbixdbpassword=zabbix# not required, but recommended startdiscoverers=5

2.2 Creating a MySQL account
Mysql-u root-pmysql> Create user ' Zabbix ' @ ' localhost ' identified by ' Zabbix ';mysql> CREATE DATABASE ZABBIX;MYSQL&G T Grant all privileges the zabbix.* to ' Zabbix ' @ ' localhost ';mysql> flush privileges;mysql> exit;

2.3 Importing initialization data
Cd/usr/share/zabbix-server-mysql/sudo gunzip *.gzmysql-u zabbix-p Zabbix < schema.sqlmysql-u zabbix-p Zabbix < Images.sqlmysql-u Zabbix-p Zabbix < Data.sql

2.4 Modifying PHP parameters
sudo vim/etc/php5/apache2/php.ini

To modify an item:

Post_max_size = 16mmax_execution_time = 300max_input_time = 300date.timezone = "Asia/shanghai"

2.5 Configuring the Web page
sudo cp/usr/share/doc/zabbix-frontend-php/examples/zabbix.conf.php.example/etc/zabbix/zabbix.conf.phpsudo vim/ etc/zabbix/zabbix.conf.php

modifying items

$DB [' DATABASE '] = ' Zabbix '; $DB [' USER '] = ' Zabbix '; $DB [' PASSWORD '] = ' Zabbix '

2.6 Configuring Apache

sudo cp/usr/share/doc/zabbix-frontend-php/examples/apache.conf/etc/apache2/conf-available/zabbix.confsudo a2enconf zabbix.confsudo a2enmod aliassudo service apache2 Restart

2.7 Configuring Zabbix Server Startup
sudo vim/etc/default/zabbix-server

To modify an item:

Start=yes

Start:

sudo service zabbix-server start

2.8 Native Monitoring
sudo apt-get install Zabbix-agentsudo service zabbix-agent restart

2.9 Visits
Http://xxx.xxx.xxx.xxx/zabbix

Default account:

Username = AdminPassword = Zabbix

three-client configuration
sudo apt-get install zabbix-agent

Modify Configuration

sudo vim/etc/zabbix/zabbix_agentd.conf

Adjustment items

server=127.0.0.1 #修改为 The IP of the Zabbix server server, if there is a gateway or monitor machine for the virtual machine is also added to the ipserveractive=127.0.0.1 #修改为 Zabbix server The server's Iphostname=zabbix server #修改为网页里面添加的Hostname and needs to be consistent.

Simple script:

sudo -hs#ubuntu 12.04,14.04 do not need to add #echo  "deb http://ppa.launchpad.net/9v-shaun-42/zabbix22/ Ubuntu precise main " > /etc/apt/sources.list.d/zabbix.listapt-get updateapt-get  install zabbix-agentecho  "server=192.168.3.52,192.168.3.10"  > /etc/zabbix/zabbix_ agentd.conf.d/server.confecho  "serveractive=192.168.3.52"  >> /etc/zabbix/zabbix_ agentd.conf.d/server.confecho  "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 the four CentOS

Installation method Rpm-ivh Yum install zabbix-agent//start service zabbix-agent start//boot start chkconfig zabbix-agent on//configuration Method vi/etc/ Zabbix/zabbix_agentd.conf


This article is from the "5311" blog, please be sure to keep this source http://cuis1.blog.51cto.com/8805022/1888770

Ubuntu under Zabbix Server monitoring tool deployment

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.