Ubuntu under Zabbix Server monitoring tool deployment

Source: Internet
Author: User

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


server-side configuration

Configure database Connections
sudo vim/etc/zabbix/zabbix_server.conf

Modify the relevant

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

Create 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;

Import 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

Modify 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"

Wwwwww

[ Configure Web pages
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 '

Configure 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

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

To modify an item:

Start=yes

Start:

sudo service zabbix-server start

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

Access
Http://xxx.xxx.xxx.xxx/zabbix

Default account:

Username = AdminPassword = Zabbix

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 no 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


This article from "LINUXQT Jinan high-tech Zone" blog, please be sure to keep this source http://qtlinux.blog.51cto.com/3052744/1715216

Ubuntu under Zabbix Server monitoring tool deployment

Related Article

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.