前言
Zabbix 是一个开源的企业级分布式监控解决方案
非常灵活与强大,有很多优秀 特性 ,布署与管理也相对简单,下面分享一下它的基础操作
详细操作可以参考 官方文档
Tip: 当前的最新稳定版是 Zabbix 2.4
概要
获取zabbix仓库
代码语言:javascript复制[root@zbx-target src]# wget http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/zabbix-release-2.4-1.el6.noarch.rpm
--2015-12-14 15:23:26-- http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/zabbix-release-2.4-1.el6.noarch.rpm
Resolving repo.zabbix.com... 87.110.183.174
Connecting to repo.zabbix.com|87.110.183.174|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 11296 (11K) [application/x-redhat-package-manager]
Saving to: “zabbix-release-2.4-1.el6.noarch.rpm”
100%[==============================================================================>] 11,296 40.2K/s in 0.3s
2015-12-14 15:23:27 (40.2 KB/s) - “zabbix-release-2.4-1.el6.noarch.rpm” saved [11296/11296]
[root@zbx-target src]# ll zabbix-release-2.4-1.el6.noarch.rpm
-rw-r--r--. 1 root root 11296 Sep 11 2014 zabbix-release-2.4-1.el6.noarch.rpm
[root@zbx-target src]# rpm -ivh zabbix-release-2.4-1.el6.noarch.rpm
warning: zabbix-release-2.4-1.el6.noarch.rpm: Header V4 DSA/SHA1 Signature, key ID 79ea5ed4: NOKEY
Preparing... ########################################### [100%]
1:zabbix-release ########################################### [100%]
[root@zbx-target src]#
使用yum安装zabbix-agent
代码语言:javascript复制[root@zbx-target src]# yum list all | grep zabbix
zabbix-release.noarch 2.4-1.el6 installed
fping.x86_64 2.4b2-16.el6 zabbix-non-supported
iksemel.x86_64 1.4-2.el6 zabbix-non-supported
iksemel-devel.x86_64 1.4-2.el6 zabbix-non-supported
iksemel-utils.x86_64 1.4-2.el6 zabbix-non-supported
libssh2.x86_64 1.4.2-2.el6 zabbix-non-supported
libssh2-devel.x86_64 1.4.2-2.el6 zabbix-non-supported
libssh2-docs.noarch 1.4.2-2.el6 zabbix-non-supported
perl-Config-IniFiles.noarch 2.72-2.el6 zabbix-non-supported
snmptt.noarch 1.4-1.el6 zabbix-non-supported
zabbix.x86_64 2.4.7-1.el6 zabbix
zabbix-agent.x86_64 2.4.7-1.el6 zabbix
zabbix-get.x86_64 2.4.7-1.el6 zabbix
zabbix-java-gateway.x86_64 2.4.7-1.el6 zabbix
zabbix-proxy.x86_64 2.4.7-1.el6 zabbix
zabbix-proxy-mysql.x86_64 2.4.7-1.el6 zabbix
zabbix-proxy-pgsql.x86_64 2.4.7-1.el6 zabbix
zabbix-proxy-sqlite3.x86_64 2.4.7-1.el6 zabbix
zabbix-sender.x86_64 2.4.7-1.el6 zabbix
zabbix-server.x86_64 2.4.7-1.el6 zabbix
zabbix-server-mysql.x86_64 2.4.7-1.el6 zabbix
zabbix-server-pgsql.x86_64 2.4.7-1.el6 zabbix
zabbix-web.noarch 2.4.7-1.el6 zabbix
zabbix-web-japanese.noarch 2.4.7-1.el6 zabbix
zabbix-web-mysql.noarch 2.4.7-1.el6 zabbix
zabbix-web-pgsql.noarch 2.4.7-1.el6 zabbix
[root@zbx-target src]# yum install zabbix-agent.x86_64
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: mirrors.skyshe.cn
* extras: mirrors.skyshe.cn
* updates: mirrors.skyshe.cn
Resolving Dependencies
--> Running transaction check
---> Package zabbix-agent.x86_64 0:2.4.7-1.el6 will be installed
--> Processing Dependency: zabbix for package: zabbix-agent-2.4.7-1.el6.x86_64
--> Running transaction check
---> Package zabbix.x86_64 0:2.4.7-1.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
========================================================================================================================
Package Arch Version Repository Size
========================================================================================================================
Installing:
zabbix-agent x86_64 2.4.7-1.el6 zabbix 173 k
Installing for dependencies:
zabbix x86_64 2.4.7-1.el6 zabbix 163 k
Transaction Summary
========================================================================================================================
Install 2 Package(s)
Total download size: 336 k
Installed size: 1.1 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): zabbix-2.4.7-1.el6.x86_64.rpm | 163 kB 00:30
(2/2): zabbix-agent-2.4.7-1.el6.x86_64.rpm | 173 kB 00:01
-------------------------------------------------------------------------------------------------------------------------
Total 8.9 kB/s | 336 kB 00:37
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.4-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.4.7-1.el6.x86_64 1/2
Installing : zabbix-agent-2.4.7-1.el6.x86_64 2/2
Verifying : zabbix-agent-2.4.7-1.el6.x86_64 1/2
Verifying : zabbix-2.4.7-1.el6.x86_64 2/2
Installed:
zabbix-agent.x86_64 0:2.4.7-1.el6
Dependency Installed:
zabbix.x86_64 0:2.4.7-1.el6
Complete!
[root@zbx-target src]#