Ubuntu under Zabbix Server monitoring tool deployment
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-server-mysql zabbix- frontend-php
Two service-side configuration
2.1 Configuring database connections
sudo vim/etc/zabbix/zabbix_server.conf modifying related
Dbname=zabbix
Dbuser=zabbix
Dbpassword=zabbix
#非必需, but recommended
Startdiscoverers=5
2.2 Creating 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 Importing 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 Modifying PHP parameters
sudo vim/etc/php5/apache2/php.ini Modify Entries:
Post_max_size = 16M
Max_execution_time = 300
Max_input_time = 300
Date.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.php
sudo vim/etc/zabbix/zabbix.conf.php modifying items
$DB [' DATABASE '] = ' Zabbix ';
$DB [' USER '] = ' Zabbix ';
$DB [' PASSWORD '] = ' Zabbix ' 2.6 configuration 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 Configuring Zabbix Server Startup
sudo vim/etc/default/zabbix-server Modify Entries:
Start=yes Boot:
sudo service zabbix-server start
2.8 Native Monitoring
sudo apt-get install zabbix-agent
sudo service zabbix-agent restart
2.9 Visits
Http://xxx.xxx.xxx.xxx/zabbix Default account:
Username = Admin
Password = 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 #修改为 Zabbix Server IP, if there is a gateway or monitor machine for the virtual machine also add Master's IP
serveractive=127.0.0.1 #修改为 Zabbix Server server IP
Hostname=zabbix server #修改为网页里面添加的Hostname, need 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.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 four for client installation under CentOS
Installation method
Rpm-ivh
Yum Install Zabbix-agent
Start
Service Zabbix-agent Start
Boot up
Chkconfig zabbix-agent on
Configuration method
Vi/etc/zabbix/zabbix_agentd.conf
A collection of some Zabbix related tutorials :
Ubuntu 14.04 under Zabbix2.4.5 source compilation installation http://www.linuxidc.com/Linux/2015-05/117657.htm
Installation and deployment of distributed monitoring System Zabbix 2.06 http://www.linuxidc.com/Linux/2013-07/86942.htm
Installation and deployment of distributed monitoring System Zabbix 2.06 http://www.linuxidc.com/Linux/2013-07/86942.htm
CentOS 6.3 under Zabbix installation 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 under Zabbix surveillance Apache Server-status http://www.linuxidc.com/Linux/2013-05/84740.htm
CentOS 6.3 under Zabbix monitoring MySQL database parameters http://www.linuxidc.com/Linux/2013-05/84800.htm
64-bit CentOS 6.2 under installation Zabbix 2.0.6 http://www.linuxidc.com/Linux/2014-11/109541.htm
Ubuntu under Zabbix Server monitoring tool deployment