设备越来越多希望找一个运维监控能帮助管理各种网络设备虚拟机服务器。。。。。。
所以打算试一下zabbix,我做好这个模板后,部署上去,结果发现,如果你设备很多,十万+个监控项的话,估计你的硬盘很快就耗尽了,预计1年1T,上亿条啊。。。得清理呢。。。
先安装cent os 6.5
直接全部root权限操作 有点流氓啊。。。
安装VMware tools
cp /mnt/cdrom/VMwareTools-XXX.tar.gz /tmp
tar -xvzf VMwareTools-XXX.tar.gz
cd vmware-tools-distrib
./vmware-install.pl
一下直接用putty操作 所有过程都有###XXX###为说明。。。你懂的。。。。有乱码,别骂我。。。安装的各种组件你会看得很清楚,zabbix官网上也有说明,有网络就是这个好处,直接yum 库,而不用在内网上一个一个打。。。
=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2014.08.03 20:26:51 =~=~=~=~=~=~=~=~=~=~=~=
login as: root
root@192.168.111.133's password:
Last login: Sun Aug 3 20:15:39 2014 from 192.168.111.1
# rpm -ivh http://repo.zabbix.com/zabbix/2.2/rhel/6/x86_64/zabbix-release-2.2-1.el6.noarch.rpm ###安装 repository configuration package###
]0;root@rick:~[?1034h[root@rick ~]# yum install zabbix-server-mysql zabbix-web-mysql ###安装 Zabbix packages###
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirrors.btte.net
* extras: mirrors.btte.net
* updates: mirrors.btte.net
zabbix | 951 B 00:00
zabbix/primary 43% [======- ] 0.0 B/s | 6.7 kB --:-- ETA
zabbix/primary 100% [===============] 11 kB/s | 15 kB 00:00 ETA
zabbix/primary | 15 kB 00:00
zabbix: [ ] 1/97
zabbix: [# ] 2/97
zabbix: [# ] 3/97
zabbix: [## ] 4/97
zabbix: [### ] 5/97
zabbix: [### ] 6/97
zabbix: [#### ] 7/97
zabbix: [##### ] 8/97
zabbix: [##### ] 9/97
zabbix: [###### ] 10/97
zabbix: [####### ] 11/97
zabbix: [####### ] 12/97
zabbix: [######## ] 13/97
zabbix: [######### ] 14/97
zabbix: [######### ] 15/97
zabbix: [########## ] 16/97
zabbix: [########### ] 17/97
zabbix: [########### ] 18/97
zabbix: [############ ] 19/97
zabbix: [############ ] 20/97
zabbix: [############# ] 21/97
zabbix: [############## ] 22/97
zabbix: [############## ] 23/97
zabbix: [############### ] 24/97
zabbix: [################ ] 25/97
zabbix: [################ ] 26/97
zabbix: [################# ] 27/97
zabbix: [################## ] 28/97
zabbix: [################## ] 29/97
zabbix: [################### ] 30/97
zabbix: [#################### ] 31/97
zabbix: [#################### ] 32/97
zabbix: [##################### ] 33/97
zabbix: [###################### ] 34/97
zabbix: [###################### ] 35/97
zabbix: [####################### ] 36/97
zabbix: [######################## ] 37/97
zabbix: [######################## ] 38/97
zabbix: [######################### ] 39/97
zabbix: [######################### ] 40/97
zabbix: [########################## ] 41/97
zabbix: [########################### ] 42/97
zabbix: [########################### ] 43/97
zabbix: [############################ ] 44/97
zabbix: [############################# ] 45/97
zabbix: [############################# ] 46/97
zabbix: [############################## ] 47/97
zabbix: [############################### ] 48/97
zabbix: [############################### ] 49/97
zabbix: [################################ ] 50/97
zabbix: [################################# ] 51/97
zabbix: [################################# ] 52/97
zabbix: [################################## ] 53/97
zabbix: [################################### ] 54/97
zabbix: [################################### ] 55/97
zabbix: [#################################### ] 56/97
zabbix: [##################################### ] 57/97
zabbix: [##################################### ] 58/97
zabbix: [###################################### ] 59/97
zabbix: [###################################### ] 60/97
zabbix: [####################################### ] 61/97
zabbix: [######################################## ] 62/97
zabbix: [######################################## ] 63/97
zabbix: [######################################### ] 64/97
zabbix: [########################################## ] 65/97
zabbix: [########################################## ] 66/97
zabbix: [########################################### ] 67/97
zabbix: [############################################ ] 68/97
zabbix: [############################################ ] 69/97
zabbix: [############################################# ] 70/97
zabbix: [############################################## ] 71/97
zabbix: [############################################## ] 72/97
zabbix: [############################################### ] 73/97
zabbix: [################################################ ] 74/97
zabbix: [################################################ ] 75/97
zabbix: [################################################# ] 76/97
zabbix: [################################################## ] 77/97
zabbix: [################################################## ] 78/97
zabbix: [################################################### ] 79/97
zabbix: [################################################### ] 80/97
zabbix: [#################################################### ] 81/97
zabbix: [##################################################### ] 82/97
zabbix: [##################################################### ] 83/97
zabbix: [###################################################### ] 84/97
zabbix: [####################################################### ] 85/97
zabbix: [####################################################### ] 86/97
zabbix: [######################################################## ] 87/97
zabbix: [######################################################### ] 88/97
zabbix: [######################################################### ] 89/97
zabbix: [########################################################## ] 90/97
zabbix: [########################################################### ] 91/97
zabbix: [########################################################### ] 92/97
zabbix: [############################################################ ] 93/97
zabbix: [############################################################# ] 94/97
zabbix: [############################################################# ] 95/97
zabbix: [############################################################## ] 96/97
zabbix 97/97
zabbix-non-supported | 951 B 00:00
zabbix-non-supported/primary | 3.8 kB 00:00
zabbix-non-supported: [### ] 1/15
zabbix-non-supported: [###### ] 2/15
zabbix-non-supported: [########## ] 3/15
zabbix-non-supported: [############# ] 4/15
zabbix-non-supported: [################ ] 5/15
zabbix-non-supported: [#################### ] 6/15
zabbix-non-supported: [####################### ] 7/15
zabbix-non-supported: [########################## ] 8/15
zabbix-non-supported: [############################## ] 9/15
zabbix-non-supported: [################################ ] 10/15
zabbix-non-supported: [################################### ] 11/15
zabbix-non-supported: [####################################### ] 12/15
zabbix-non-supported: [########################################## ] 13/15
zabbix-non-supported: [############################################# ] 14/15
zabbix-non-supported 15/15
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package zabbix-server-mysql.x86_64 0:2.2.5-1.el6 will be installed
--> Processing Dependency: zabbix = 2.2.5-1.el6 for package: zabbix-server-mysql-2.2.5-1.el6.x86_64
--> Processing Dependency: zabbix-server = 2.2.5-1.el6 for package: zabbix-server-mysql-2.2.5-1.el6.x86_64
--> Processing Dependency: libiksemel.so.3()(64bit) for package: zabbix-server-mysql-2.2.5-1.el6.x86_64
--> Processing Dependency: libOpenIPMIposix.so.0()(64bit) for package: zabbix-server-mysql-2.2.5-1.el6.x86_64
--> Processing Dependency: libOpenIPMI.so.0()(64bit) for package: zabbix-server-mysql-2.2.5-1.el6.x86_64
---> Package zabbix-web-mysql.noarch 0:2.2.5-1.el6 will be installed
--> Processing Dependency: zabbix-web = 2.2.5-1.el6 for package: zabbix-web-mysql-2.2.5-1.el6.noarch
--> Processing Dependency: php-mysql for package: zabbix-web-mysql-2.2.5-1.el6.noarch
--> Running transaction check
---> Package OpenIPMI-libs.x86_64 0:2.0.16-14.el6 will be installed
---> Package iksemel.x86_64 0:1.4-2.el6 will be installed
---> Package php-mysql.x86_64 0:5.3.3-27.el6_5 will be installed
---> Package zabbix.x86_64 0:2.2.5-1.el6 will be installed
---> Package zabbix-server.x86_64 0:2.2.5-1.el6 will be installed
--> Processing Dependency: fping for package: zabbix-server-2.2.5-1.el6.x86_64
---> Package zabbix-web.noarch 0:2.2.5-1.el6 will be installed
--> Processing Dependency: php-mbstring for package: zabbix-web-2.2.5-1.el6.noarch
--> Processing Dependency: php-bcmath for package: zabbix-web-2.2.5-1.el6.noarch
--> Running transaction check
---> Package fping.x86_64 0:2.4b2-16.el6 will be installed
---> Package php-bcmath.x86_64 0:5.3.3-27.el6_5 will be installed
---> Package php-mbstring.x86_64 0:5.3.3-27.el6_5 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
zabbix-server-mysql x86_64 2.2.5-1.el6 zabbix 1.5 M
zabbix-web-mysql noarch 2.2.5-1.el6 zabbix 13 k
Installing for dependencies:
OpenIPMI-libs x86_64 2.0.16-14.el6 base 473 k
fping x86_64 2.4b2-16.el6 zabbix-non-supported 31 k
iksemel x86_64 1.4-2.el6 zabbix-non-supported 47 k
php-bcmath x86_64 5.3.3-27.el6_5 updates 35 k
php-mbstring x86_64 5.3.3-27.el6_5 updates 455 k
php-mysql x86_64 5.3.3-27.el6_5 updates 81 k
zabbix x86_64 2.2.5-1.el6 zabbix 145 k
zabbix-server x86_64 2.2.5-1.el6 zabbix 20 k
zabbix-web noarch 2.2.5-1.el6 zabbix 4.5 M
Transaction Summary
================================================================================
Install 11 Package(s)
Total download size: 7.3 M
Installed size: 35 M
Is this ok [y/N]: y
Downloading Packages:
(1/11): OpenIPMI-libs- (4%) 74% [=========- ] 0.0 B/s | 351 kB --:-- ETA
(1/11): OpenIPMI-libs-2.0.16-14.el6.x86_64.rpm | 473 kB 00:00
(2/11): fping-2.4b2-16 (6%) 30% [===- ] 0.0 B/s | 9.4 kB --:-- ETA
(2/11): fping-2.4b2-16 (6%) 93% [============ ] 20 kB/s | 29 kB 00:00 ETA
(2/11): fping-2.4b2-16.el6.x86_64.rpm | 31 kB 00:00
(3/11): iksemel-1.4-2. (7%) 84% [=========== ] 0.0 B/s | 40 kB --:-- ETA
(3/11): iksemel-1.4-2.el6.x86_64.rpm | 47 kB 00:00
(4/11): php-bcmath-5.3.3-27.el6_5.x86_64.rpm | 35 kB 00:00
(5/11): php-mbstring-5.3.3-27.el6_5.x86_64.rpm | 455 kB 00:00
(6/11): php-mysql-5.3.3-27.el6_5.x86_64.rpm | 81 kB 00:00
(7/11): zabbix-2.2.5-1 (15%) 26% [=== ] 0.0 B/s | 38 kB --:-- ETA
(7/11): zabbix-2.2.5-1 (16%) 63% [=======- ] 59 kB/s | 92 kB 00:00 ETA
(7/11): zabbix-2.2.5-1.el6.x86_64.rpm | 145 kB 00:00
(8/11): zabbix-server-2.2.5-1.el6.x86_64.rpm | 20 kB 00:00
(9/11): zabbix-server- (18%) 8% [- ] 0.0 B/s | 123 kB --:-- ETA
(9/11): zabbix-server- (20%) 15% [=- ] 129 kB/s | 244 kB 00:09 ETA
(9/11): zabbix-server- (22%) 23% [==- ] 141 kB/s | 366 kB 00:08 ETA
(9/11): zabbix-server- (23%) 30% [===- ] 152 kB/s | 460 kB 00:07 ETA
(9/11): zabbix-server- (24%) 36% [==== ] 158 kB/s | 551 kB 00:06 ETA
(9/11): zabbix-server- (25%) 40% [====- ] 160 kB/s | 613 kB 00:05 ETA
(9/11): zabbix-server- (27%) 47% [=====- ] 171 kB/s | 733 kB 00:04 ETA
(9/11): zabbix-server- (27%) 52% [====== ] 173 kB/s | 795 kB 00:04 ETA
(9/11): zabbix-server- (29%) 59% [======= ] 183 kB/s | 915 kB 00:03 ETA
(9/11): zabbix-server- (30%) 63% [=======- ] 183 kB/s | 977 kB 00:03 ETA
(9/11): zabbix-server- (31%) 71% [========- ] 193 kB/s | 1.1 MB 00:02 ETA
(9/11): zabbix-server- (32%) 75% [========= ] 192 kB/s | 1.1 MB 00:01 ETA
(9/11): zabbix-server- (34%) 83% [========== ] 202 kB/s | 1.2 MB 00:01 ETA
(9/11): zabbix-server- (35%) 87% [==========- ] 200 kB/s | 1.3 MB 00:00 ETA
(9/11): zabbix-server- (36%) 95% [=========== ] 210 kB/s | 1.4 MB 00:00 ETA
(9/11): zabbix-server- (37%) 99% [===========-] 206 kB/s | 1.5 MB 00:00 ETA
(9/11): zabbix-server-mysql-2.2.5-1.el6.x86_64.rpm | 1.5 MB 00:06
(10/11): zabbix-web-2. (39%) 2% [ ] 0.0 B/s | 127 kB --:-- ETA
(10/11): zabbix-web-2. (41%) 5% [- ] 127 kB/s | 248 kB 00:34 ETA
(10/11): zabbix-web-2. (42%) 7% [- ] 139 kB/s | 367 kB 00:30 ETA
(10/11): zabbix-web-2. (44%) 10% [= ] 150 kB/s | 491 kB 00:27 ETA
(10/11): zabbix-web-2. (45%) 13% [=- ] 160 kB/s | 613 kB 00:25 ETA
(10/11): zabbix-web-2. (46%) 14% [=- ] 166 kB/s | 689 kB 00:23 ETA
(10/11): zabbix-web-2. (48%) 17% [== ] 173 kB/s | 792 kB 00:22 ETA
(10/11): zabbix-web-2. (49%) 18% [== ] 173 kB/s | 857 kB 00:21 ETA
(10/11): zabbix-web-2. (50%) 21% [==- ] 185 kB/s | 975 kB 00:19 ETA
(10/11): zabbix-web-2. (51%) 22% [==- ] 184 kB/s | 1.0 MB 00:19 ETA
(10/11): zabbix-web-2. (53%) 25% [=== ] 195 kB/s | 1.1 MB 00:17 ETA
(10/11): zabbix-web-2. (54%) 26% [=== ] 192 kB/s | 1.2 MB 00:17 ETA
(10/11): zabbix-web-2. (55%) 28% [=== ] 203 kB/s | 1.3 MB 00:16 ETA
(10/11): zabbix-web-2. (56%) 30% [===- ] 200 kB/s | 1.4 MB 00:16 ETA
(10/11): zabbix-web-2. (58%) 32% [===- ] 211 kB/s | 1.5 MB 00:14 ETA
(10/11): zabbix-web-2. (58%) 34% [==== ] 206 kB/s | 1.6 MB 00:14 ETA
(10/11): zabbix-web-2. (60%) 36% [==== ] 210 kB/s | 1.7 MB 00:13 ETA
(10/11): zabbix-web-2. (62%) 39% [====- ] 214 kB/s | 1.8 MB 00:13 ETA
(10/11): zabbix-web-2. (63%) 40% [====- ] 214 kB/s | 1.9 MB 00:12 ETA
(10/11): zabbix-web-2. (64%) 43% [===== ] 215 kB/s | 2.0 MB 00:12 ETA
(10/11): zabbix-web-2. (66%) 45% [=====- ] 220 kB/s | 2.1 MB 00:11 ETA
(10/11): zabbix-web-2. (67%) 48% [=====- ] 228 kB/s | 2.2 MB 00:10 ETA
(10/11): zabbix-web-2. (67%) 48% [=====- ] 211 kB/s | 2.2 MB 00:11 ETA
(10/11): zabbix-web-2. (70%) 52% [====== ] 228 kB/s | 2.4 MB 00:09 ETA
(10/11): zabbix-web-2. (71%) 54% [======- ] 232 kB/s | 2.5 MB 00:09 ETA
(10/11): zabbix-web-2. (72%) 56% [======- ] 232 kB/s | 2.6 MB 00:08 ETA
(10/11): zabbix-web-2. (73%) 57% [======- ] 230 kB/s | 2.6 MB 00:08 ETA
(10/11): zabbix-web-2. (75%) 60% [======= ] 235 kB/s | 2.7 MB 00:07 ETA
(10/11): zabbix-web-2. (76%) 61% [======= ] 233 kB/s | 2.8 MB 00:07 ETA
(10/11): zabbix-web-2. (77%) 64% [=======- ] 238 kB/s | 2.9 MB 00:06 ETA
(10/11): zabbix-web-2. (78%) 65% [=======- ] 234 kB/s | 3.0 MB 00:06 ETA
(10/11): zabbix-web-2. (80%) 68% [======== ] 240 kB/s | 3.1 MB 00:06 ETA
(10/11): zabbix-web-2. (80%) 69% [======== ] 235 kB/s | 3.2 MB 00:05 ETA
(10/11): zabbix-web-2. (82%) 72% [========- ] 243 kB/s | 3.3 MB 00:05 ETA
(10/11): zabbix-web-2. (83%) 73% [========- ] 236 kB/s | 3.3 MB 00:05 ETA
(10/11): zabbix-web-2. (84%) 76% [========= ] 245 kB/s | 3.4 MB 00:04 ETA
(10/11): zabbix-web-2. (85%) 77% [========= ] 236 kB/s | 3.5 MB 00:04 ETA
(10/11): zabbix-web-2. (87%) 80% [=========- ] 237 kB/s | 3.6 MB 00:03 ETA
(10/11): zabbix-web-2. (89%) 82% [=========- ] 239 kB/s | 3.7 MB 00:03 ETA
(10/11): zabbix-web-2. (90%) 84% [========== ] 241 kB/s | 3.8 MB 00:03 ETA
(10/11): zabbix-web-2. (91%) 86% [========== ] 241 kB/s | 3.9 MB 00:02 ETA
(10/11): zabbix-web-2. (92%) 87% [==========- ] 236 kB/s | 4.0 MB 00:02 ETA
(10/11): zabbix-web-2. (93%) 90% [==========- ] 244 kB/s | 4.1 MB 00:01 ETA
(10/11): zabbix-web-2. (94%) 91% [=========== ] 237 kB/s | 4.2 MB 00:01 ETA
(10/11): zabbix-web-2. (96%) 94% [=========== ] 245 kB/s | 4.3 MB 00:01 ETA
(10/11): zabbix-web-2. (97%) 95% [=========== ] 235 kB/s | 4.3 MB 00:00 ETA
(10/11): zabbix-web-2. (98%) 98% [===========-] 235 kB/s | 4.5 MB 00:00 ETA
(10/11): zabbix-web-2.2.5-1.el6.noarch.rpm | 4.5 MB 00:18
(11/11): zabbix-web-mysql-2.2.5-1.el6.noarch.rpm | 13 kB 00:00
--------------------------------------------------------------------------------
Total 243 kB/s | 7.3 MB 00:30
warning: rpmts_HdrFromFdno: Header V4 DSA/SHA1 Signature, key ID 79ea5ed4: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX
Importing GPG key 0x79EA5ED4:
Userid : Zabbix SIA <packager@zabbix.com>
Package: zabbix-release-2.2-1.el6.noarch (installed)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
Installing : zabbix-2.2.5-1.el6.x86_64 [ ] 1/11
Installing : zabbix-2.2.5-1.el6.x86_64 [#### ] 1/11
Installing : zabbix-2.2.5-1.el6.x86_64 [######## ] 1/11
Installing : zabbix-2.2.5-1.el6.x86_64 [############ ] 1/11
Installing : zabbix-2.2.5-1.el6.x86_64 [############### ] 1/11
Installing : zabbix-2.2.5-1.el6.x86_64 [################### ] 1/11
Installing : zabbix-2.2.5-1.el6.x86_64 [####################### ] 1/11
Installing : zabbix-2.2.5-1.el6.x86_64 [########################## ] 1/11
Installing : zabbix-2.2.5-1.el6.x86_64 [############################# ] 1/11
Installing : zabbix-2.2.5-1.el6.x86_64 1/11
Installing : OpenIPMI-libs-2.0.16-14.el6 [ ] 2/11
Installing : OpenIPMI-libs-2.0.16-14.el6 [# ] 2/11
Installing : OpenIPMI-libs-2.0.16-14.el6 [### ] 2/11
Installing : OpenIPMI-libs-2.0.16-14.el6 [#### ] 2/11
Installing : OpenIPMI-libs-2.0.16-14.el6 [##### ] 2/11
Installing : OpenIPMI-libs-2.0.16-14.el6 [###### ] 2/11
Installing : OpenIPMI-libs-2.0.16-14.el6 [####### ] 2/11
Installing : OpenIPMI-libs-2.0.16-14.el6 [######## ] 2/11
Installing : OpenIPMI-libs-2.0.16-14.el6 [######### ] 2/11
Installing : OpenIPMI-libs-2.0.16-14.el6 [########## ] 2/11
Installing : OpenIPMI-libs-2.0.16-14.el6 [########### ] 2/11
Installing : OpenIPMI-libs-2.0.16-14.el6 [############ ] 2/11
Installing : OpenIPMI-libs-2.0.16-14.el6 [############## ] 2/11
Installing : OpenIPMI-libs-2.0.16-14.el6 [############### ] 2/11
Installing : OpenIPMI-libs-2.0.16-14.el6 [################ ] 2/11
Installing : OpenIPMI-libs-2.0.16-14.el6 [################# ] 2/11
Installing : OpenIPMI-libs-2.0.16-14.el6 [################## ] 2/11
Installing : OpenIPMI-libs-2.0.16-14.el6 [################### ] 2/11
Installing : OpenIPMI-libs-2.0.16-14.el6 [##################### ] 2/11
Installing : OpenIPMI-libs-2.0.16-14.el6 [###################### ] 2/11
Installing : OpenIPMI-libs-2.0.16-14.el6 [####################### ] 2/11
Installing : OpenIPMI-libs-2.0.16-14.el6 [######################## ] 2/11
Installing : OpenIPMI-libs-2.0.16-14.el6 [######################### ] 2/11
Installing : OpenIPMI-libs-2.0.16-14.el6 [########################## ] 2/11
Installing : OpenIPMI-libs-2.0.16-14.el6 [########################### ] 2/11
Installing : OpenIPMI-libs-2.0.16-14.el6.x86_64 2/11
Installing : iksemel-1.4-2.el6.x86_64 [ ] 3/11
Installing : iksemel-1.4-2.el6.x86_64 [############## ] 3/11
Installing : iksemel-1.4-2.el6.x86_64 [############### ] 3/11
Installing : iksemel-1.4-2.el6.x86_64 [###################### ] 3/11
Installing : iksemel-1.4-2.el6.x86_64 [############################# ] 3/11
Installing : iksemel-1.4-2.el6.x86_64 [############################## ] 3/11
Installing : iksemel-1.4-2.el6.x86_64 3/11
Installing : php-bcmath-5.3.3-27.el6_5.x [ ] 4/11
Installing : php-bcmath-5.3.3-27.el6_5.x [########################### ] 4/11
Installing : php-bcmath-5.3.3-27.el6_5.x86_64 4/11
Installing : php-mysql-5.3.3-27.el6_5.x8 [ ] 5/11
Installing : php-mysql-5.3.3-27.el6_5.x8 [###### ] 5/11
Installing : php-mysql-5.3.3-27.el6_5.x8 [############### ] 5/11
Installing : php-mysql-5.3.3-27.el6_5.x8 [####################### ] 5/11
Installing : php-mysql-5.3.3-27.el6_5.x8 [######################## ] 5/11
Installing : php-mysql-5.3.3-27.el6_5.x8 [########################### ] 5/11
Installing : php-mysql-5.3.3-27.el6_5.x86_64 5/11
Installing : fping-2.4b2-16.el6.x86_64 [########### ] 6/11
Installing : fping-2.4b2-16.el6.x86_64 [###################### ] 6/11
Installing : fping-2.4b2-16.el6.x86_64 [########################### ] 6/11
Installing : fping-2.4b2-16.el6.x86_64 [############################ ] 6/11
Installing : fping-2.4b2-16.el6.x86_64 [############################# ] 6/11
Installing : fping-2.4b2-16.el6.x86_64 6/11
Installing : zabbix-server-mysql-2.2.5-1 [ ] 7/11
Installing : zabbix-server-mysql-2.2.5-1 [# ] 7/11
Installing : zabbix-server-mysql-2.2.5-1 [## ] 7/11
Installing : zabbix-server-mysql-2.2.5-1 [### ] 7/11
Installing : zabbix-server-mysql-2.2.5-1 [#### ] 7/11
Installing : zabbix-server-mysql-2.2.5-1 [##### ] 7/11
Installing : zabbix-server-mysql-2.2.5-1 [###### ] 7/11
Installing : zabbix-server-mysql-2.2.5-1 [####### ] 7/11
Installing : zabbix-server-mysql-2.2.5-1 [######## ] 7/11
Installing : zabbix-server-mysql-2.2.5-1 [######### ] 7/11
Installing : zabbix-server-mysql-2.2.5-1 [########## ] 7/11
Installing : zabbix-server-mysql-2.2.5-1 [########### ] 7/11
Installing : zabbix-server-mysql-2.2.5-1 [############ ] 7/11
Installing : zabbix-server-mysql-2.2.5-1 [############# ] 7/11
Installing : zabbix-server-mysql-2.2.5-1 [############## ] 7/11
Installing : zabbix-server-mysql-2.2.5-1 [############### ] 7/11
Installing : zabbix-server-mysql-2.2.5-1 [################ ] 7/11
Installing : zabbix-server-mysql-2.2.5-1 [################# ] 7/11
Installing : zabbix-server-mysql-2.2.5-1 [################## ] 7/11
Installing : zabbix-server-mysql-2.2.5-1 [################### ] 7/11
Installing : zabbix-server-mysql-2.2.5-1 [#################### ] 7/11
Installing : zabbix-server-mysql-2.2.5-1 [##################### ] 7/11
Installing : zabbix-server-mysql-2.2.5-1 [###################### ] 7/11
Installing : zabbix-server-mysql-2.2.5-1 [####################### ] 7/11
Installing : zabbix-server-mysql-2.2.5-1 [######################## ] 7/11
Installing : zabbix-server-mysql-2.2.5-1 [######################### ] 7/11
Installing : zabbix-server-mysql-2.2.5-1 [########################## ] 7/11
Installing : zabbix-server-mysql-2.2.5-1 [########################### ] 7/11
Installing : zabbix-server-mysql-2.2.5-1.el6.x86_64 7/11
Installing : zabbix-server-2.2.5-1.el6.x [## ] 8/11
Installing : zabbix-server-2.2.5-1.el6.x [### ] 8/11
Installing : zabbix-server-2.2.5-1.el6.x [######################### ] 8/11
Installing : zabbix-server-2.2.5-1.el6.x [########################## ] 8/11
Installing : zabbix-server-2.2.5-1.el6.x [########################### ] 8/11
Installing : zabbix-server-2.2.5-1.el6.x86_64 8/11
Installing : php-mbstring-5.3.3-27.el6_5 [ ] 9/11
Installing : php-mbstring-5.3.3-27.el6_5 [# ] 9/11
Installing : php-mbstring-5.3.3-27.el6_5 [## ] 9/11
Installing : php-mbstring-5.3.3-27.el6_5 [### ] 9/11
Installing : php-mbstring-5.3.3-27.el6_5 [#### ] 9/11
Installing : php-mbstring-5.3.3-27.el6_5 [##### ] 9/11
Installing : php-mbstring-5.3.3-27.el6_5 [###### ] 9/11
Installing : php-mbstring-5.3.3-27.el6_5 [####### ] 9/11
Installing : php-mbstring-5.3.3-27.el6_5 [######## ] 9/11
Installing : php-mbstring-5.3.3-27.el6_5 [######### ] 9/11
Installing : php-mbstring-5.3.3-27.el6_5 [########## ] 9/11
Installing : php-mbstring-5.3.3-27.el6_5 [########### ] 9/11
Installing : php-mbstring-5.3.3-27.el6_5 [############ ] 9/11
Installing : php-mbstring-5.3.3-27.el6_5 [############# ] 9/11
Installing : php-mbstring-5.3.3-27.el6_5 [############## ] 9/11
Installing : php-mbstring-5.3.3-27.el6_5 [############### ] 9/11
Installing : php-mbstring-5.3.3-27.el6_5 [################ ] 9/11
Installing : php-mbstring-5.3.3-27.el6_5 [################# ] 9/11
Installing : php-mbstring-5.3.3-27.el6_5 [################## ] 9/11
Installing : php-mbstring-5.3.3-27.el6_5 [################### ] 9/11
Installing : php-mbstring-5.3.3-27.el6_5 [#################### ] 9/11
Installing : php-mbstring-5.3.3-27.el6_5 [##################### ] 9/11
Installing : php-mbstring-5.3.3-27.el6_5 [###################### ] 9/11
Installing : php-mbstring-5.3.3-27.el6_5 [####################### ] 9/11
Installing : php-mbstring-5.3.3-27.el6_5 [######################## ] 9/11
Installing : php-mbstring-5.3.3-27.el6_5 [######################### ] 9/11
Installing : php-mbstring-5.3.3-27.el6_5 [########################## ] 9/11
Installing : php-mbstring-5.3.3-27.el6_5 [########################### ] 9/11
Installing : php-mbstring-5.3.3-27.el6_5.x86_64 9/11
Installing : zabbix-web-mysql-2.2.5-1.el6.noarch 10/11
Installing : zabbix-web-2.2.5-1.el6.noar [ ] 11/11
Installing : zabbix-web-2.2.5-1.el6.noar [# ] 11/11
Installing : zabbix-web-2.2.5-1.el6.noar [## ] 11/11
Installing : zabbix-web-2.2.5-1.el6.noar [### ] 11/11
Installing : zabbix-web-2.2.5-1.el6.noar [#### ] 11/11
Installing : zabbix-web-2.2.5-1.el6.noar [##### ] 11/11
Installing : zabbix-web-2.2.5-1.el6.noar [###### ] 11/11
Installing : zabbix-web-2.2.5-1.el6.noar [####### ] 11/11
Installing : zabbix-web-2.2.5-1.el6.noar [######## ] 11/11
Installing : zabbix-web-2.2.5-1.el6.noar [######### ] 11/11
Installing : zabbix-web-2.2.5-1.el6.noar [########## ] 11/11
Installing : zabbix-web-2.2.5-1.el6.noar [########### ] 11/11
Installing : zabbix-web-2.2.5-1.el6.noar [############ ] 11/11
Installing : zabbix-web-2.2.5-1.el6.noar [############# ] 11/11
Installing : zabbix-web-2.2.5-1.el6.noar [############## ] 11/11
Installing : zabbix-web-2.2.5-1.el6.noar [############### ] 11/11
Installing : zabbix-web-2.2.5-1.el6.noar [################ ] 11/11
Installing : zabbix-web-2.2.5-1.el6.noar [################# ] 11/11
Installing : zabbix-web-2.2.5-1.el6.noar [################## ] 11/11
Installing : zabbix-web-2.2.5-1.el6.noar [################### ] 11/11
Installing : zabbix-web-2.2.5-1.el6.noar [#################### ] 11/11
Installing : zabbix-web-2.2.5-1.el6.noar [##################### ] 11/11
Installing : zabbix-web-2.2.5-1.el6.noar [###################### ] 11/11
Installing : zabbix-web-2.2.5-1.el6.noar [####################### ] 11/11
Installing : zabbix-web-2.2.5-1.el6.noar [######################## ] 11/11
Installing : zabbix-web-2.2.5-1.el6.noar [######################### ] 11/11
Installing : zabbix-web-2.2.5-1.el6.noar [########################## ] 11/11
Installing : zabbix-web-2.2.5-1.el6.noar [########################### ] 11/11
Installing : zabbix-web-2.2.5-1.el6.noarch 11/11
Verifying : iksemel-1.4-2.el6.x86_64 1/11
Verifying : php-mbstring-5.3.3-27.el6_5.x86_64 2/11
Verifying : zabbix-web-2.2.5-1.el6.noarch 3/11
Verifying : OpenIPMI-libs-2.0.16-14.el6.x86_64 4/11
Verifying : zabbix-2.2.5-1.el6.x86_64 5/11
Verifying : zabbix-web-mysql-2.2.5-1.el6.noarch 6/11
Verifying : fping-2.4b2-16.el6.x86_64 7/11
Verifying : zabbix-server-mysql-2.2.5-1.el6.x86_64 8/11
Verifying : php-mysql-5.3.3-27.el6_5.x86_64 9/11
Verifying : zabbix-server-2.2.5-1.el6.x86_64 10/11
Verifying : php-bcmath-5.3.3-27.el6_5.x86_64 11/11
Installed:
zabbix-server-mysql.x86_64 0:2.2.5-1.el6
zabbix-web-mysql.noarch 0:2.2.5-1.el6
Dependency Installed:
OpenIPMI-libs.x86_64 0:2.0.16-14.el6 fping.x86_64 0:2.4b2-16.el6
iksemel.x86_64 0:1.4-2.el6 php-bcmath.x86_64 0:5.3.3-27.el6_5
php-mbstring.x86_64 0:5.3.3-27.el6_5 php-mysql.x86_64 0:5.3.3-27.el6_5
zabbix.x86_64 0:2.2.5-1.el6 zabbix-server.x86_64 0:2.2.5-1.el6
zabbix-web.noarch 0:2.2.5-1.el6
Complete!
]0;root@rick:~[root@rick ~]# yum install zabbix-agent ###安装zabbix agent###
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirrors.btte.net
* extras: mirrors.btte.net
* updates: mirrors.btte.net
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package zabbix-agent.x86_64 0:2.2.5-1.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
zabbix-agent x86_64 2.2.5-1.el6 zabbix 157 k
Transaction Summary
================================================================================
Install 1 Package(s)
Total download size: 157 k
Installed size: 513 k
Is this ok [y/N]: y
Downloading Packages:
zabbix-agent-2.2.5-1.el6. 6% [= ] 0.0 B/s | 11 kB --:-- ETA
zabbix-agent-2.2.5-1.el6. 13% [== ] 7.8 kB/s | 22 kB 00:17 ETA
zabbix-agent-2.2.5-1.el6. 95% [============== ] 33 kB/s | 149 kB 00:00 ETA
zabbix-agent-2.2.5-1.el6.x86_64.rpm | 157 kB 00:01
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : zabbix-agent-2.2.5-1.el6.x86 [ ] 1/1
Installing : zabbix-agent-2.2.5-1.el6.x86 [#### ] 1/1
Installing : zabbix-agent-2.2.5-1.el6.x86 [####### ] 1/1
Installing : zabbix-agent-2.2.5-1.el6.x86 [########### ] 1/1
Installing : zabbix-agent-2.2.5-1.el6.x86 [############# ] 1/1
Installing : zabbix-agent-2.2.5-1.el6.x86 [################# ] 1/1
Installing : zabbix-agent-2.2.5-1.el6.x86 [#################### ] 1/1
Installing : zabbix-agent-2.2.5-1.el6.x86 [######################## ] 1/1
Installing : zabbix-agent-2.2.5-1.el6.x86 [########################### ] 1/1
Installing : zabbix-agent-2.2.5-1.el6.x86 [############################ ] 1/1
Installing : zabbix-agent-2.2.5-1.el6.x86_64 1/1
Verifying : zabbix-agent-2.2.5-1.el6.x86_64 1/1
Installed:
zabbix-agent.x86_64 0:2.2.5-1.el6
Complete!
]0;root@rick:~[root@rick ~]# yum install mysql mysql-server ###安装mysql###
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirrors.btte.net
* extras: mirrors.btte.net
* updates: mirrors.btte.net
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package mysql.x86_64 0:5.1.73-3.el6_5 will be installed
---> Package mysql-server.x86_64 0:5.1.73-3.el6_5 will be installed
--> Processing Dependency: perl-DBD-MySQL for package: mysql-server-5.1.73-3.el6_5.x86_64
--> Running transaction check
---> Package perl-DBD-MySQL.x86_64 0:4.013-3.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
mysql x86_64 5.1.73-3.el6_5 updates 894 k
mysql-server x86_64 5.1.73-3.el6_5 updates 8.6 M
Installing for dependencies:
perl-DBD-MySQL x86_64 4.013-3.el6 base 134 k
Transaction Summary
================================================================================
Install 3 Package(s)
Total download size: 9.6 M
Installed size: 27 M
Is this ok [y/N]: y
Downloading Packages:
(1/3): mysql-5.1.73-3. (3%) 40% [===== ] 0.0 B/s | 360 kB --:-- ETA
(1/3): mysql-5.1.73-3. (8%) 97% [============-] 838 kB/s | 875 kB 00:00 ETA
(1/3): mysql-5.1.73-3.el6_5.x86_64.rpm | 894 kB 00:00
(2/3): mysql-server-5. (14%) 6% [- ] 0.0 B/s | 569 kB --:-- ETA
(2/3): mysql-server-5. (15%) 6% [- ] 62 kB/s | 610 kB 02:11 ETA
(2/3): mysql-server-5. (18%) 10% [= ] 127 kB/s | 961 kB 01:01 ETA
(2/3): mysql-server-5. (21%) 13% [=- ] 164 kB/s | 1.2 MB 00:46 ETA
(2/3): mysql-server-5. (23%) 16% [=- ] 202 kB/s | 1.4 MB 00:36 ETA
(2/3): mysql-server-5. (25%) 18% [== ] 230 kB/s | 1.6 MB 00:31 ETA
(2/3): mysql-server-5. (27%) 20% [== ] 252 kB/s | 1.8 MB 00:27 ETA
(2/3): mysql-server-5. (29%) 22% [==- ] 274 kB/s | 2.0 MB 00:24 ETA
(2/3): mysql-server-5. (31%) 24% [==- ] 290 kB/s | 2.1 MB 00:22 ETA
(2/3): mysql-server-5. (32%) 26% [=== ] 305 kB/s | 2.3 MB 00:21 ETA
(2/3): mysql-server-5. (34%) 28% [=== ] 324 kB/s | 2.5 MB 00:19 ETA
(2/3): mysql-server-5. (36%) 31% [===- ] 347 kB/s | 2.7 MB 00:17 ETA
(2/3): mysql-server-5. (38%) 32% [===- ] 357 kB/s | 2.8 MB 00:16 ETA
(2/3): mysql-server-5. (40%) 34% [==== ] 365 kB/s | 3.0 MB 00:15 ETA
(2/3): mysql-server-5. (42%) 36% [==== ] 383 kB/s | 3.2 MB 00:14 ETA
(2/3): mysql-server-5. (44%) 39% [====- ] 402 kB/s | 3.4 MB 00:13 ETA
(2/3): mysql-server-5. (45%) 41% [====- ] 408 kB/s | 3.5 MB 00:12 ETA
(2/3): mysql-server-5. (47%) 42% [===== ] 413 kB/s | 3.7 MB 00:12 ETA
(2/3): mysql-server-5. (49%) 45% [===== ] 426 kB/s | 3.9 MB 00:11 ETA
(2/3): mysql-server-5. (51%) 47% [=====- ] 438 kB/s | 4.1 MB 00:10 ETA
(2/3): mysql-server-5. (52%) 48% [=====- ] 425 kB/s | 4.1 MB 00:10 ETA
(2/3): mysql-server-5. (53%) 49% [=====- ] 421 kB/s | 4.2 MB 00:10 ETA
(2/3): mysql-server-5. (54%) 50% [====== ] 423 kB/s | 4.4 MB 00:10 ETA
(2/3): mysql-server-5. (56%) 52% [====== ] 427 kB/s | 4.5 MB 00:09 ETA
(2/3): mysql-server-5. (57%) 54% [======- ] 435 kB/s | 4.7 MB 00:09 ETA
(2/3): mysql-server-5. (60%) 57% [======- ] 456 kB/s | 4.9 MB 00:08 ETA
(2/3): mysql-server-5. (62%) 59% [======= ] 477 kB/s | 5.2 MB 00:07 ETA
(2/3): mysql-server-5. (65%) 62% [=======- ] 493 kB/s | 5.4 MB 00:06 ETA
(2/3): mysql-server-5. (66%) 64% [=======- ] 497 kB/s | 5.5 MB 00:06 ETA
(2/3): mysql-server-5. (67%) 65% [=======- ] 485 kB/s | 5.7 MB 00:06 ETA
(2/3): mysql-server-5. (70%) 69% [======== ] 514 kB/s | 6.0 MB 00:05 ETA
(2/3): mysql-server-5. (72%) 70% [========- ] 516 kB/s | 6.1 MB 00:04 ETA
(2/3): mysql-server-5. (74%) 72% [========- ] 517 kB/s | 6.3 MB 00:04 ETA
(2/3): mysql-server-5. (75%) 74% [========- ] 520 kB/s | 6.4 MB 00:04 ETA
(2/3): mysql-server-5. (78%) 77% [========= ] 532 kB/s | 6.7 MB 00:03 ETA
(2/3): mysql-server-5. (80%) 79% [=========- ] 533 kB/s | 6.8 MB 00:03 ETA
(2/3): mysql-server-5. (81%) 81% [=========- ] 533 kB/s | 7.0 MB 00:03 ETA
(2/3): mysql-server-5. (83%) 83% [=========- ] 536 kB/s | 7.2 MB 00:02 ETA
(2/3): mysql-server-5. (85%) 85% [========== ] 545 kB/s | 7.4 MB 00:02 ETA
(2/3): mysql-server-5. (87%) 87% [==========- ] 547 kB/s | 7.6 MB 00:01 ETA
(2/3): mysql-server-5. (89%) 89% [==========- ] 547 kB/s | 7.7 MB 00:01 ETA
(2/3): mysql-server-5. (91%) 91% [=========== ] 550 kB/s | 7.9 MB 00:01 ETA
(2/3): mysql-server-5. (93%) 93% [=========== ] 556 kB/s | 8.1 MB 00:00 ETA
(2/3): mysql-server-5. (95%) 96% [===========-] 559 kB/s | 8.3 MB 00:00 ETA
(2/3): mysql-server-5. (96%) 98% [===========-] 558 kB/s | 8.5 MB 00:00 ETA
(2/3): mysql-server-5. (98%) 99% [===========-] 557 kB/s | 8.6 MB 00:00 ETA
(2/3): mysql-server-5.1.73-3.el6_5.x86_64.rpm | 8.6 MB 00:14
(3/3): perl-DBD-MySQL-4.013-3.el6.x86_64.rpm | 134 kB 00:00
--------------------------------------------------------------------------------
Total 629 kB/s | 9.6 MB 00:15
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : mysql-5.1.73-3.el6_5.x86_64 [ ] 1/3
Installing : mysql-5.1.73-3.el6_5.x86_64 [# ] 1/3
Installing : mysql-5.1.73-3.el6_5.x86_64 [## ] 1/3
Installing : mysql-5.1.73-3.el6_5.x86_64 [### ] 1/3
Installing : mysql-5.1.73-3.el6_5.x86_64 [#### ] 1/3
Installing : mysql-5.1.73-3.el6_5.x86_64 [##### ] 1/3
Installing : mysql-5.1.73-3.el6_5.x86_64 [###### ] 1/3
Installing : mysql-5.1.73-3.el6_5.x86_64 [####### ] 1/3
Installing : mysql-5.1.73-3.el6_5.x86_64 [######## ] 1/3
Installing : mysql-5.1.73-3.el6_5.x86_64 [######### ] 1/3
Installing : mysql-5.1.73-3.el6_5.x86_64 [########## ] 1/3
Installing : mysql-5.1.73-3.el6_5.x86_64 [########### ] 1/3
Installing : mysql-5.1.73-3.el6_5.x86_64 [############ ] 1/3
Installing : mysql-5.1.73-3.el6_5.x86_64 [############# ] 1/3
Installing : mysql-5.1.73-3.el6_5.x86_64 [############## ] 1/3
Installing : mysql-5.1.73-3.el6_5.x86_64 [############### ] 1/3
Installing : mysql-5.1.73-3.el6_5.x86_64 [################ ] 1/3
Installing : mysql-5.1.73-3.el6_5.x86_64 [################# ] 1/3
Installing : mysql-5.1.73-3.el6_5.x86_64 [################## ] 1/3
Installing : mysql-5.1.73-3.el6_5.x86_64 [################### ] 1/3
Installing : mysql-5.1.73-3.el6_5.x86_64 [#################### ] 1/3
Installing : mysql-5.1.73-3.el6_5.x86_64 [##################### ] 1/3
Installing : mysql-5.1.73-3.el6_5.x86_64 [###################### ] 1/3
Installing : mysql-5.1.73-3.el6_5.x86_64 [####################### ] 1/3
Installing : mysql-5.1.73-3.el6_5.x86_64 [######################## ] 1/3
Installing : mysql-5.1.73-3.el6_5.x86_64 [######################### ] 1/3
Installing : mysql-5.1.73-3.el6_5.x86_64 [########################## ] 1/3
Installing : mysql-5.1.73-3.el6_5.x86_64 [########################### ] 1/3
Installing : mysql-5.1.73-3.el6_5.x86_64 [############################ ] 1/3
Installing : mysql-5.1.73-3.el6_5.x86_64 [############################# ] 1/3
Installing : mysql-5.1.73-3.el6_5.x86_64 1/3
Installing : perl-DBD-MySQL-4.013-3.el6.x [ ] 2/3
Installing : perl-DBD-MySQL-4.013-3.el6.x [#### ] 2/3
Installing : perl-DBD-MySQL-4.013-3.el6.x [###### ] 2/3
Installing : perl-DBD-MySQL-4.013-3.el6.x [####### ] 2/3
Installing : perl-DBD-MySQL-4.013-3.el6.x [############# ] 2/3
Installing : perl-DBD-MySQL-4.013-3.el6.x [################## ] 2/3
Installing : perl-DBD-MySQL-4.013-3.el6.x [####################### ] 2/3
Installing : perl-DBD-MySQL-4.013-3.el6.x [########################## ] 2/3
Installing : perl-DBD-MySQL-4.013-3.el6.x [############################ ] 2/3
Installing : perl-DBD-MySQL-4.013-3.el6.x86_64 2/3
Installing : mysql-server-5.1.73-3.el6_5. [ ] 3/3
Installing : mysql-server-5.1.73-3.el6_5. [# ] 3/3
Installing : mysql-server-5.1.73-3.el6_5. [## ] 3/3
Installing : mysql-server-5.1.73-3.el6_5. [### ] 3/3
Installing : mysql-server-5.1.73-3.el6_5. [#### ] 3/3
Installing : mysql-server-5.1.73-3.el6_5. [##### ] 3/3
Installing : mysql-server-5.1.73-3.el6_5. [###### ] 3/3
Installing : mysql-server-5.1.73-3.el6_5. [####### ] 3/3
Installing : mysql-server-5.1.73-3.el6_5. [######## ] 3/3
Installing : mysql-server-5.1.73-3.el6_5. [######### ] 3/3
Installing : mysql-server-5.1.73-3.el6_5. [########## ] 3/3
Installing : mysql-server-5.1.73-3.el6_5. [########### ] 3/3
Installing : mysql-server-5.1.73-3.el6_5. [############ ] 3/3
Installing : mysql-server-5.1.73-3.el6_5. [############# ] 3/3
Installing : mysql-server-5.1.73-3.el6_5. [############## ] 3/3
Installing : mysql-server-5.1.73-3.el6_5. [############### ] 3/3
Installing : mysql-server-5.1.73-3.el6_5. [################ ] 3/3
Installing : mysql-server-5.1.73-3.el6_5. [################# ] 3/3
Installing : mysql-server-5.1.73-3.el6_5. [################## ] 3/3
Installing : mysql-server-5.1.73-3.el6_5. [################### ] 3/3
Installing : mysql-server-5.1.73-3.el6_5. [#################### ] 3/3
Installing : mysql-server-5.1.73-3.el6_5. [##################### ] 3/3
Installing : mysql-server-5.1.73-3.el6_5. [###################### ] 3/3
Installing : mysql-server-5.1.73-3.el6_5. [####################### ] 3/3
Installing : mysql-server-5.1.73-3.el6_5. [######################## ] 3/3
Installing : mysql-server-5.1.73-3.el6_5. [######################### ] 3/3
Installing : mysql-server-5.1.73-3.el6_5. [########################## ] 3/3
Installing : mysql-server-5.1.73-3.el6_5. [########################### ] 3/3
Installing : mysql-server-5.1.73-3.el6_5. [############################ ] 3/3
Installing : mysql-server-5.1.73-3.el6_5.x86_64 3/3
Verifying : perl-DBD-MySQL-4.013-3.el6.x86_64 1/3
Verifying : mysql-server-5.1.73-3.el6_5.x86_64 2/3
Verifying : mysql-5.1.73-3.el6_5.x86_64 3/3
Installed:
mysql.x86_64 0:5.1.73-3.el6_5 mysql-server.x86_64 0:5.1.73-3.el6_5
Dependency Installed:
perl-DBD-MySQL.x86_64 0:4.013-3.el6
Complete!
]0;root@rick:~[root@rick ~]# service mysqld start ###启动mysql###
Initializing MySQL database: WARNING: The host 'rick' could not be looked up with resolveip.
This probably means that your libc libraries are not 100 % compatible
with this binary MySQL version. The MySQL daemon, mysqld, should work
normally with the exception that host name resolving will not work.
This means that you should use IP addresses instead of hostnames
when specifying MySQL privileges !
Installing MySQL system tables...
OK
Filling help tables...
OK
To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h rick password 'new-password'
Alternatively you can run:
/usr/bin/mysql_secure_installation
which will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.
See the manual for more instructions.
You can start the MySQL daemon with:
cd /usr ; /usr/bin/mysqld_safe &
You can test the MySQL daemon with mysql-test-run.pl
cd /usr/mysql-test ; perl mysql-test-run.pl
Please report any problems with the /usr/bin/mysqlbug script!
[60G[[0;32m OK [0;39m]
Starting mysqld: [60G[[0;32m OK [0;39m]
]0;root@rick:~[root@rick ~]#
]0;root@rick:~[root@rick ~]# mysql -u root -p ###在mysql上创建zabbix数据库和用户zabbix密码zabbix###
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.1.73 Source distribution
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
[?1034hmysql> create database zabbix character set utf8 collate utf8_bin; ###创建数据库zabbix格式utf8_bin###
Query OK, 1 row affected (0.00 sec)
mysql> grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbi ###将数据库zabbix的所有权限给用户zabbix密码为zabbix###
x';
Query OK, 0 rows affected (0.01 sec)
mysql> exit ###退出###
Bye
###Import initial schema and data 这个不知道该怎么说了,但这是很重还要的一步否则根本就行不下去。。。连不上数据库。。。我吃过亏了###
]0;root@rick:/usr/share/doc/zabbix-2.2.5[root@rick zabbix-2.2.5]# cd /usr/share/doc/zabbix-server-mysql-2.2.5/create/
]0;root@rick:/usr/share/doc/zabbix-server-mysql-2.2.5/create[root@rick create]# mysql -uroot zabbix < schema.sql
]0;root@rick:/usr/share/doc/zabbix-server-mysql-2.2.5/create[root@rick create]# mysql -uroot zabbix < p_w_picpaths.sql
]0;root@rick:/usr/share/doc/zabbix-server-mysql-2.2.5/create[root@rick create]# mysql -uroot zabbix < data.sql
# vi /etc/zabbix/zabbix_server.conf ###用vi编辑zabbix.conf###
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=zabbix
下面这2个参数是在分析zabbix_server.log时系统告诉你的会告诉你out of memory的错误让你调整否则zabbix-server的服务会自动停止****** vmsky上的大牛教的
VMwareCacheSize=80M
CacheSize=256M
要注意需要修改zabbix_server.conf, 把StartVMwareCollectors设置成大于0缺省为0是不会从vmware抓数据的。
# service zabbix-server start ###启动zabbix-server###
# vi /etc/httpd/conf.d/zabbix.conf ###编辑zabbix.conf时区一定要弄好###
php_value max_execution_time 300
php_value memory_limit 128M
php_value post_max_size 16M
php_value upload_max_filesize 2M
php_value max_input_time 300
php_value date.timezone Asia/Shanghai
# service httpd restart ###重启apache###
# chkconfig mysqld on ###设置mysqld为开机自动启动###
# chkconfig httpd on ###设置apache为开机自动启动###
# chkconfig zabbix-server on ###设置zabbix-server为开机自动启动###
# chkconfig iptables off ###设置iptables为开机自动启动当然你也可以不这么做的为了安全开启防火墙放通10050,10051两个端口###
# setsebool -P httpd_can_network_connect=true ###最好把SELINUX=disabled掉省的以后麻烦,又一次我没弄这个,没关selinux,居然不能用脚本发出邮件,及时设置777权限,依然log告诉我permission denny###
# yum install sendmail ###安装sendmail为以后邮件报警做准备###
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirrors.btte.net
* extras: mirrors.btte.net
* updates: mirrors.btte.net
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package sendmail.x86_64 0:8.14.4-8.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
sendmail x86_64 8.14.4-8.el6 base 717 k
Transaction Summary
================================================================================
Install 1 Package(s)
Total download size: 717 k
Installed size: 1.5 M
Is this ok [y/N]: y
Downloading Packages:
sendmail-8.14.4-8.el6.x86 62% [========= ] 0.0 B/s | 446 kB --:-- ETA
sendmail-8.14.4-8.el6.x86_64.rpm | 717 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : sendmail-8.14.4-8.el6.x86_64 [ ] 1/1
Installing : sendmail-8.14.4-8.el6.x86_64 [# ] 1/1
Installing : sendmail-8.14.4-8.el6.x86_64 [## ] 1/1
Installing : sendmail-8.14.4-8.el6.x86_64 [### ] 1/1
Installing : sendmail-8.14.4-8.el6.x86_64 [#### ] 1/1
Installing : sendmail-8.14.4-8.el6.x86_64 [###### ] 1/1
Installing : sendmail-8.14.4-8.el6.x86_64 [####### ] 1/1
Installing : sendmail-8.14.4-8.el6.x86_64 [######## ] 1/1
Installing : sendmail-8.14.4-8.el6.x86_64 [######### ] 1/1
Installing : sendmail-8.14.4-8.el6.x86_64 [########## ] 1/1
Installing : sendmail-8.14.4-8.el6.x86_64 [########### ] 1/1
Installing : sendmail-8.14.4-8.el6.x86_64 [############# ] 1/1
Installing : sendmail-8.14.4-8.el6.x86_64 [############## ] 1/1
Installing : sendmail-8.14.4-8.el6.x86_64 [############### ] 1/1
Installing : sendmail-8.14.4-8.el6.x86_64 [################ ] 1/1
Installing : sendmail-8.14.4-8.el6.x86_64 [################# ] 1/1
Installing : sendmail-8.14.4-8.el6.x86_64 [################## ] 1/1
Installing : sendmail-8.14.4-8.el6.x86_64 [#################### ] 1/1
Installing : sendmail-8.14.4-8.el6.x86_64 [##################### ] 1/1
Installing : sendmail-8.14.4-8.el6.x86_64 [###################### ] 1/1
Installing : sendmail-8.14.4-8.el6.x86_64 [####################### ] 1/1
Installing : sendmail-8.14.4-8.el6.x86_64 [######################## ] 1/1
Installing : sendmail-8.14.4-8.el6.x86_64 [######################### ] 1/1
Installing : sendmail-8.14.4-8.el6.x86_64 [########################## ] 1/1
Installing : sendmail-8.14.4-8.el6.x86_64 [########################### ] 1/1
Installing : sendmail-8.14.4-8.el6.x86_64 [############################ ] 1/1
Installing : sendmail-8.14.4-8.el6.x86_64 1/1
Verifying : sendmail-8.14.4-8.el6.x86_64 1/1
Installed:
sendmail.x86_64 0:8.14.4-8.el6
Complete!
登陆,配置 http:192.168.111.133/zabbix
全部合适。。。
输入用户名 密码 还有数据库 都是zabbix
直接下一步
下一步
完成
用户名Admin 密码zabbix
一切OK。。。
我知道你肯定想第一时间就收到报警,这是监控最重要的作用之一,也是运维的精髓所在,在一切的一切之前发现问题,解决它,省的你操心。。。这里我们用139邮件报警,因为我水平差不会写脚本,所以把邮件只想139邮箱,139邮箱一收到报警就会给我短信。。。偷个懒,实在不会写脚本,也没短信平台。。。
你需要设置三个地方
第一个地方administration---》media types--》email
我之前安装了sendmail 所以 smtp server 127.0.0.1
我主机叫rick,用户是zabbix
第二个地方
configuration--》actions--》Report problems to Zabbix administrators--》
默认的就好使,如下图。。。
第三步,administration--》admin--》配置admin的报警邮箱 和 级别,别跟我似的都选,有啥事都发短信 或者不停发短信 也不好。。。
当发生报警事件
monitoring--》event--》action就会显示, 刚才的报警动作执行了没。。。很快的,如果是failed,就得去查日志 找原因了。。。
查看monitoring--》graphs--》选择你要看到主机的参数
如果你要即可网络设备怎么办,你可以有很多选择,其中之一snmp 配置如下图
hastname随便写,我喜欢写交换机的名字和地址
snmp interface 一定要写交换机的mgt ip
template是用什么模板监控这个交换机,zabbix提供的snmp都是公共使用的,放之四海皆准建议选择snmp device / processors
还可以选择其他热心人编写的,如cisco 2960的temp , 可这个模板也许支队2960有效,对3560无效,但也可能有效。。。或者根本如法导入(在templates中import xml格式的模板文件),都会提示的。。。
macros 宏 最重要的地方,你看这个模板community字符串,一定要和你的交换机的snmp字符串一样啊。。。
我的是wahaha
监控哪一个哪一个就会是绿色的,例如zabbix server是centos 上面安装了zabbix agent 所以用zabbix agent监控他,Z就是绿色的
同理用snmp 监控交换机,SNMP就会使绿色的,如果是红色的,说明不对,鼠标放上去,他会告诉你原因。。。
刚才说了zabbix agent有很多,可以对各种操作系统例如win mac AIX freddbsd等等
安装上去就可以了
看看win的吧
1. 在 zabbix 主 页 上 下 载 windows agent 的 安 装 文 件 在 :
http://www.zabbix.com/download.php,找到windows的agent下载
2. 下载后解压缩将x64里面的zabbix_agentd.exe和zabbix_get.exe和zabbix_sender.exe三
个文件放到C盘根目录,并创建zabbix_agentd.conf和zabbix_agentd.log
3. 创建zabbix_agentd.conf
LogFile=c:\zabbix_agentd.log agent日志文件
LogFileSize=100 设置日志文件大小这里是100MB 默认是MB
Server=192.168.111.114 zabbix监控主机IP地址
ListenPort=10050 通讯端口
ServerActive=127.0.0.1 被监控机的IP 地址
Hostname=wahaha 在添加Host时命名机器名要和这里的Hostname对应上
4. windows环境内客户端管理
zabbix_agentd.exe -c c:\zabbix_agentd.conf –i 安装zabbixagent
zabbix_agentd.exe -c c:\zabbix_agentd.conf –s 启动zabbixagent
zabbix_agentd.exe -c c:\zabbix_agentd.conf –x 停止zabbixagent
-c :指定配置文件所有位置
-i :安装客户端
-s :启动客户端
-x :停止客户端
-d :卸载客户端
顺便说一下
如果这个win上有vcenter 你要添加 vcenter的模板,还要在macro 中加入这三个参数
{$PASSWORD}=admin@123
{$URL}=https://192.168.111.114/sdk
{$USERNAME}=admin
事实上选择的vcenter 都是 ova模板部署上去的都是suse,我想我们更需要在linux上装个suse能人的zabbix agent才能行吧。。。
灵活运用吧,以后试一下
给linux 主机添加agent服务使用rpm包完成
1. 从官网上下载zabbix-2.2.0-1.el6.x86_64.rpm zabbix-agent-2.2.0-1.el6.x86_64.rpm 这个两个
rpm包
2. 将这个两个文件放到linux 服务器的/tmp 目录下,使用yum –y localinstall *.rpm 来安装
zabbix_agent
3. 在/etc/rc.d/init.d目录可以看到zabbix_agent,chkconfig zabbix_agent on作为开机项
如果不行,可能你没有关闭linux 防火墙
执行serivce iptables stop
你依然需要设置zabbix agent 尤其是里面的hostname要对应上啊,如图
如果是ubuntu的话 你恐怕的下载deb的安装吧了,版本一定要对哦
不知不觉我的zabbix已经是2.2.5的了,不过中文支持还是很弱的。。。
最后说一下,排错,如果以后用zabbix有什么问题,我都是用他提示的问题然后google,然后就有解决方法了,啦啦啦。。。
参考文档 https://www.zabbix.com/documentation/2.2/manual/installation/install_from_packages
好友黎哥。。。
vmsky上的大牛。。。
不尽之处,请多指教。。。
http://server.51cto.com/sCollege-299411.htm
https://www.zabbix.com/documentation/3.0/manual/appendix/install/db_scripts
https://www.zabbix.com/documentation/3.0/manual/installation/install_from_packages
http://www.iyunv.com/forum.php?mod=viewthread&tid=32511
转载于:https://blog.51cto.com/ksitigarbha/1391369