Environment Description:
CentOS 7.2:
HOSENAME:C7R1
ip:172.16.79.71
Zabbix server MySQL
CentOS 7.2:
Hosename:C7R2
ip:172.16.79. 72
Zabbix Agent
++++++++++++++++++++++++++++++++++server++++++++++++++++++++++++++++++++
A. RPM Package gets:
ZABBIX3.0 series packages to download from the official website Yum ' s base and EPRL are not #步骤省略
Note the old version of the trousers version may be problematic for specific cases see official documentation http://wwww.zabbix.com
650) this.width=650; "alt=" Picture "src=" http://r.photo.store.qq.com/psb?/V12eCfFW33x3LS/ 7dblfxxxurxjlgerjfxg3vng29dnch3fwut8wrumhb8!/o/dggaaaaaaaaa&ek=1&kp=1&pt=0&bo=jqixay0cfwedacu! &su=175663553&sce=0-12-12&rf=2-9 "style=" margin:0px;padding:0px;border-width:0px;border-style:none; vertical-align:top;width:653px;height:279px; "/>
Agent: Managed End Package #如果想监控server自身 also need to be installed
Get:server Manual Data Acquisition tool #非必须安装 only for testing
Sender: The managed side manually pushes data to the server #非必须安装 only for testing
Proxy: Agent Server Installation #以后再说
Java:java Gateway
3.0 Version No Zabbbix-server package has been integrated into the Zabbix-server-dbname package
Two. Installation:
*********************************************************
# yum Insatall mariadb-server #并配置vim/etc/my.cnf added Innodb_file_per_table=onSkip_name_resolve=on
# Systemctl Start mariadb #检查
MariaDB [(none)]> CREATE DATABASE Zabbix CHARSET ' UTF8 '; #创建数据库
MariaDB [(None)]> GRANT all on zabbix.* to [e-mail protected] '%.%.%.% ' identified by ' zbxpass '; #授权
*********************************************************
# yum install zabbix-server-mysql-3.0.2-1.el7.x86_64.rpm zabbix-get-3.0.2-1.el7.x86_64.rpm #web需要依赖关系 Temporary When not installed
*********************************************************
# yum Install httpd php php-mysql php-mbstrin php-gd #php软件包太多 not written back will also be dependent on the installation
# yum install zabbix-web-3.0.2-1.el7.noarch.rpm yum install zabbix-web-mysql-3.0.2-1.el7.noarch.rpm
It means that three hosts can be installed #看需求
Agent Installation Please refer to other logs # SCP zabbix-agent-3.0.2-1.el7.x86_64.rpm [email protected]:/root/
three. Zabbix-server End DB Initialization
# Cp/usr/share/doc/zabbix-server-mysql-3.0.2/create.sql.gz/tmp
# gzip-d Create.sql.gz
#mysql-uzbxuser-pzbxpass-h127.0.0.1 Zabbix <create.sql
****************** ****************** ******************
Four. Configure Zabbix-server
]# vim/etc/zabbix/zabbix_server.conf
Modified: Dbname= dbuser= dbpassword=
650) this.width=650; "alt=" Picture "src=" http://r.photo.store.qq.com/psb?/V12eCfFW33x3LS/ qzvbm9dkj.qzykechopqrkp4og5l361iosllrua.xxa!/o/daubaaaaaaaa&ek=1&kp=1&pt=0&bo=egpyabid2aadacu! &su=116268145&sce=0-12-12&rf=2-9 "style=" margin:0px;padding:0px;border-width:0px;border-style:none; vertical-align:top;width:786px;height:216px; "/>
Hehe failed .... Check logs
3157:20160813:205113.544 [Z3001] connection to database ' Zabbix ' failed: [1045] Access denied for user ' zbx
User ' @ ' localhost ' (using Password:yes)
3157:20160813:205113.544 database is down:reconnecting in seconds
The reason is that Dbhost does not define the default is localhost why doesn't it take effect?
650) this.width=650; "alt=" Picture "src=" Http://r.photo.store.qq.com/psb?/V12eCfFW33x3LS/5R. ad46l4xnx9u0w7ebcgxh.urvbdjgvjaaato.5aty!/o/daubaaaaaaaa&ek=1&kp=1&pt=0&bo=lasaalyf6gidaiw! &su=157137249&sce=0-12-12&rf=2-9 "style=" margin:0px;padding:0px;border-width:0px;border-style:none; vertical-align:top;width:870px;height:475px; "/>
****************** ****************** ****************** ****************** ******************
Five. Configure the web GUI
Modify the time zone. otherwise invalid
# vim/etc/httpd/conf.d/zabbix.conf
650) this.width=650; "alt=" Picture "src=" Http://r.photo.store.qq.com/psb?/V12eCfFW33x3LS/thyinj. Cibnh*p7gvzhnmjv38wlz2z6e2qc.t*.vkck!/o/daubaaaaaaaa&ek=1&kp=1&pt=0&bo=agfdagobqwadacu!&su =1222029409&sce=0-12-12&rf=2-9 "style=" margin:0px;padding:0px;border-width:0px;border-style:none; Vertical-align:top;color:rgb (68,68,68); font-family:punctuation, ' Microsoft Jas Black ', tohoma;font-size:14px;line-height:22.4px ; White-space:normal;width:362px;height:67px;background-color:rgb (255,255,255); "/>
Start the service
#systemctl Start httpd
650) this.width=650; "alt=" Picture "src=" http://r.photo.store.qq.com/psb?/v12ecffw33x3ls/dbjf6jcb6eya5xox84dmw* lltm3csxgd82nlaadkwyg!/o/dambaaaaaaaa&ek=1&kp=1&pt=0&bo=lasaalyf6gidaiw!&su=1202574017 &sce=0-12-12&rf=2-9 "style=" Margin:0px;padding:0px;border-width:0px;border-style:none;vertical-align: top;width:870px;height:475px; "/>
3.0agent configuration:
Passive Checks related passive
server= The IP address of the #zabbix Server allows which hosts to sample IP1,IP2
listenprot=10050
Startagents=3 #启动进程数量 You can open more than a few processes when there are more monitoring items.
listenip=0.0.0.0 #agent监听的端口 0.0.0.0 All addresses
Active checks related Agent proactive reporting mode
serviceactive=ip[:p ort],ip2 #主动报告的ip地址
Hostname= #必须唯一 must be consistent with the Web
******************************************
650) this.width=650; "alt=" Picture "src=" http://r.photo.store.qq.com/psb?/V12eCfFW33x3LS/ 6walx6crs2vesrwazg8q2e.bmmmtjay6q9nhmjvypqy!/o/dacbaaaaaaaa&ek=1&kp=1&pt=0&bo=6gjtauocbqidacu! &su=1105065025&sce=0-12-12&rf=2-9 "style=" Margin:0px;padding:0px;border-width:0px;border-style:none ; vertical-align:top;width:746px;height:621px; "/>
Linux Monitoring System _zabbix3.0 installation process (n)