首页 技术 正文
技术 2022年11月23日
0 收藏 332 点赞 4,851 浏览 51405 个字

              运维监控-基于yum的方式部署Zabbix Server 4.0 版本

                                       作者:尹正杰

版权声明:原创作品,谢绝转载!否则将追究法律责任。

一.如何选择zabbix版本

1>.打开zabbix官方网址(https://www.zabbix.com/

运维监控-基于yum的方式部署Zabbix Server 4.0 版本

2>.查看zabbix版本的生命周期(https://www.zabbix.com/life_cycle_and_release_policy

  如下图所示,如果还在使用zabbix2.2版本的小伙伴应该尽量往zabbix3.0 LTS或者zabbix4.0 LTS版本迁移。因为到今年年底,估计zabbix将停止对zabbix2.2版本的技术支持了!

运维监控-基于yum的方式部署Zabbix Server 4.0 版本

3>.选择zabbix版本

  看完上述官方的介绍,大家可以选择zabbix3.0也可以选择zabbix4.0。无论选择哪个版本,使用方法都大同小异。博主推荐部署比较新的版本,

  安装文档参考:https://www.zabbix.com/documentation/4.0/manual/installation

  关于zabbix 4.0新特性的可参考:https://www.zabbix.com/documentation/4.0/manual/introduction/whatsnew400

运维监控-基于yum的方式部署Zabbix Server 4.0 版本

  如上图所示关于zabbix部署文档如下(其实你打卡网页自己根据操作平台选择即可):

    zabbix3.0的部署文档可参考:https://www.zabbix.com/download?zabbix=3.0&os_distribution=centos&os_version=7&db=mysql

      zabbix4.0的部署文档可参考:https://www.zabbix.com/download?zabbix=4.0&os_distribution=centos&os_version=7&db=mysql

二.部署zabbix4.0.0服务器

1>.安装zabbix的yum源

[root@node101 ~]# ll /etc/yum.repos.d/
total
-rw-r--r--. root root Dec CentOS-Base.repo
-rw-r--r--. root root Dec CentOS-CR.repo
-rw-r--r--. root root Dec CentOS-Debuginfo.repo
-rw-r--r--. root root Dec CentOS-fasttrack.repo
-rw-r--r--. root root Dec CentOS-Media.repo
-rw-r--r--. root root Dec CentOS-Sources.repo
-rw-r--r--. root root Dec CentOS-Vault.repo
[root@node101 ~]#
[root@node101 ~]#
[root@node101 ~]# rpm -Uvh https://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-1.el7.noarch.rpm
Retrieving https://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-1.el7.noarch.rpm
warning: /var/tmp/rpm-tmp.CJNNNd: Header V4 RSA/SHA512 Signature, key ID a14fe591: NOKEY
Preparing... ################################# [%]
Updating / installing...
:zabbix-release-4.0-.el7 ################################# [%]
[root@node101 ~]#
[root@node101 ~]#
[root@node101 ~]# ll /etc/yum.repos.d/
total
-rw-r--r--. root root Dec CentOS-Base.repo
-rw-r--r--. root root Dec CentOS-CR.repo
-rw-r--r--. root root Dec CentOS-Debuginfo.repo
-rw-r--r--. root root Dec CentOS-fasttrack.repo
-rw-r--r--. root root Dec CentOS-Media.repo
-rw-r--r--. root root Dec CentOS-Sources.repo
-rw-r--r--. root root Dec CentOS-Vault.repo
-rw-r--r--. root root Oct : zabbix.repo        #发现没有,就是多出来这个yum配置文件!
[root@node101 ~]#
[root@node101 ~]#

[root@node101 ~]# rpm -Uvh https://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-1.el7.noarch.rpm

2>.将官方yum源的地址改为阿里云的地址

[root@node101 ~]# grep keepcache /etc/yum.conf
keepcache=
[root@node101 ~]#
[root@node101 ~]#
[root@node101 ~]# sed -i 's#keepcache=0#keepcache=1#g' /etc/yum.conf
[root@node101 ~]#
[root@node101 ~]# grep keepcache /etc/yum.conf
keepcache=
[root@node101 ~]#

[root@node101 ~]# sed -i ‘s#keepcache=0#keepcache=1#g’ /etc/yum.conf      #我们把安装zabbix的安装包保存起来,方便以后制作局域网的yum仓库

[root@node101 ~]# cat /etc/yum.repos.d/zabbix.repo         #这个源是官方地址,服务器在国外存放者,下载的时候速度可能会有点慢!
[zabbix]                                  #这个是zabbix模块
name=Zabbix Official Repository - $basearch
baseurl=http://repo.zabbix.com/zabbix/4.0/rhel/7/$basearch/
enabled=
gpgcheck=
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591[zabbix-non-supported]                          #这个是zabbix的基础支持模块
name=Zabbix Official Repository non-supported - $basearch
baseurl=http://repo.zabbix.com/non-supported/rhel/7/$basearch/
enabled=
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX
gpgcheck=
[root@node101 ~]#
[root@node101 ~]#
[root@node101 ~]#
[root@node101 ~]# cat /etc/yum.repos.d/zabbix.repo
[zabbix]
name=Zabbix Official Repository - $basearch
baseurl=https://mirrors.aliyun.com/zabbix/zabbix/4.0/rhel/7/$basearch/          #这里我们换成阿里云的镜像,目的就是为了在下载的时候速度稍微快一点
enabled=
gpgcheck=
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591[zabbix-non-supported]
name=Zabbix Official Repository non-supported - $basearch
baseurl=https://mirrors.aliyun.com/zabbix/non-supported/rhel/7/$basearch/        #换了上面的zabbix安装源地址,其组件地址也要记得换哟!
enabled=
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX
gpgcheck=
[root@node101 ~]#
[root@node101 ~]# yum list | grep zabbix                          #我们查看一下zabbix的源是否存在,我们仔细看一下,发现有zabbix4.0的安装包了!
zabbix-release.noarch 4.0-.el7 installed
fping.x86_64 3.10-.el7 zabbix-non-supported
iksemel.x86_64 1.4-.el7.centos zabbix-non-supported
iksemel-devel.x86_64 1.4-.el7.centos zabbix-non-supported
iksemel-utils.x86_64 1.4-.el7.centos zabbix-non-supported
pcp-export-pcp2zabbix.x86_64 4.1.-.el7_6 updates
pcp-export-zabbix-agent.x86_64 4.1.-.el7_6 updates
zabbix-agent.x86_64 4.0.-.el7 zabbix
zabbix-get.x86_64 4.0.-.el7 zabbix
zabbix-java-gateway.x86_64 4.0.-.el7 zabbix
zabbix-proxy-mysql.x86_64 4.0.-.el7 zabbix
zabbix-proxy-pgsql.x86_64 4.0.-.el7 zabbix
zabbix-proxy-sqlite3.x86_64 4.0.-.el7 zabbix
zabbix-sender.x86_64 4.0.-.el7 zabbix
zabbix-server-mysql.x86_64 4.0.-.el7 zabbix
zabbix-server-pgsql.x86_64 4.0.-.el7 zabbix
zabbix-web.noarch 4.0.-.el7 zabbix
zabbix-web-japanese.noarch 4.0.-.el7 zabbix
zabbix-web-mysql.noarch 4.0.-.el7 zabbix
zabbix-web-pgsql.noarch 4.0.-.el7 zabbix
[root@node101 ~]#

[root@node101 ~]# cat /etc/yum.repos.d/zabbix.repo

3>.安装Zabbix服务器,前端,代理

[root@node101 ~]# yum -y install zabbix-server-mysql zabbix-web-mysql zabbix-agent
Loaded plugins: fastestmirror
base | 3.6 kB ::
extras | 3.4 kB ::
updates | 3.4 kB ::
zabbix | 2.9 kB ::
zabbix-non-supported | B ::
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: ftp.sjtu.edu.cn
* updates: mirrors.nwsuaf.edu.cn
Resolving Dependencies
--> Running transaction check
---> Package zabbix-agent.x86_64 :4.0.-.el7 will be installed
---> Package zabbix-server-mysql.x86_64 :4.0.-.el7 will be installed
--> Processing Dependency: fping for package: zabbix-server-mysql-4.0.-.el7.x86_64
--> Processing Dependency: libnetsnmp.so.()(64bit) for package: zabbix-server-mysql-4.0.-.el7.x86_64
--> Processing Dependency: libiksemel.so.()(64bit) for package: zabbix-server-mysql-4.0.-.el7.x86_64
--> Processing Dependency: libOpenIPMIposix.so.()(64bit) for package: zabbix-server-mysql-4.0.-.el7.x86_64
--> Processing Dependency: libevent-2.0.so.()(64bit) for package: zabbix-server-mysql-4.0.-.el7.x86_64
--> Processing Dependency: libOpenIPMI.so.()(64bit) for package: zabbix-server-mysql-4.0.-.el7.x86_64
--> Processing Dependency: libodbc.so.()(64bit) for package: zabbix-server-mysql-4.0.-.el7.x86_64
---> Package zabbix-web-mysql.noarch :4.0.-.el7 will be installed
--> Processing Dependency: zabbix-web = 4.0.-.el7 for package: zabbix-web-mysql-4.0.-.el7.noarch
--> Processing Dependency: php-mysql for package: zabbix-web-mysql-4.0.-.el7.noarch
--> Running transaction check
---> Package OpenIPMI-libs.x86_64 :2.0.-.el7 will be installed
--> Processing Dependency: OpenIPMI-modalias = 2.0.-.el7 for package: OpenIPMI-libs-2.0.-.el7.x86_64
---> Package fping.x86_64 :3.10-.el7 will be installed
---> Package iksemel.x86_64 :1.4-.el7.centos will be installed
---> Package libevent.x86_64 :2.0.-.el7 will be installed
---> Package net-snmp-libs.x86_64 :5.7.-.el7 will be installed
---> Package php-mysql.x86_64 :5.4.-.el7 will be installed
--> Processing Dependency: php-pdo(x86-) = 5.4.-.el7 for package: php-mysql-5.4.-.el7.x86_64
---> Package unixODBC.x86_64 :2.3.-.el7 will be installed
--> Processing Dependency: libltdl.so.()(64bit) for package: unixODBC-2.3.-.el7.x86_64
---> Package zabbix-web.noarch :4.0.-.el7 will be installed
--> Processing Dependency: php >= 5.4 for package: zabbix-web-4.0.-.el7.noarch
--> Processing Dependency: httpd for package: zabbix-web-4.0.-.el7.noarch
--> Processing Dependency: php-gd for package: zabbix-web-4.0.-.el7.noarch
--> Processing Dependency: php-mbstring for package: zabbix-web-4.0.-.el7.noarch
--> Processing Dependency: dejavu-sans-fonts for package: zabbix-web-4.0.-.el7.noarch
--> Processing Dependency: php-bcmath for package: zabbix-web-4.0.-.el7.noarch
--> Processing Dependency: php-ldap for package: zabbix-web-4.0.-.el7.noarch
--> Processing Dependency: php-xml for package: zabbix-web-4.0.-.el7.noarch
--> Running transaction check
---> Package OpenIPMI-modalias.x86_64 :2.0.-.el7 will be installed
---> Package dejavu-sans-fonts.noarch :2.33-.el7 will be installed
--> Processing Dependency: dejavu-fonts-common = 2.33-.el7 for package: dejavu-sans-fonts-2.33-.el7.noarch
---> Package httpd.x86_64 :2.4.-.el7.centos will be installed
--> Processing Dependency: httpd-tools = 2.4.-.el7.centos for package: httpd-2.4.-.el7.centos.x86_64
--> Processing Dependency: /etc/mime.types for package: httpd-2.4.-.el7.centos.x86_64
--> Processing Dependency: libaprutil-.so.()(64bit) for package: httpd-2.4.-.el7.centos.x86_64
--> Processing Dependency: libapr-.so.()(64bit) for package: httpd-2.4.-.el7.centos.x86_64
---> Package libtool-ltdl.x86_64 :2.4.-.el7_3 will be installed
---> Package php.x86_64 :5.4.-.el7 will be installed
--> Processing Dependency: php-common(x86-) = 5.4.-.el7 for package: php-5.4.-.el7.x86_64
--> Processing Dependency: php-cli(x86-) = 5.4.-.el7 for package: php-5.4.-.el7.x86_64
--> Processing Dependency: libcrypto.so.(OPENSSL_1.0.2)(64bit) for package: php-5.4.-.el7.x86_64
---> Package php-bcmath.x86_64 :5.4.-.el7 will be installed
---> Package php-gd.x86_64 :5.4.-.el7 will be installed
--> Processing Dependency: libpng15.so.(PNG15_0)(64bit) for package: php-gd-5.4.-.el7.x86_64
--> Processing Dependency: libjpeg.so.(LIBJPEG_6.)(64bit) for package: php-gd-5.4.-.el7.x86_64
--> Processing Dependency: libt1.so.()(64bit) for package: php-gd-5.4.-.el7.x86_64
--> Processing Dependency: libpng15.so.()(64bit) for package: php-gd-5.4.-.el7.x86_64
--> Processing Dependency: libjpeg.so.()(64bit) for package: php-gd-5.4.-.el7.x86_64
--> Processing Dependency: libXpm.so.()(64bit) for package: php-gd-5.4.-.el7.x86_64
--> Processing Dependency: libX11.so.()(64bit) for package: php-gd-5.4.-.el7.x86_64
---> Package php-ldap.x86_64 :5.4.-.el7 will be installed
---> Package php-mbstring.x86_64 :5.4.-.el7 will be installed
---> Package php-pdo.x86_64 :5.4.-.el7 will be installed
---> Package php-xml.x86_64 :5.4.-.el7 will be installed
--> Processing Dependency: libxslt.so.(LIBXML2_1.0.24)(64bit) for package: php-xml-5.4.-.el7.x86_64
--> Processing Dependency: libxslt.so.(LIBXML2_1.0.22)(64bit) for package: php-xml-5.4.-.el7.x86_64
--> Processing Dependency: libxslt.so.(LIBXML2_1.0.18)(64bit) for package: php-xml-5.4.-.el7.x86_64
--> Processing Dependency: libxslt.so.(LIBXML2_1.0.13)(64bit) for package: php-xml-5.4.-.el7.x86_64
--> Processing Dependency: libxslt.so.(LIBXML2_1.0.11)(64bit) for package: php-xml-5.4.-.el7.x86_64
--> Processing Dependency: libxslt.so.()(64bit) for package: php-xml-5.4.-.el7.x86_64
--> Processing Dependency: libexslt.so.()(64bit) for package: php-xml-5.4.-.el7.x86_64
--> Running transaction check
---> Package apr.x86_64 :1.4.-.el7_4. will be installed
---> Package apr-util.x86_64 :1.5.-.el7 will be installed
---> Package dejavu-fonts-common.noarch :2.33-.el7 will be installed
--> Processing Dependency: fontpackages-filesystem for package: dejavu-fonts-common-2.33-.el7.noarch
---> Package httpd-tools.x86_64 :2.4.-.el7.centos will be installed
---> Package libX11.x86_64 :1.6.-.el7 will be installed
--> Processing Dependency: libX11-common >= 1.6.-.el7 for package: libX11-1.6.-.el7.x86_64
--> Processing Dependency: libxcb.so.()(64bit) for package: libX11-1.6.-.el7.x86_64
---> Package libXpm.x86_64 :3.5.-.el7 will be installed
---> Package libjpeg-turbo.x86_64 :1.2.-.el7 will be installed
---> Package libpng.x86_64 :1.5.-.el7_2 will be installed
---> Package libxslt.x86_64 :1.1.-.el7 will be installed
---> Package mailcap.noarch :2.1.-.el7 will be installed
---> Package openssl-libs.x86_64 :1.0.1e-.el7. will be updated
--> Processing Dependency: openssl-libs(x86-) = :1.0.1e-.el7. for package: :openssl-1.0.1e-.el7..x86_64
---> Package openssl-libs.x86_64 :1.0.2k-.el7 will be an update
---> Package php-cli.x86_64 :5.4.-.el7 will be installed
---> Package php-common.x86_64 :5.4.-.el7 will be installed
--> Processing Dependency: libzip.so.()(64bit) for package: php-common-5.4.-.el7.x86_64
---> Package t1lib.x86_64 :5.1.-.el7 will be installed
--> Running transaction check
---> Package fontpackages-filesystem.noarch :1.44-.el7 will be installed
---> Package libX11-common.noarch :1.6.-.el7 will be installed
---> Package libxcb.x86_64 :1.13-.el7 will be installed
--> Processing Dependency: libXau.so.()(64bit) for package: libxcb-1.13-.el7.x86_64
---> Package libzip.x86_64 :0.10.-.el7 will be installed
---> Package openssl.x86_64 :1.0.1e-.el7. will be updated
---> Package openssl.x86_64 :1.0.2k-.el7 will be an update
--> Running transaction check
---> Package libXau.x86_64 :1.0.-2.1.el7 will be installed
--> Finished Dependency ResolutionDependencies Resolved=======================================================================================================================================
Package Arch Version Repository Size
=======================================================================================================================================
Installing:
zabbix-agent x86_64 4.0.-.el7 zabbix k
zabbix-server-mysql x86_64 4.0.-.el7 zabbix 2.1 M
zabbix-web-mysql noarch 4.0.-.el7 zabbix 8.0 k
Installing for dependencies:
OpenIPMI-libs x86_64 2.0.-.el7 base k
OpenIPMI-modalias x86_64 2.0.-.el7 base k
apr x86_64 1.4.-.el7_4. base k
apr-util x86_64 1.5.-.el7 base k
dejavu-fonts-common noarch 2.33-.el7 base k
dejavu-sans-fonts noarch 2.33-.el7 base 1.4 M
fontpackages-filesystem noarch 1.44-.el7 base 9.9 k
fping x86_64 3.10-.el7 zabbix-non-supported k
httpd x86_64 2.4.-.el7.centos base 2.7 M
httpd-tools x86_64 2.4.-.el7.centos base k
iksemel x86_64 1.4-.el7.centos zabbix-non-supported k
libX11 x86_64 1.6.-.el7 base k
libX11-common noarch 1.6.-.el7 base k
libXau x86_64 1.0.-2.1.el7 base k
libXpm x86_64 3.5.-.el7 base k
libevent x86_64 2.0.-.el7 base k
libjpeg-turbo x86_64 1.2.-.el7 base k
libpng x86_64 :1.5.-.el7_2 base k
libtool-ltdl x86_64 2.4.-.el7_3 base k
libxcb x86_64 1.13-.el7 base k
libxslt x86_64 1.1.-.el7 base k
libzip x86_64 0.10.-.el7 base k
mailcap noarch 2.1.-.el7 base k
net-snmp-libs x86_64 :5.7.-.el7 base k
php x86_64 5.4.-.el7 base 1.4 M
php-bcmath x86_64 5.4.-.el7 base k
php-cli x86_64 5.4.-.el7 base 2.7 M
php-common x86_64 5.4.-.el7 base k
php-gd x86_64 5.4.-.el7 base k
php-ldap x86_64 5.4.-.el7 base k
php-mbstring x86_64 5.4.-.el7 base k
php-mysql x86_64 5.4.-.el7 base k
php-pdo x86_64 5.4.-.el7 base k
php-xml x86_64 5.4.-.el7 base k
t1lib x86_64 5.1.-.el7 base k
unixODBC x86_64 2.3.-.el7 base k
zabbix-web noarch 4.0.-.el7 zabbix 2.8 M
Updating for dependencies:
openssl x86_64 :1.0.2k-.el7 base k
openssl-libs x86_64 :1.0.2k-.el7 base 1.2 MTransaction Summary
=======================================================================================================================================
Install Packages (+ Dependent packages)
Upgrade ( Dependent packages)Total download size: M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
warning: /var/cache/yum/x86_64//base/packages/OpenIPMI-modalias-2.0.-.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
Public key for OpenIPMI-modalias-2.0.-.el7.x86_64.rpm is not installed
(/): OpenIPMI-modalias-2.0.-.el7.x86_64.rpm | kB ::
apr-util-1.5.-.el7.x86_64.rp FAILED
http://mirror.lzu.edu.cn/centos/7.6.1810/os/x86_64/Packages/apr-util-1.5.2-6.el7.x86_64.rpm: [Errno 14] curl#56 - "Recv failure: Connection reset by peer"
Trying other mirror.
(/): dejavu-fonts-common-2.33-.el7.noarch.rpm | kB ::
(/): OpenIPMI-libs-2.0.-.el7.x86_64.rpm | kB ::
(/): apr-1.4.-.el7_4..x86_64.rpm | kB ::
(/): httpd-tools-2.4.-.el7.centos.x86_64.rpm | kB ::
(/): fontpackages-filesystem-1.44-.el7.noarch.rpm | 9.9 kB ::
warning: /var/cache/yum/x86_64//zabbix-non-supported/packages/fping-3.10-.el7.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 79ea5ed4: NOKEY
Public key for fping-3.10-.el7.x86_64.rpm is not installed
(/): fping-3.10-.el7.x86_64.rpm | kB ::
(/): libX11-common-1.6.-.el7.noarch.rpm | kB ::
(/): libXau-1.0.-2.1.el7.x86_64.rpm | kB ::
(/): libXpm-3.5.-.el7.x86_64.rpm | kB ::
(/): iksemel-1.4-.el7.centos.x86_64.rpm | kB ::
(/): libevent-2.0.-.el7.x86_64.rpm | kB ::
(/): libX11-1.6.-.el7.x86_64.rpm | kB ::
(/): libpng-1.5.-.el7_2.x86_64.rpm | kB ::
(/): libtool-ltdl-2.4.-.el7_3.x86_64.rpm | kB ::
(/): libxcb-1.13-.el7.x86_64.rpm | kB ::
(/): libzip-0.10.-.el7.x86_64.rpm | kB ::
(/): mailcap-2.1.-.el7.noarch.rpm | kB ::
(/): libxslt-1.1.-.el7.x86_64.rpm | kB ::
(/): net-snmp-libs-5.7.-.el7.x86_64.rpm | kB ::
(/): openssl-1.0.2k-.el7.x86_64.rpm | kB ::
(/): openssl-libs-1.0.2k-.el7.x86_64.rpm | 1.2 MB ::
(/): php-bcmath-5.4.-.el7.x86_64.rpm | kB ::
(/): httpd-2.4.-.el7.centos.x86_64.rpm | 2.7 MB ::
(/): php-cli-5.4.-.el7.x86_64.rpm | 2.7 MB ::
(/): php-gd-5.4.-.el7.x86_64.rpm | kB ::
(/): libjpeg-turbo-1.2.-.el7.x86_64.rpm | kB ::
(/): php-ldap-5.4.-.el7.x86_64.rpm | kB ::
(/): php-mbstring-5.4.-.el7.x86_64.rpm | kB ::
(/): php-5.4.-.el7.x86_64.rpm | 1.4 MB ::
(/): php-mysql-5.4.-.el7.x86_64.rpm | kB ::
(/): php-pdo-5.4.-.el7.x86_64.rpm | kB ::
(/): php-xml-5.4.-.el7.x86_64.rpm | kB ::
(/): t1lib-5.1.-.el7.x86_64.rpm | kB ::
(/): php-common-5.4.-.el7.x86_64.rpm | kB ::
(/): unixODBC-2.3.-.el7.x86_64.rpm | kB ::
warning: /var/cache/yum/x86_64//zabbix/packages/zabbix-agent-4.0.-.el7.x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID a14fe591: NOKEY
Public key for zabbix-agent-4.0.-.el7.x86_64.rpm is not installed
(/): zabbix-agent-4.0.-.el7.x86_64.rpm | kB ::
(/): zabbix-server-mysql-4.0.-.el7.x86_64.rpm | 2.1 MB ::
(/): apr-util-1.5.-.el7.x86_64.rpm | kB ::
(/): zabbix-web-mysql-4.0.-.el7.noarch.rpm | 8.0 kB ::
(/): zabbix-web-4.0.-.el7.noarch.rpm | 2.8 MB ::
(/): dejavu-sans-fonts-2.33-.el7.noarch.rpm | 1.4 MB ::
---------------------------------------------------------------------------------------------------------------------------------------
Total kB/s | MB ::
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX
Importing GPG key 0x79EA5ED4:
Userid : "Zabbix SIA <packager@zabbix.com>"
Fingerprint: fbab d5fb 5eca b22e e194 d13d 58e4 79ea 5ed4
Package : zabbix-release-4.0-.el7.noarch (installed)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591
Importing GPG key 0xA14FE591:
Userid : "Zabbix LLC <packager@zabbix.com>"
Fingerprint: a184 8f53 52d0 22b9 471d 83d0 082a b56b a14f e591
Package : zabbix-release-4.0-.el7.noarch (installed)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Importing GPG key 0xF4A80EB5:
Userid : "CentOS-7 Key (CentOS 7 Official Signing Key) <security@centos.org>"
Fingerprint: ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5
Package : centos-release--2.1511.el7.centos.2.10.x86_64 (@anaconda)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
Updating : :openssl-libs-1.0.2k-.el7.x86_64 /
Installing : apr-1.4.-.el7_4..x86_64 /
Installing : apr-util-1.5.-.el7.x86_64 /
Installing : httpd-tools-2.4.-.el7.centos.x86_64 /
Installing : :net-snmp-libs-5.7.-.el7.x86_64 /
Installing : libevent-2.0.-.el7.x86_64 /
Installing : libzip-0.10.-.el7.x86_64 /
Installing : php-common-5.4.-.el7.x86_64 /
Installing : php-ldap-5.4.-.el7.x86_64 /
Installing : php-bcmath-5.4.-.el7.x86_64 /
Installing : php-pdo-5.4.-.el7.x86_64 /
Installing : php-mysql-5.4.-.el7.x86_64 /
Installing : php-mbstring-5.4.-.el7.x86_64 /
Installing : php-cli-5.4.-.el7.x86_64 /
Installing : libXau-1.0.-2.1.el7.x86_64 /
Installing : libxcb-1.13-.el7.x86_64 /
Installing : iksemel-1.4-.el7.centos.x86_64 /
Installing : libX11-common-1.6.-.el7.noarch /
Installing : libX11-1.6.-.el7.x86_64 /
Installing : libXpm-3.5.-.el7.x86_64 /
Installing : t1lib-5.1.-.el7.x86_64 /
Installing : libxslt-1.1.-.el7.x86_64 /
Installing : php-xml-5.4.-.el7.x86_64 /
Installing : libjpeg-turbo-1.2.-.el7.x86_64 /
Installing : libtool-ltdl-2.4.-.el7_3.x86_64 /
Installing : unixODBC-2.3.-.el7.x86_64 /
Installing : fontpackages-filesystem-1.44-.el7.noarch /
Installing : dejavu-fonts-common-2.33-.el7.noarch /
Installing : dejavu-sans-fonts-2.33-.el7.noarch /
Installing : OpenIPMI-modalias-2.0.-.el7.x86_64 /
Installing : OpenIPMI-libs-2.0.-.el7.x86_64 /
Installing : :libpng-1.5.-.el7_2.x86_64 /
Installing : php-gd-5.4.-.el7.x86_64 /
Installing : mailcap-2.1.-.el7.noarch /
Installing : httpd-2.4.-.el7.centos.x86_64 /
Installing : php-5.4.-.el7.x86_64 /
Installing : zabbix-web-mysql-4.0.-.el7.noarch /
Installing : zabbix-web-4.0.-.el7.noarch /
Installing : fping-3.10-.el7.x86_64 /
Installing : zabbix-server-mysql-4.0.-.el7.x86_64 /
Updating : :openssl-1.0.2k-.el7.x86_64 /
Installing : zabbix-agent-4.0.-.el7.x86_64 /
Cleanup : :openssl-1.0.1e-.el7..x86_64 /
Cleanup : :openssl-libs-1.0.1e-.el7..x86_64 /
sed: can't read /etc/sysconfig/ipmi: No such file or directory
Verifying : fping-3.10-.el7.x86_64 /
Verifying : zabbix-server-mysql-4.0.-.el7.x86_64 /
Verifying : mailcap-2.1.-.el7.noarch /
Verifying : php-mysql-5.4.-.el7.x86_64 /
Verifying : :libpng-1.5.-.el7_2.x86_64 /
Verifying : OpenIPMI-modalias-2.0.-.el7.x86_64 /
Verifying : php-xml-5.4.-.el7.x86_64 /
Verifying : php-ldap-5.4.-.el7.x86_64 /
Verifying : :openssl-libs-1.0.2k-.el7.x86_64 /
Verifying : :net-snmp-libs-5.7.-.el7.x86_64 /
Verifying : OpenIPMI-libs-2.0.-.el7.x86_64 /
Verifying : fontpackages-filesystem-1.44-.el7.noarch /
Verifying : httpd-tools-2.4.-.el7.centos.x86_64 /
Verifying : dejavu-fonts-common-2.33-.el7.noarch /
Verifying : zabbix-web-4.0.-.el7.noarch /
Verifying : libtool-ltdl-2.4.-.el7_3.x86_64 /
Verifying : libxcb-1.13-.el7.x86_64 /
Verifying : libjpeg-turbo-1.2.-.el7.x86_64 /
Verifying : unixODBC-2.3.-.el7.x86_64 /
Verifying : libXpm-3.5.-.el7.x86_64 /
Verifying : :openssl-1.0.2k-.el7.x86_64 /
Verifying : t1lib-5.1.-.el7.x86_64 /
Verifying : libxslt-1.1.-.el7.x86_64 /
Verifying : zabbix-web-mysql-4.0.-.el7.noarch /
Verifying : libevent-2.0.-.el7.x86_64 /
Verifying : php-bcmath-5.4.-.el7.x86_64 /
Verifying : php-pdo-5.4.-.el7.x86_64 /
Verifying : php-gd-5.4.-.el7.x86_64 /
Verifying : dejavu-sans-fonts-2.33-.el7.noarch /
Verifying : php-mbstring-5.4.-.el7.x86_64 /
Verifying : httpd-2.4.-.el7.centos.x86_64 /
Verifying : libX11-1.6.-.el7.x86_64 /
Verifying : apr-1.4.-.el7_4..x86_64 /
Verifying : zabbix-agent-4.0.-.el7.x86_64 /
Verifying : libX11-common-1.6.-.el7.noarch /
Verifying : iksemel-1.4-.el7.centos.x86_64 /
Verifying : libXau-1.0.-2.1.el7.x86_64 /
Verifying : php-cli-5.4.-.el7.x86_64 /
Verifying : libzip-0.10.-.el7.x86_64 /
Verifying : php-5.4.-.el7.x86_64 /
Verifying : php-common-5.4.-.el7.x86_64 /
Verifying : apr-util-1.5.-.el7.x86_64 /
Verifying : :openssl-libs-1.0.1e-.el7..x86_64 /
Verifying : :openssl-1.0.1e-.el7..x86_64 / Installed:
zabbix-agent.x86_64 :4.0.-.el7 zabbix-server-mysql.x86_64 :4.0.-.el7 zabbix-web-mysql.noarch :4.0.-.el7 Dependency Installed:
OpenIPMI-libs.x86_64 :2.0.-.el7 OpenIPMI-modalias.x86_64 :2.0.-.el7 apr.x86_64 :1.4.-.el7_4.
apr-util.x86_64 :1.5.-.el7 dejavu-fonts-common.noarch :2.33-.el7 dejavu-sans-fonts.noarch :2.33-.el7
fontpackages-filesystem.noarch :1.44-.el7 fping.x86_64 :3.10-.el7 httpd.x86_64 :2.4.-.el7.centos
httpd-tools.x86_64 :2.4.-.el7.centos iksemel.x86_64 :1.4-.el7.centos libX11.x86_64 :1.6.-.el7
libX11-common.noarch :1.6.-.el7 libXau.x86_64 :1.0.-2.1.el7 libXpm.x86_64 :3.5.-.el7
libevent.x86_64 :2.0.-.el7 libjpeg-turbo.x86_64 :1.2.-.el7 libpng.x86_64 :1.5.-.el7_2
libtool-ltdl.x86_64 :2.4.-.el7_3 libxcb.x86_64 :1.13-.el7 libxslt.x86_64 :1.1.-.el7
libzip.x86_64 :0.10.-.el7 mailcap.noarch :2.1.-.el7 net-snmp-libs.x86_64 :5.7.-.el7
php.x86_64 :5.4.-.el7 php-bcmath.x86_64 :5.4.-.el7 php-cli.x86_64 :5.4.-.el7
php-common.x86_64 :5.4.-.el7 php-gd.x86_64 :5.4.-.el7 php-ldap.x86_64 :5.4.-.el7
php-mbstring.x86_64 :5.4.-.el7 php-mysql.x86_64 :5.4.-.el7 php-pdo.x86_64 :5.4.-.el7
php-xml.x86_64 :5.4.-.el7 t1lib.x86_64 :5.1.-.el7 unixODBC.x86_64 :2.3.-.el7
zabbix-web.noarch :4.0.-.el7 Dependency Updated:
openssl.x86_64 :1.0.2k-.el7 openssl-libs.x86_64 :1.0.2k-.el7 Complete!
[root@node101 ~]#

[root@node101 ~]# yum -y install zabbix-server-mysql zabbix-web-mysql zabbix-agent

4>.安装mysql数据库

[root@node101 ~]# yum -y install wget
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: ftp.sjtu.edu.cn
* updates: mirrors.nwsuaf.edu.cn
Resolving Dependencies
--> Running transaction check
---> Package wget.x86_64 :1.14-.el7 will be installed
--> Finished Dependency ResolutionDependencies Resolved=======================================================================================================================================
Package Arch Version Repository Size
=======================================================================================================================================
Installing:
wget x86_64 1.14-.el7 base kTransaction Summary
=======================================================================================================================================
Install PackageTotal download size: k
Installed size: 2.0 M
Downloading packages:
wget-1.14-.el7.x86_64.rpm | kB ::
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : wget-1.14-.el7.x86_64 /
Verifying : wget-1.14-.el7.x86_64 / Installed:
wget.x86_64 :1.14-.el7 Complete!
[root@node101 ~]#

[root@node101 ~]# yum -y install wget                                    #安装下载工具

[root@node101 ~]# wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm
---- ::-- http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm
Resolving dev.mysql.com (dev.mysql.com)... 137.254.60.11
Connecting to dev.mysql.com (dev.mysql.com)|137.254.60.11|:... connected.
HTTP request sent, awaiting response... Found
Location: http://101.96.8.156/dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm [following]
---- ::-- http://101.96.8.156/dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm
Connecting to 101.96.8.156:... connected.
HTTP request sent, awaiting response... Moved Permanently
Location: https://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm [following]
---- ::-- https://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm
Connecting to dev.mysql.com (dev.mysql.com)|137.254.60.11|:... connected.
HTTP request sent, awaiting response... Found
Location: https://repo.mysql.com//mysql-community-release-el7-5.noarch.rpm [following]
---- ::-- https://repo.mysql.com//mysql-community-release-el7-5.noarch.rpm
Resolving repo.mysql.com (repo.mysql.com)... 23.51.209.162
Connecting to repo.mysql.com (repo.mysql.com)|23.51.209.162|:... connected.
HTTP request sent, awaiting response... OK
Length: (.0K) [application/x-redhat-package-manager]
Saving to: ‘mysql-community-release-el7-.noarch.rpm’%[===========================================================================>] , --.-K/s in 0s -- :: ( MB/s) - ‘mysql-community-release-el7-.noarch.rpm’ saved [/][root@node101 ~]#
[root@node101 ~]# ll
total
-rwxrwxrwx. root root Dec : ambari-2.6.0.0-centos7.tar.gz
-rwxr-xr-x. root root Dec : HDP-2.6.3.0-centos7-rpm.tar.gz
-rwxr-xr-x. root root Dec : HDP-UTILS-1.1.0.21-centos7.tar.gz
-rw-r--r--. root root Dec : jdk-8u191-linux-x64.tar.gz
-rw-r--r-- root root Nov mysql-community-release-el7-.noarch.rpm
[root@node101 ~]#

[root@node101 ~]# wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm      #下载mysql yum源

[root@node101 ~]# rpm -ivh mysql-community-release-el7-5.noarch.rpm                   #安装mysql的yum源

[root@node101 ~]# yum -y install mysql-community-server
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.tuna.tsinghua.edu.cn
* updates: mirrors.tuna.tsinghua.edu.cn
packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package mysql-community-server.x86_64 :5.6.-.el7 will be installed
--> Processing Dependency: mysql-community-common(x86-) = 5.6.-.el7 for package: mysql-community-server-5.6.-.el7.x86_64
--> Processing Dependency: mysql-community-client(x86-) >= 5.6. for package: mysql-community-server-5.6.-.el7.x86_64
--> Processing Dependency: perl(Data::Dumper) for package: mysql-community-server-5.6.-.el7.x86_64
--> Processing Dependency: perl(DBI) for package: mysql-community-server-5.6.-.el7.x86_64
--> Running transaction check
---> Package mysql-community-client.x86_64 :5.6.-.el7 will be installed
--> Processing Dependency: mysql-community-libs(x86-) >= 5.6. for package: mysql-community-client-5.6.-.el7.x86_64
---> Package mysql-community-common.x86_64 :5.6.-.el7 will be installed
---> Package perl-DBI.x86_64 :1.627-.el7 will be installed
--> Processing Dependency: perl(RPC::PlServer) >= 0.2001 for package: perl-DBI-1.627-.el7.x86_64
--> Processing Dependency: perl(RPC::PlClient) >= 0.2000 for package: perl-DBI-1.627-.el7.x86_64
---> Package perl-Data-Dumper.x86_64 :2.145-.el7 will be installed
--> Running transaction check
---> Package mariadb-libs.x86_64 :5.5.-.el7.centos will be obsoleted
---> Package mysql-community-libs.x86_64 :5.6.-.el7 will be obsoleting
---> Package perl-PlRPC.noarch :0.2020-.el7 will be installed
--> Processing Dependency: perl(Net::Daemon) >= 0.13 for package: perl-PlRPC-0.2020-.el7.noarch
--> Processing Dependency: perl(Net::Daemon::Test) for package: perl-PlRPC-0.2020-.el7.noarch
--> Processing Dependency: perl(Net::Daemon::Log) for package: perl-PlRPC-0.2020-.el7.noarch
--> Processing Dependency: perl(Compress::Zlib) for package: perl-PlRPC-0.2020-.el7.noarch
--> Running transaction check
---> Package perl-IO-Compress.noarch :2.061-.el7 will be installed
--> Processing Dependency: perl(Compress::Raw::Zlib) >= 2.061 for package: perl-IO-Compress-2.061-.el7.noarch
--> Processing Dependency: perl(Compress::Raw::Bzip2) >= 2.061 for package: perl-IO-Compress-2.061-.el7.noarch
---> Package perl-Net-Daemon.noarch :0.48-.el7 will be installed
--> Running transaction check
---> Package perl-Compress-Raw-Bzip2.x86_64 :2.061-.el7 will be installed
---> Package perl-Compress-Raw-Zlib.x86_64 :2.061-.el7 will be installed
--> Finished Dependency ResolutionDependencies Resolved=====================================================================================================================
Package Arch Version Repository Size
=====================================================================================================================
Installing:
mysql-community-libs x86_64 5.6.-.el7 mysql56-community 2.0 M
replacing mariadb-libs.x86_64 :5.5.-.el7.centos
mysql-community-server x86_64 5.6.-.el7 mysql56-community M
Installing for dependencies:
mysql-community-client x86_64 5.6.-.el7 mysql56-community M
mysql-community-common x86_64 5.6.-.el7 mysql56-community k
perl-Compress-Raw-Bzip2 x86_64 2.061-.el7 base k
perl-Compress-Raw-Zlib x86_64 :2.061-.el7 base k
perl-DBI x86_64 1.627-.el7 base k
perl-Data-Dumper x86_64 2.145-.el7 base k
perl-IO-Compress noarch 2.061-.el7 base k
perl-Net-Daemon noarch 0.48-.el7 base k
perl-PlRPC noarch 0.2020-.el7 base kTransaction Summary
=====================================================================================================================
Install Packages (+ Dependent packages)Total download size: M
Downloading packages:
warning: /var/cache/yum/x86_64//mysql56-community/packages/mysql-community-common-5.6.-.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Public key for mysql-community-common-5.6.-.el7.x86_64.rpm is not installed
(/): mysql-community-common-5.6.-.el7.x86_64.rpm | kB ::
(/): mysql-community-libs-5.6.-.el7.x86_64.rpm | 2.0 MB ::
(/): perl-Compress-Raw-Zlib-2.061-.el7.x86_64.rpm | kB ::
(/): perl-Data-Dumper-2.145-.el7.x86_64.rpm | kB ::
(/): perl-Compress-Raw-Bzip2-2.061-.el7.x86_64.rpm | kB ::
(/): perl-IO-Compress-2.061-.el7.noarch.rpm | kB ::
(/): perl-Net-Daemon-0.48-.el7.noarch.rpm | kB ::
(/): perl-PlRPC-0.2020-.el7.noarch.rpm | kB ::
(/): perl-DBI-1.627-.el7.x86_64.rpm | kB ::
(/): mysql-community-client-5.6.-.el7.x86_64.rpm | MB ::
(/): mysql-community-server-5.6.-.el7.x86_64.rpm | MB ::
---------------------------------------------------------------------------------------------------------------------
Total kB/s | MB ::
Retrieving key from file:/etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
Importing GPG key 0x5072E1F5:
Userid : "MySQL Release Engineering <mysql-build@oss.oracle.com>"
Fingerprint: a4a9 76fc bd3c 70c8 8c71 8d3b e1f5
Package : mysql-community-release-el7-.noarch (installed)
From : file:/etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
Installing : perl-Data-Dumper-2.145-.el7.x86_64 /
Installing : mysql-community-common-5.6.-.el7.x86_64 /
Installing : mysql-community-libs-5.6.-.el7.x86_64 /
Installing : mysql-community-client-5.6.-.el7.x86_64 /
Installing : perl-Compress-Raw-Bzip2-2.061-.el7.x86_64 /
Installing : :perl-Compress-Raw-Zlib-2.061-.el7.x86_64 /
Installing : perl-IO-Compress-2.061-.el7.noarch /
Installing : perl-Net-Daemon-0.48-.el7.noarch /
Installing : perl-PlRPC-0.2020-.el7.noarch /
Installing : perl-DBI-1.627-.el7.x86_64 /
Installing : mysql-community-server-5.6.-.el7.x86_64 /
Erasing : :mariadb-libs-5.5.-.el7.centos.x86_64 /
Verifying : mysql-community-libs-5.6.-.el7.x86_64 /
Verifying : mysql-community-common-5.6.-.el7.x86_64 /
Verifying : perl-Net-Daemon-0.48-.el7.noarch /
Verifying : mysql-community-server-5.6.-.el7.x86_64 /
Verifying : perl-Data-Dumper-2.145-.el7.x86_64 /
Verifying : mysql-community-client-5.6.-.el7.x86_64 /
Verifying : perl-IO-Compress-2.061-.el7.noarch /
Verifying : :perl-Compress-Raw-Zlib-2.061-.el7.x86_64 /
Verifying : perl-DBI-1.627-.el7.x86_64 /
Verifying : perl-Compress-Raw-Bzip2-2.061-.el7.x86_64 /
Verifying : perl-PlRPC-0.2020-.el7.noarch /
Verifying : :mariadb-libs-5.5.-.el7.centos.x86_64 / Installed:
mysql-community-libs.x86_64 :5.6.-.el7 mysql-community-server.x86_64 :5.6.-.el7 Dependency Installed:
mysql-community-client.x86_64 :5.6.-.el7 mysql-community-common.x86_64 :5.6.-.el7
perl-Compress-Raw-Bzip2.x86_64 :2.061-.el7 perl-Compress-Raw-Zlib.x86_64 :2.061-.el7
perl-DBI.x86_64 :1.627-.el7 perl-Data-Dumper.x86_64 :2.145-.el7
perl-IO-Compress.noarch :2.061-.el7 perl-Net-Daemon.noarch :0.48-.el7
perl-PlRPC.noarch :0.2020-.el7 Replaced:
mariadb-libs.x86_64 :5.5.-.el7.centos Complete!
[root@node101 ~]#

[root@node101 ~]# yum -y install mysql-community-server                          #安装mysql

[root@node101 ~]# systemctl enable mysqld
Created symlink from /etc/systemd/system/mysql.service to /usr/lib/systemd/system/mysqld.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/mysqld.service to /usr/lib/systemd/system/mysqld.service.
[root@node101 ~]#

[root@node101 ~]# systemctl enable mysqld                                  #设置开机自启动

[root@node101 ~]# systemctl start mysqld
[root@node101 ~]#

[root@node101 ~]# systemctl start mysqld                                  #启动MySQL

[root@node101 ~]# systemctl status mysqld
● mysqld.service - MySQL Community Server
Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled)
Active: active (running) since Fri -- :: CST; 1min 42s ago
Process: ExecStartPost=/usr/bin/mysql-systemd-start post (code=exited, status=/SUCCESS)
Process: ExecStartPre=/usr/bin/mysql-systemd-start pre (code=exited, status=/SUCCESS)
Main PID: (mysqld_safe)
CGroup: /system.slice/mysqld.service
├─ /bin/sh /usr/bin/mysqld_safe --basedir=/usr
└─ /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --log-error=/var/lo...Dec :: node101.yinzhengjie.org.cn mysql-systemd-start[]: /usr/bin/mysql_secure_installation
Dec :: node101.yinzhengjie.org.cn mysql-systemd-start[]: which will also give you the option of removing the test
Dec :: node101.yinzhengjie.org.cn mysql-systemd-start[]: databases and anonymous user created by default. This is
Dec :: node101.yinzhengjie.org.cn mysql-systemd-start[]: strongly recommended for production servers.
Dec :: node101.yinzhengjie.org.cn mysql-systemd-start[]: See the manual for more instructions.
Dec :: node101.yinzhengjie.org.cn mysql-systemd-start[]: Please report any problems at http://bugs.mysql.com/
Dec :: node101.yinzhengjie.org.cn mysql-systemd-start[]: The latest information about MySQL is available on the web at
Dec :: node101.yinzhengjie.org.cn mysqld_safe[]: :: mysqld_safe Logging to '/var/log/mysqld.log'.
Dec :: node101.yinzhengjie.org.cn mysqld_safe[]: :: mysqld_safe Starting mysqld daemon with database...mysql
Dec :: node101.yinzhengjie.org.cn systemd[]: Started MySQL Community Server.
Hint: Some lines were ellipsized, use -l to show in full.
[root@node101 ~]#

[root@node101 ~]# systemctl status mysqld                                #查看Mysqld的运行状态

5>.为MySQL设置管理员密码并创建初始数据库

[root@node101 ~]# mysql -uroot
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is
Server version: 5.6. MySQL Community Server (GPL)Copyright (c) , , 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.mysql>
mysql>
mysql>
mysql>
mysql> set password for 'root'@'localhost' = password('yinzhengjie');
Query OK, rows affected (0.00 sec)mysql> grant all privileges on *.* to 'root'@'172.30.1.10%' identified by 'yinzhengjie';
Query OK, rows affected (0.00 sec)mysql> FLUSH PRIVILEGES;
Query OK, rows affected (0.00 sec)mysql> quit
Bye
[root@node101 ~]#
[root@node101 ~]# mysql -uroot -pyinzhengjie
Warning: Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is
Server version: 5.6. MySQL Community Server (GPL)Copyright (c) , , 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.mysql> create database zabbix character set utf8 collate utf8_bin;
Query OK, row affected (0.00 sec)mysql> grant all privileges on zabbix.* to zabbix@localhost identified by 'yinzhengjie';
Query OK, rows affected (0.00 sec)mysql> quit
Bye
[root@node101 ~]#
[root@node101 ~]#

6>.导入初始架构和数据。系统将提示您输入新创建的密码。

[root@node101 ~]# rpm -ql zabbix-server-mysql
/etc/logrotate.d/zabbix-server
/etc/zabbix/zabbix_server.conf
/usr/lib/systemd/system/zabbix-server.service
/usr/lib/tmpfiles.d/zabbix-server.conf
/usr/lib/zabbix/alertscripts
/usr/lib/zabbix/externalscripts
/usr/sbin/zabbix_server_mysql
/usr/share/doc/zabbix-server-mysql-4.0.
/usr/share/doc/zabbix-server-mysql-4.0./AUTHORS
/usr/share/doc/zabbix-server-mysql-4.0./COPYING
/usr/share/doc/zabbix-server-mysql-4.0./ChangeLog
/usr/share/doc/zabbix-server-mysql-4.0./NEWS
/usr/share/doc/zabbix-server-mysql-4.0./README
/usr/share/doc/zabbix-server-mysql-4.0./create.sql.gz
/usr/share/man/man8/zabbix_server..gz
/var/log/zabbix
/var/run/zabbix
[root@node101 ~]#
[root@node101 ~]#
[root@node101 ~]# zcat /usr/share/doc/zabbix-server-mysql-4.0./create.sql.gz | mysql -uzabbix -p zabbix
Enter password:       #这个密码是你之前授权的用户时指定的,不建议大家在命令行输入,因为可以通过history命令查看到MySQL数据库的密码。
[root@node101 ~]#
[root@node101 ~]# mysql -uroot -pyinzhengjie
Warning: Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is
Server version: 5.6. MySQL Community Server (GPL)Copyright (c) , , 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.mysql> use zabbix
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -ADatabase changed
mysql>
mysql> show tables;
+----------------------------+
| Tables_in_zabbix |
+----------------------------+
| acknowledges |
| actions |
| alerts |
| application_discovery |
| application_prototype |
| application_template |
| applications |
| auditlog |
| auditlog_details |
| autoreg_host |
| conditions |
| config |
| corr_condition |
| corr_condition_group |
| corr_condition_tag |
| corr_condition_tagpair |
| corr_condition_tagvalue |
| corr_operation |
| correlation |
| dashboard |
| dashboard_user |
| dashboard_usrgrp |
| dbversion |
| dchecks |
| dhosts |
| drules |
| dservices |
| escalations |
| event_recovery |
| event_suppress |
| event_tag |
| events |
| expressions |
| functions |
| globalmacro |
| globalvars |
| graph_discovery |
| graph_theme |
| graphs |
| graphs_items |
| group_discovery |
| group_prototype |
| history |
| history_log |
| history_str |
| history_text |
| history_uint |
| host_discovery |
| host_inventory |
| hostmacro |
| hosts |
| hosts_groups |
| hosts_templates |
| housekeeper |
| hstgrp |
| httpstep |
| httpstep_field |
| httpstepitem |
| httptest |
| httptest_field |
| httptestitem |
| icon_map |
| icon_mapping |
| ids |
| images |
| interface |
| interface_discovery |
| item_application_prototype |
| item_condition |
| item_discovery |
| item_preproc |
| items |
| items_applications |
| maintenance_tag |
| maintenances |
| maintenances_groups |
| maintenances_hosts |
| maintenances_windows |
| mappings |
| media |
| media_type |
| opcommand |
| opcommand_grp |
| opcommand_hst |
| opconditions |
| operations |
| opgroup |
| opinventory |
| opmessage |
| opmessage_grp |
| opmessage_usr |
| optemplate |
| problem |
| problem_tag |
| profiles |
| proxy_autoreg_host |
| proxy_dhistory |
| proxy_history |
| regexps |
| rights |
| screen_user |
| screen_usrgrp |
| screens |
| screens_items |
| scripts |
| service_alarms |
| services |
| services_links |
| services_times |
| sessions |
| slides |
| slideshow_user |
| slideshow_usrgrp |
| slideshows |
| sysmap_element_trigger |
| sysmap_element_url |
| sysmap_shape |
| sysmap_url |
| sysmap_user |
| sysmap_usrgrp |
| sysmaps |
| sysmaps_elements |
| sysmaps_link_triggers |
| sysmaps_links |
| tag_filter |
| task |
| task_acknowledge |
| task_check_now |
| task_close_problem |
| task_remote_command |
| task_remote_command_result |
| timeperiods |
| trends |
| trends_uint |
| trigger_depends |
| trigger_discovery |
| trigger_tag |
| triggers |
| users |
| users_groups |
| usrgrp |
| valuemaps |
| widget |
| widget_field |
+----------------------------+
rows in set (0.01 sec)mysql> quit
Bye
[root@node101 ~]#
[root@node101 ~]#

我们可以登录MySQL服务器查看zabbix数据库是否生成了相应的表结构([root@node101 ~]# mysql -uroot -pyinzhengjie)

7>.修改http的配置文件并启动服务(需要关闭防火墙)

[root@node101 ~]#
[root@node101 ~]# cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.`date +%F`
[root@node101 ~]#
[root@node101 ~]#
[root@node101 ~]# grep '#ServerName www.example.com:80' /etc/httpd/conf/httpd.conf
#ServerName www.example.com:
[root@node101 ~]#
[root@node101 ~]# sed -i 's@#ServerName www.example.com:80@ServerName 127.0.0.1:80@' /etc/httpd/conf/httpd.conf
[root@node101 ~]#
[root@node101 ~]# grep '127.0.0.1:80' /etc/httpd/conf/httpd.conf
ServerName 127.0.0.1:
[root@node101 ~]#

[root@node101 ~]# sed -i ‘s@#ServerName www.example.com:80@ServerName 127.0.0.1:80@’ /etc/httpd/conf/httpd.conf

[root@node101 ~]# systemctl enable httpd
Created symlink from /etc/systemd/system/multi-user.target.wants/httpd.service to /usr/lib/systemd/system/httpd.service.
[root@node101 ~]#
[root@node101 ~]# systemctl start httpd
[root@node101 ~]#
[root@node101 ~]# systemctl status httpd
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: active (running) since Thu -- :: PST; 4s ago
Docs: man:httpd()
man:apachectl()
Main PID: (httpd)
Status: "Processing requests..."
CGroup: /system.slice/httpd.service
├─ /usr/sbin/httpd -DFOREGROUND
├─ /usr/sbin/httpd -DFOREGROUND
├─ /usr/sbin/httpd -DFOREGROUND
├─ /usr/sbin/httpd -DFOREGROUND
├─ /usr/sbin/httpd -DFOREGROUND
└─ /usr/sbin/httpd -DFOREGROUNDFeb :: node101.yinzhengjie.org.cn systemd[]: Starting The Apache HTTP Server...
Feb :: node101.yinzhengjie.org.cn systemd[]: Started The Apache HTTP Server.
[root@node101 ~]#
[root@node101 ~]#
[root@node101 ~]# ss -ntl
State Recv-Q Send-Q Local Address:Port Peer Address:Port
LISTEN *: *:*
LISTEN 127.0.0.1: *:*
LISTEN ::: :::*
LISTEN ::: :::*
LISTEN ::: :::*
LISTEN ::: :::*
[root@node101 ~]#

[root@node101 ~]# systemctl start httpd                      #启动Web服务器

[root@node101 ~]# systemctl stop firewalld
[root@node101 ~]#
[root@node101 ~]# systemctl status firewalld
● firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)
Active: inactive (dead) since Thu -- :: PST; 42s ago
Main PID: (code=exited, status=/SUCCESS)Feb :: node101.yinzhengjie.org.cn systemd[]: Starting firewalld - dynamic firewall daemon...
Feb :: node101.yinzhengjie.org.cn systemd[]: Started firewalld - dynamic firewall daemon.
Feb :: node101.yinzhengjie.org.cn systemd[]: Stopping firewalld - dynamic firewall daemon...
Feb :: node101.yinzhengjie.org.cn systemd[]: Stopped firewalld - dynamic firewall daemon.
[root@node101 ~]#
[root@node101 ~]# systemctl disable firewalld
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
Removed symlink /etc/systemd/system/basic.target.wants/firewalld.service.
[root@node101 ~]#

[root@node101 ~]# systemctl stop firewalld                    #关闭防火墙

  启动服务后,然后我们就可以访问到zabbix的Web界面啦,如下,我们可以根据想到进行安装:

运维监控-基于yum的方式部署Zabbix Server 4.0 版本

三.安装zabbix的Web前端

1>.根据向导,会出现以下界面

运维监控-基于yum的方式部署Zabbix Server 4.0 版本

2>.修改zabbix的配置文件并重启http服务,上述的报错就会解决

[root@node101 ~]# ll /etc/httpd/conf.d/
total
-rw-r--r--. root root Nov : autoindex.conf
-rw-r--r--. root root Oct : php.conf
-rw-r--r--. root root Nov : README
-rw-r--r--. root root Oct : userdir.conf
-rw-r--r--. root root Oct : welcome.conf
-rw-r--r--. root root Feb : zabbix.conf
[root@node101 ~]#
[root@node101 ~]# cat /etc/httpd/conf.d/zabbix.conf
#
# Zabbix monitoring system php web frontend
#Alias /zabbix /usr/share/zabbix<Directory "/usr/share/zabbix">
Options FollowSymLinks
AllowOverride None
Require all granted <IfModule mod_php5.c>
php_value max_execution_time
php_value memory_limit 128M
php_value post_max_size 16M
php_value upload_max_filesize 2M
php_value max_input_time
php_value max_input_vars
php_value always_populate_raw_post_data -
php_value date.timezone Asia/Shanghai        #注意,我修改了这一行内容,我把时区改成了亚洲/上海
</IfModule>
</Directory><Directory "/usr/share/zabbix/conf">
Require all denied
</Directory><Directory "/usr/share/zabbix/app">
Require all denied
</Directory><Directory "/usr/share/zabbix/include">
Require all denied
</Directory><Directory "/usr/share/zabbix/local">
Require all denied
</Directory>
[root@node101 ~]#
[root@node101 ~]#

修改zabbix的配置文件([root@node101 ~]# cat /etc/httpd/conf.d/zabbix.conf )

[root@node101 ~]#
[root@node101 ~]# systemctl restart httpd
[root@node101 ~]#
[root@node101 ~]# systemctl status httpd
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: active (running) since Thu -- :: PST; 18s ago
Docs: man:httpd()
man:apachectl()
Process: ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=/SUCCESS)
Main PID: (httpd)
Status: "Total requests: 3; Current requests/sec: 0.333; Current traffic: 4.6KB/sec"
CGroup: /system.slice/httpd.service
├─ /usr/sbin/httpd -DFOREGROUND
├─ /usr/sbin/httpd -DFOREGROUND
├─ /usr/sbin/httpd -DFOREGROUND
├─ /usr/sbin/httpd -DFOREGROUND
├─ /usr/sbin/httpd -DFOREGROUND
├─ /usr/sbin/httpd -DFOREGROUND
└─ /usr/sbin/httpd -DFOREGROUNDFeb :: node101.yinzhengjie.org.cn systemd[]: Starting The Apache HTTP Server...
Feb :: node101.yinzhengjie.org.cn systemd[]: Started The Apache HTTP Server.
[root@node101 ~]#
[root@node101 ~]# ss -utl
Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port
udp UNCONN 127.0.0.1: *:*
udp UNCONN ::: :::*
tcp LISTEN *:ssh *:*
tcp LISTEN 127.0.0.1:smtp *:*
tcp LISTEN :::mysql :::*
tcp LISTEN :::http :::*
tcp LISTEN :::ssh :::*
tcp LISTEN :::smtp :::*
[root@node101 ~]#

[root@node101 ~]# systemctl restart httpd

运维监控-基于yum的方式部署Zabbix Server 4.0 版本

3>.配置数据库

运维监控-基于yum的方式部署Zabbix Server 4.0 版本

4>.为zabbix服务器配置一个名称

运维监控-基于yum的方式部署Zabbix Server 4.0 版本

5>.确认安装完毕

运维监控-基于yum的方式部署Zabbix Server 4.0 版本

6>.点击完成(注意这个“/etc/zabbix/web/zabbix.conf.php”配置文件,当你需要迁移数据库时,就得修改该配置文件哟!)

运维监控-基于yum的方式部署Zabbix Server 4.0 版本

7>.登录zabbix服务器

  默认的用户名和密码官方文档说明:https://www.zabbix.com/documentation/4.0/manual/quickstart/login

运维监控-基于yum的方式部署Zabbix Server 4.0 版本

8>.登录成功

运维监控-基于yum的方式部署Zabbix Server 4.0 版本

四.启动zabbix-server和zabbix-agent

1>.修改zabbix的配置文件

[root@node101 ~]# cp /etc/zabbix/zabbix_server.conf /etc/zabbix/zabbix_server.conf.`date +%F`
[root@node101 ~]#
[root@node101 ~]# grep DBHost /etc/zabbix/zabbix_server.conf                    #这个是数据库的主机地址,默认是本机,咱们可以不修改。
### Option: DBHost
# DBHost=localhost
[root@node101 ~]#
[root@node101 ~]# grep DBName /etc/zabbix/zabbix_server.conf | grep -v ^#             #修改zabbix的数据库
DBName=zabbix
[root@node101 ~]#
[root@node101 ~]# grep 'DBUser' /etc/zabbix/zabbix_server.conf | grep -v ^#            #修改数据库的用户名
DBUser=zabbix
[root@node101 ~]#
[root@node101 ~]# grep 'DBPassword' /etc/zabbix/zabbix_server.conf | grep -v ^#          #修改数据库的密码
DBPassword=yinzhengjie
[root@node101 ~]#

2>.启动zabbix-server服务

[root@node101 ~]# systemctl start zabbix-server          #启动该服务,需要等待一段时间
[root@node101 ~]#
[root@node101 ~]# systemctl status zabbix-server         #查看该服务的状态
● zabbix-server.service - Zabbix Server
Loaded: loaded (/usr/lib/systemd/system/zabbix-server.service; disabled; vendor preset: disabled)
Active: active (running) since Thu -- :: PST; 13s ago
Process: ExecStop=/bin/kill -SIGTERM $MAINPID (code=exited, status=/FAILURE)
Process: ExecStart=/usr/sbin/zabbix_server -c $CONFFILE (code=exited, status=/SUCCESS)
Main PID: (zabbix_server)
CGroup: /system.slice/zabbix-server.service
├─ /usr/sbin/zabbix_server -c /etc/zabbix/zabbix_server.conf
├─ /usr/sbin/zabbix_server: configuration syncer [waiting sec for processes]
├─ /usr/sbin/zabbix_server: alerter # started
├─ /usr/sbin/zabbix_server: alerter # started
├─ /usr/sbin/zabbix_server: alerter # started
├─ /usr/sbin/zabbix_server: housekeeper [startup idle for minutes]
├─ /usr/sbin/zabbix_server: timer # [updated hosts, suppressed events in 0.000621 sec, idle sec]
├─ /usr/sbin/zabbix_server: http poller # [got values in 0.000489 sec, idle sec]
├─ /usr/sbin/zabbix_server: discoverer # [processed rules in 0.000370 sec, idle sec]
├─ /usr/sbin/zabbix_server: history syncer # [processed values, triggers in 0.000024 sec, idle sec]
├─ /usr/sbin/zabbix_server: history syncer # [processed values, triggers in 0.000030 sec, idle sec]
├─ /usr/sbin/zabbix_server: history syncer # [processed values, triggers in 0.000031 sec, idle sec]
├─ /usr/sbin/zabbix_server: history syncer # [processed values, triggers in 0.000021 sec, idle sec]
├─ /usr/sbin/zabbix_server: escalator # [processed escalations in 0.000745 sec, idle sec]
├─ /usr/sbin/zabbix_server: proxy poller # [exchanged data with proxies in 0.000047 sec, idle sec]
├─ /usr/sbin/zabbix_server: self-monitoring [processed data in 0.000008 sec, idle sec]
├─ /usr/sbin/zabbix_server: task manager [processed task(s) in 0.000336 sec, idle sec]
├─ /usr/sbin/zabbix_server: poller # [got values in 0.000027 sec, idle sec]
├─ /usr/sbin/zabbix_server: poller # [got values in 0.000024 sec, idle sec]
├─ /usr/sbin/zabbix_server: poller # [got values in 0.000032 sec, idle sec]
├─ /usr/sbin/zabbix_server: poller # [got values in 0.000030 sec, idle sec]
├─ /usr/sbin/zabbix_server: poller # [got values in 0.000662 sec, idle sec]
├─ /usr/sbin/zabbix_server: unreachable poller # [got values in 0.000006 sec, idle sec]
├─ /usr/sbin/zabbix_server: trapper # [processed data in 0.000334 sec, waiting for connection]
├─ /usr/sbin/zabbix_server: trapper # [processed data in 0.000000 sec, waiting for connection]
├─ /usr/sbin/zabbix_server: trapper # [processed data in 0.000000 sec, waiting for connection]
├─ /usr/sbin/zabbix_server: trapper # [processed data in 0.000000 sec, waiting for connection]
├─ /usr/sbin/zabbix_server: trapper # [processed data in 0.000000 sec, waiting for connection]
├─ /usr/sbin/zabbix_server: icmp pinger # [got values in 0.000047 sec, idle sec]
├─ /usr/sbin/zabbix_server: alert manager # [sent , failed alerts, idle 5.010040 sec during 5.010134 sec]
├─ /usr/sbin/zabbix_server: preprocessing manager # [queued , processed values, idle 5.006215 sec during 5.00636...
├─ /usr/sbin/zabbix_server: preprocessing worker # started
├─ /usr/sbin/zabbix_server: preprocessing worker # started
└─ /usr/sbin/zabbix_server: preprocessing worker # startedFeb :: node101.yinzhengjie.org.cn systemd[]: Starting Zabbix Server...
Feb :: node101.yinzhengjie.org.cn systemd[]: PID file /run/zabbix/zabbix_server.pid not readable (yet?) after start.
Feb :: node101.yinzhengjie.org.cn systemd[]: Started Zabbix Server.
[root@node101 ~]#
[root@node101 ~]#
[root@node101 ~]# netstat -ntl | grep       #查看服务的端口是否存在
tcp 0.0.0.0: 0.0.0.0:* LISTEN
tcp6 ::: :::* LISTEN
[root@node101 ~]#
[root@node101 ~]#
[root@node101 ~]#
[root@node101 ~]# systemctl enable zabbix-server
Created symlink from /etc/systemd/system/multi-user.target.wants/zabbix-server.service to /usr/lib/systemd/system/zabbix-server.service.
[root@node101 ~]#

[root@node101 ~]# systemctl start zabbix-server                #启动该服务,需要等待一段时间

运维监控-基于yum的方式部署Zabbix Server 4.0 版本

3>.编辑zabbix-agent服务

[root@node101 ~]# cp /etc/zabbix/zabbix_agentd.conf  /etc/zabbix/zabbix_agentd.conf.`date +%F`
[root@node101 ~]#
[root@node101 ~]# grep Server= /etc/zabbix/zabbix_agentd.conf | grep -v ^#              #这里指定谁可以来这台agent获取数据
Server=127.0.0.1
[root@node101 ~]#
[root@node101 ~]# grep ServerActive= /etc/zabbix/zabbix_agentd.conf | grep -v ^#           #和上面的功能类似,这里可以指定多台服务器来本地取数据
ServerActive=127.0.0.1
[root@node101 ~]#
[root@node101 ~]# grep Hostname /etc/zabbix/zabbix_agentd.conf | grep -v ^#              #指定服务器的主机名,我们可以不指定,如果没有指定的话默认就会用系统的主机名称。
Hostname=Zabbix server
[root@node101 ~]#

4>.启动zabbix-agent服务

[root@node101 ~]# systemctl start zabbix-agent
[root@node101 ~]#
[root@node101 ~]# systemctl status zabbix-agent
● zabbix-agent.service - Zabbix Agent
Loaded: loaded (/usr/lib/systemd/system/zabbix-agent.service; disabled; vendor preset: disabled)
Active: active (running) since Thu -- :: PST; 22min ago
Main PID: (zabbix_agentd)
CGroup: /system.slice/zabbix-agent.service
├─ /usr/sbin/zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf
├─ /usr/sbin/zabbix_agentd: collector [idle sec]
├─ /usr/sbin/zabbix_agentd: listener # [waiting for connection]
├─ /usr/sbin/zabbix_agentd: listener # [waiting for connection]
├─ /usr/sbin/zabbix_agentd: listener # [waiting for connection]
└─ /usr/sbin/zabbix_agentd: active checks # [idle sec]Feb :: node101.yinzhengjie.org.cn systemd[]: Starting Zabbix Agent...
Feb :: node101.yinzhengjie.org.cn systemd[]: PID file /run/zabbix/zabbix_agentd.pid not readable (yet?) after start.
Feb :: node101.yinzhengjie.org.cn systemd[]: Started Zabbix Agent.
Feb :: node101.yinzhengjie.org.cn systemd[]: Started Zabbix Agent.
[root@node101 ~]#
[root@node101 ~]# systemctl enable zabbix-agent
Created symlink from /etc/systemd/system/multi-user.target.wants/zabbix-agent.service to /usr/lib/systemd/system/zabbix-agent.service.
[root@node101 ~]#
[root@node101 ~]# ss -ntl | grep
LISTEN *: *:*
LISTEN ::: :::*
[root@node101 ~]#
[root@node101 ~]#

5>.查看zabbix的web界面

[root@node101 ~]# tail -10f /var/log/zabbix/zabbix_server.log
::082402.623 server # started [preprocessing worker #]
::082402.626 server # started [preprocessing worker #]
::082402.664 server # started [preprocessing worker #]
::082407.590 enabling Zabbix agent checks on host "Zabbix server": host became available
::082442.610 item "Zabbix server:zabbix[process,ipmi poller,avg,busy]" became not supported: No "ipmi poller" processes started.
::082443.611 item "Zabbix server:zabbix[process,java poller,avg,busy]" became not supported: No "java poller" processes started.
::082448.616 item "Zabbix server:zabbix[process,ipmi manager,avg,busy]" became not supported: No "ipmi manager" processes started.
::082448.616 item "Zabbix server:zabbix[process,snmp trapper,avg,busy]" became not supported: No "snmp trapper" processes started.
::082449.617 item "Zabbix server:zabbix[process,vmware collector,avg,busy]" became not supported: No "vmware collector" processes started.
::082456.627 item "Zabbix server:zabbix[vmware,buffer,pused]" became not supported: No "vmware collector" processes started.

[root@node101 ~]# tail -10f /var/log/zabbix/zabbix_server.log              #查看zabbix-server的日志

运维监控-基于yum的方式部署Zabbix Server 4.0 版本

微信扫一扫

支付宝扫一扫

本文网址:https://www.zhankr.net/141781.html

相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:875 阅读:5,071
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:806 阅读:3,505
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:565 阅读:4,317
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:730 阅读:4,311
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:4,911
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:3,099
发表评论
暂无评论

还没有评论呢,快来抢沙发~

助力内容变现

将您的收入提升到一个新的水平

点击联系客服

在线时间:8:00-16:00

客服电话

400-888-8888

客服邮箱

ceotheme@ceo.com

扫描二维码

关注微信公众号

扫描二维码

手机访问本站