zabbix安装过程
来源:互联网 发布:算法与数据结构pdf 编辑:程序博客网 时间:2024/05/19 04:06
wget -P /etc/yum.repos.d http://mirrors.aliyun.com/repo/Centos-7.repo
22 wget -P /etc/yum.repos.d http://mirrors.aliyun.com/repo/Centos-7.repo
23 yum -y install mariadb mariadb-server php php-mysql httpd
24 systemctl enable mariadb
25 systemctl start mariadb
26 mysql_secure_installation
mysql -u root -p
create database zabbix default character set utf8 collate utf8_bin;
grant all on zabbix.* to ‘zabbix’@’%’ identified by ‘zabbix’;
mysql -uroot -p’qwe123!@#’ -e “grant all on zabbix.* to ‘zabbix’@’%’ identified by ‘zabbix’;”
29 systemctl start httpd
[root@localhost ~]# netstat -tunl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN
tcp6 0 0 :::80 :::* LISTEN
tcp6 0 0 :::22 :::* LISTEN
tcp6 0 0 ::1:25 :::* LISTEN
udp 0 0 0.0.0.0:123 0.0.0.0:*
udp 0 0 127.0.0.1:323 0.0.0.0:*
udp6 0 0 :::123 :::*
udp6 0 0 ::1:323 :::*
[root@localhost ~]# rpm -ivh http://mirrors.aliyun.com/epel/7/x86_64/e/epel-release-7-9.noarch.rpm
Retrieving http://mirrors.aliyun.com/epel/7/x86_64/e/epel-release-7-9.noarch.rpm
warning: /var/tmp/rpm-tmp.n5mYie: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY
Preparing... ################################# [100%]
Updating / installing...
1:epel-release-7-9 ################################# [100%]
[root@localhost ~]# rpm -ivh http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-release-3.2-1.el7.noarch.rpm
Retrieving http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-release-3.2-1.el7.noarch.rpm
warning: /var/tmp/rpm-tmp.ag0w83: Header V4 RSA/SHA512 Signature, key ID a14fe591: NOKEY
Preparing... ################################# [100%]
Updating / installing...
1:zabbix-release-3.2-1.el7 ################################# [100%]
[root@localhost ~]# yum -y install zabbix-server-mysql zabbix-web-mysql zabbix-get
Loaded plugins: fastestmirror, langpacks
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
epel/x86_64/metalink | 5.9 kB 00:00:00
epel | 4.3 kB 00:00:00
zabbix | 951 B 00:00:00
zabbix-non-supported | 951 B 00:00:00
(1/3): epel/x86_64/group_gz | 170 kB 00:00:01
(2/3): epel/x86_64/updateinfo | 741 kB 00:00:07
(3/3): epel/x86_64/primary_db | 4.5 MB 00:00:10
(1/2): zabbix-non-supported/x86_64/primary | 1.6 kB 00:00:00
(2/2): zabbix/x86_64/primary | 8.2 kB 00:00:00
Loading mirror speeds from cached hostfile
* base: mirrors.163.com
* epel: ftp.cuhk.edu.hk
* extras: mirrors.163.com
* updates: mirrors.163.com
zabbix 53/53
zabbix-non-supported 4/4
Resolving Dependencies
--> Running transaction check
---> Package zabbix-get.x86_64 0:3.2.3-1.el7 will be installed
---> Package zabbix-server-mysql.x86_64 0:3.2.3-1.el7 will be installed
--> Processing Dependency: fping for package: zabbix-server-mysql-3.2.3-1.el7.x86_64
--> Processing Dependency: libiksemel.so.3()(64bit) for package: zabbix-server-mysql-3.2.3-1.el7.x86_64
--> Processing Dependency: libnetsnmp.so.31()(64bit) for package: zabbix-server-mysql-3.2.3-1.el7.x86_64
--> Processing Dependency: libOpenIPMIposix.so.0()(64bit) for package: zabbix-server-mysql-3.2.3-1.el7.x86_64
--> Processing Dependency: libodbc.so.2()(64bit) for package: zabbix-server-mysql-3.2.3-1.el7.x86_64
--> Processing Dependency: libOpenIPMI.so.0()(64bit) for package: zabbix-server-mysql-3.2.3-1.el7.x86_64
---> Package zabbix-web-mysql.noarch 0:3.2.3-1.el7 will be installed
--> Processing Dependency: zabbix-web = 3.2.3-1.el7 for package: zabbix-web-mysql-3.2.3-1.el7.noarch
--> Running transaction check
---> Package OpenIPMI-libs.x86_64 0:2.0.19-15.el7 will be installed
--> Processing Dependency: OpenIPMI-modalias = 2.0.19-15.el7 for package: OpenIPMI-libs-2.0.19-15.el7.x86_64
---> Package fping.x86_64 0:3.10-4.el7 will be installed
---> Package iksemel.x86_64 0:1.4-6.el7 will be installed
---> Package net-snmp-libs.x86_64 1:5.7.2-24.el7_2.1 will be installed
---> Package unixODBC.x86_64 0:2.3.1-11.el7 will be installed
--> Processing Dependency: libltdl.so.7()(64bit) for package: unixODBC-2.3.1-11.el7.x86_64
---> Package zabbix-web.noarch 0:3.2.3-1.el7 will be installed
--> Processing Dependency: php-gd for package: zabbix-web-3.2.3-1.el7.noarch
--> Processing Dependency: php-mbstring for package: zabbix-web-3.2.3-1.el7.noarch
--> Processing Dependency: dejavu-sans-fonts for package: zabbix-web-3.2.3-1.el7.noarch
--> Processing Dependency: php-bcmath for package: zabbix-web-3.2.3-1.el7.noarch
--> Processing Dependency: php-ldap for package: zabbix-web-3.2.3-1.el7.noarch
--> Processing Dependency: php-xml for package: zabbix-web-3.2.3-1.el7.noarch
--> Running transaction check
---> Package OpenIPMI-modalias.x86_64 0:2.0.19-15.el7 will be installed
---> Package dejavu-sans-fonts.noarch 0:2.33-6.el7 will be installed
--> Processing Dependency: dejavu-fonts-common = 2.33-6.el7 for package: dejavu-sans-fonts-2.33-6.el7.noarch
---> Package libtool-ltdl.x86_64 0:2.4.2-21.el7_2 will be installed
---> Package php-bcmath.x86_64 0:5.4.16-42.el7 will be installed
---> Package php-gd.x86_64 0:5.4.16-42.el7 will be installed
--> Processing Dependency: libt1.so.5()(64bit) for package: php-gd-5.4.16-42.el7.x86_64
--> Processing Dependency: libXpm.so.4()(64bit) for package: php-gd-5.4.16-42.el7.x86_64
---> Package php-ldap.x86_64 0:5.4.16-42.el7 will be installed
---> Package php-mbstring.x86_64 0:5.4.16-42.el7 will be installed
---> Package php-xml.x86_64 0:5.4.16-42.el7 will be installed
--> Processing Dependency: libxslt.so.1(LIBXML2_1.0.24)(64bit) for package: php-xml-5.4.16-42.el7.x86_64
--> Processing Dependency: libxslt.so.1(LIBXML2_1.0.22)(64bit) for package: php-xml-5.4.16-42.el7.x86_64
--> Processing Dependency: libxslt.so.1(LIBXML2_1.0.18)(64bit) for package: php-xml-5.4.16-42.el7.x86_64
--> Processing Dependency: libxslt.so.1(LIBXML2_1.0.13)(64bit) for package: php-xml-5.4.16-42.el7.x86_64
--> Processing Dependency: libxslt.so.1(LIBXML2_1.0.11)(64bit) for package: php-xml-5.4.16-42.el7.x86_64
--> Processing Dependency: libxslt.so.1()(64bit) for package: php-xml-5.4.16-42.el7.x86_64
--> Processing Dependency: libexslt.so.0()(64bit) for package: php-xml-5.4.16-42.el7.x86_64
--> Running transaction check
---> Package dejavu-fonts-common.noarch 0:2.33-6.el7 will be installed
--> Processing Dependency: fontpackages-filesystem for package: dejavu-fonts-common-2.33-6.el7.noarch
---> Package libXpm.x86_64 0:3.5.11-3.el7 will be installed
---> Package libxslt.x86_64 0:1.1.28-5.el7 will be installed
---> Package t1lib.x86_64 0:5.1.2-14.el7 will be installed
--> Running transaction check
---> Package fontpackages-filesystem.noarch 0:1.44-8.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================
Installing:
zabbix-get x86_64 3.2.3-1.el7 zabbix 235 k
zabbix-server-mysql x86_64 3.2.3-1.el7 zabbix 1.8 M
zabbix-web-mysql noarch 3.2.3-1.el7 zabbix 5.3 k
Installing for dependencies:
OpenIPMI-libs x86_64 2.0.19-15.el7 base 502 k
OpenIPMI-modalias x86_64 2.0.19-15.el7 base 15 k
dejavu-fonts-common noarch 2.33-6.el7 base 64 k
dejavu-sans-fonts noarch 2.33-6.el7 base 1.4 M
fontpackages-filesystem noarch 1.44-8.el7 base 9.9 k
fping x86_64 3.10-4.el7 epel 46 k
iksemel x86_64 1.4-6.el7 epel 50 k
libXpm x86_64 3.5.11-3.el7 base 54 k
libtool-ltdl x86_64 2.4.2-21.el7_2 base 49 k
libxslt x86_64 1.1.28-5.el7 base 242 k
net-snmp-libs x86_64 1:5.7.2-24.el7_2.1 base 747 k
php-bcmath x86_64 5.4.16-42.el7 base 57 k
php-gd x86_64 5.4.16-42.el7 base 127 k
php-ldap x86_64 5.4.16-42.el7 base 52 k
php-mbstring x86_64 5.4.16-42.el7 base 505 k
php-xml x86_64 5.4.16-42.el7 base 125 k
t1lib x86_64 5.1.2-14.el7 base 166 k
unixODBC x86_64 2.3.1-11.el7 base 413 k
zabbix-web noarch 3.2.3-1.el7 zabbix 3.6 M
Transaction Summary
=============================================================================================================================
Install 3 Packages (+19 Dependent packages)
Total download size: 10 M
Installed size: 50 M
Downloading packages:
(1/22): fontpackages-filesystem-1.44-8.el7.noarch.rpm | 9.9 kB 00:00:00
(2/22): OpenIPMI-modalias-2.0.19-15.el7.x86_64.rpm | 15 kB 00:00:00
(3/22): dejavu-fonts-common-2.33-6.el7.noarch.rpm | 64 kB 00:00:00
(4/22): OpenIPMI-libs-2.0.19-15.el7.x86_64.rpm | 502 kB 00:00:00
NOKEY
Public key for fping-3.10-4.el7.x86_64.rpm is not installed
(5/22): fping-3.10-4.el7.x86_64.rpm | 46 kB 00:00:00
(6/22): libxslt-1.1.28-5.el7.x86_64.rpm | 242 kB 00:00:00
(7/22): libXpm-3.5.11-3.el7.x86_64.rpm | 54 kB 00:00:00
(8/22): libtool-ltdl-2.4.2-21.el7_2.x86_64.rpm | 49 kB 00:00:00
(9/22): php-bcmath-5.4.16-42.el7.x86_64.rpm | 57 kB 00:00:00
(10/22): dejavu-sans-fonts-2.33-6.el7.noarch.rpm | 1.4 MB 00:00:00
(11/22): php-ldap-5.4.16-42.el7.x86_64.rpm | 52 kB 00:00:00
(12/22): net-snmp-libs-5.7.2-24.el7_2.1.x86_64.rpm | 747 kB 00:00:00
(13/22): t1lib-5.1.2-14.el7.x86_64.rpm | 166 kB 00:00:00
(14/22): php-mbstring-5.4.16-42.el7.x86_64.rpm | 505 kB 00:00:00
(15/22): php-gd-5.4.16-42.el7.x86_64.rpm | 127 kB 00:00:00
(16/22): iksemel-1.4-6.el7.x86_64.rpm | 50 kB 00:00:00
(17/22): php-xml-5.4.16-42.el7.x86_64.rpm | 125 kB 00:00:00
(18/22): unixODBC-2.3.1-11.el7.x86_64.rpm | 413 kB 00:00:00
4fe591: NOKEY
Public key for zabbix-get-3.2.3-1.el7.x86_64.rpm is not installed
(19/22): zabbix-get-3.2.3-1.el7.x86_64.rpm | 235 kB 00:00:01
(20/22): zabbix-web-3.2.3-1.el7.noarch.rpm | 3.6 MB 00:00:09
(21/22): zabbix-web-mysql-3.2.3-1.el7.noarch.rpm | 5.3 kB 00:00:00
(22/22): zabbix-server-mysql-3.2.3-1.el7.x86_64.rpm | 1.8 MB 00:00:11
-----------------------------------------------------------------------------------------------------------------------------
Total 827 kB/s | 10 MB 00:00:12
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-3.2-1.el7.noarch (installed)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
Importing GPG key 0x352C64E5:
Userid : "Fedora EPEL (7) <epel@fedoraproject.org>"
Fingerprint: 91e9 7d7c 4a5e 96f1 7f3e 888f 6a2f aea2 352c 64e5
Package : epel-release-7-9.noarch (installed)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
Installing : iksemel-1.4-6.el7.x86_64 1/22
Installing : OpenIPMI-modalias-2.0.19-15.el7.x86_64 2/22
Installing : OpenIPMI-libs-2.0.19-15.el7.x86_64 3/22
Installing : 1:net-snmp-libs-5.7.2-24.el7_2.1.x86_64 4/22
Installing : libXpm-3.5.11-3.el7.x86_64 5/22
Installing : libxslt-1.1.28-5.el7.x86_64 6/22
Installing : php-xml-5.4.16-42.el7.x86_64 7/22
Installing : php-bcmath-5.4.16-42.el7.x86_64 8/22
Installing : t1lib-5.1.2-14.el7.x86_64 9/22
Installing : php-gd-5.4.16-42.el7.x86_64 10/22
Installing : libtool-ltdl-2.4.2-21.el7_2.x86_64 11/22
Installing : unixODBC-2.3.1-11.el7.x86_64 12/22
Installing : fping-3.10-4.el7.x86_64 13/22
Installing : fontpackages-filesystem-1.44-8.el7.noarch 14/22
Installing : dejavu-fonts-common-2.33-6.el7.noarch 15/22
Installing : dejavu-sans-fonts-2.33-6.el7.noarch 16/22
Installing : php-ldap-5.4.16-42.el7.x86_64 17/22
Installing : php-mbstring-5.4.16-42.el7.x86_64 18/22
Installing : zabbix-web-mysql-3.2.3-1.el7.noarch 19/22
Installing : zabbix-web-3.2.3-1.el7.noarch 20/22
Installing : zabbix-server-mysql-3.2.3-1.el7.x86_64 21/22
Installing : zabbix-get-3.2.3-1.el7.x86_64 22/22
Verifying : zabbix-get-3.2.3-1.el7.x86_64 1/22
Verifying : php-xml-5.4.16-42.el7.x86_64 2/22
Verifying : OpenIPMI-libs-2.0.19-15.el7.x86_64 3/22
Verifying : php-mbstring-5.4.16-42.el7.x86_64 4/22
Verifying : php-ldap-5.4.16-42.el7.x86_64 5/22
Verifying : fontpackages-filesystem-1.44-8.el7.noarch 6/22
Verifying : zabbix-web-mysql-3.2.3-1.el7.noarch 7/22
Verifying : fping-3.10-4.el7.x86_64 8/22
Verifying : php-gd-5.4.16-42.el7.x86_64 9/22
Verifying : zabbix-server-mysql-3.2.3-1.el7.x86_64 10/22
Verifying : dejavu-fonts-common-2.33-6.el7.noarch 11/22
Verifying : libtool-ltdl-2.4.2-21.el7_2.x86_64 12/22
Verifying : zabbix-web-3.2.3-1.el7.noarch 13/22
Verifying : t1lib-5.1.2-14.el7.x86_64 14/22
Verifying : php-bcmath-5.4.16-42.el7.x86_64 15/22
Verifying : unixODBC-2.3.1-11.el7.x86_64 16/22
Verifying : libxslt-1.1.28-5.el7.x86_64 17/22
Verifying : libXpm-3.5.11-3.el7.x86_64 18/22
Verifying : dejavu-sans-fonts-2.33-6.el7.noarch 19/22
Verifying : 1:net-snmp-libs-5.7.2-24.el7_2.1.x86_64 20/22
Verifying : OpenIPMI-modalias-2.0.19-15.el7.x86_64 21/22
Verifying : iksemel-1.4-6.el7.x86_64 22/22
Installed:
zabbix-get.x86_64 0:3.2.3-1.el7 zabbix-server-mysql.x86_64 0:3.2.3-1.el7 zabbix-web-mysql.noarch 0:3.2.3-1.el7
Dependency Installed:
OpenIPMI-libs.x86_64 0:2.0.19-15.el7 OpenIPMI-modalias.x86_64 0:2.0.19-15.el7 dejavu-fonts-common.noarch 0:2.33-6.el7
dejavu-sans-fonts.noarch 0:2.33-6.el7 fontpackages-filesystem.noarch 0:1.44-8.el7 fping.x86_64 0:3.10-4.el7
iksemel.x86_64 0:1.4-6.el7 libXpm.x86_64 0:3.5.11-3.el7 libtool-ltdl.x86_64 0:2.4.2-21.el7_2
libxslt.x86_64 0:1.1.28-5.el7 net-snmp-libs.x86_64 1:5.7.2-24.el7_2.1 php-bcmath.x86_64 0:5.4.16-42.el7
php-gd.x86_64 0:5.4.16-42.el7 php-ldap.x86_64 0:5.4.16-42.el7 php-mbstring.x86_64 0:5.4.16-42.el7
php-xml.x86_64 0:5.4.16-42.el7 t1lib.x86_64 0:5.1.2-14.el7 unixODBC.x86_64 0:2.3.1-11.el7
zabbix-web.noarch 0:3.2.3-1.el7
Complete!
[root@localhost ~]# cd /usr/share/doc/zabbix-server-mysql-3.2.3/
[root@localhost zabbix-server-mysql-3.2.3]# ls
AUTHORS ChangeLog COPYING create.sql.gz NEWS README
[root@localhost zabbix-server-mysql-3.2.3]# zcat create.sql.gz |mysql -uroot -pqwe123!@# zabbix
-bash: !@#: event not found
[root@localhost zabbix-server-mysql-3.2.3]# yum install net-tools
Loaded plugins: fastestmirror, langpacks
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Loading mirror speeds from cached hostfile
* base: mirrors.163.com
* epel: ftp.cuhk.edu.hk
* extras: mirrors.163.com
* updates: mirrors.163.com
Package net-tools-2.0-0.17.20131004git.el7.x86_64 already installed and latest version
Nothing to do
[root@localhost zabbix-server-mysql-3.2.3]# zcat create.sql.gz | mysql -uroot -p qwe123!@# zabbix
-bash: !@#: event not found
[root@localhost zabbix-server-mysql-3.2.3]# zcat create.sql.gz | mysql -uroot -p'qwe123!@#' zabbix
[root@localhost zabbix-server-mysql-3.2.3]# ls
AUTHORS ChangeLog COPYING create.sql.gz NEWS README
[root@localhost zabbix-server-mysql-3.2.3]# vi /etc/zabbix/zabbix_server.conf
[root@localhost zabbix-server-mysql-3.2.3]# vi /etc/httpd/conf.d/zabbix.conf
[root@localhost zabbix-server-mysql-3.2.3]# systemctl enable zabbix-server
ln -s '/usr/lib/systemd/system/zabbix-server.service' '/etc/systemd/system/multi-user.target.wants/zabbix-server.service'
[root@localhost zabbix-server-mysql-3.2.3]# systemctl start zabbix-server
Job for zabbix-server.service failed. See 'systemctl status zabbix-server.service' and 'journalctl -xn' for details.
[root@localhost zabbix-server-mysql-3.2.3]# ps -ef |grep zabbix
zabbix 2971 1 0 11:04 ? 00:00:00 /usr/sbin/zabbix_server -c /etc/zabbix/zabbix_server.conf
root 3075 2605 0 11:05 pts/0 00:00:00 grep --color=auto zabbix
[root@localhost zabbix-server-mysql-3.2.3]# systemctl status zabbix-server
zabbix-server.service - Zabbix Server
Loaded: loaded (/usr/lib/systemd/system/zabbix-server.service; enabled)
Active: activating (auto-restart) (Result: signal) since Sat 2017-02-25 11:06:07 CST; 7s ago
Process: 3162 ExecStart=/usr/sbin/zabbix_server -c $CONFFILE (code=killed, signal=SEGV)
Feb 25 11:06:07 localhost.localdomain systemd[1]: Failed to start Zabbix Server.
Feb 25 11:06:07 localhost.localdomain systemd[1]: Unit zabbix-server.service entered failed state.
[root@localhost zabbix-server-mysql-3.2.3]# cd
[root@localhost ~]# journalctl -xn
-- Logs begin at Sat 2017-02-25 10:36:59 CST, end at Sat 2017-02-25 11:06:27 CST. --
Feb 25 11:06:17 localhost.localdomain systemd[1]: Failed to start Zabbix Server.
-- Subject: Unit zabbix-server.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit zabbix-server.service has failed.
--
-- The result is failed.
Feb 25 11:06:17 localhost.localdomain systemd[1]: Unit zabbix-server.service entered failed state.
Feb 25 11:06:17 localhost.localdomain kernel: zabbix_server[3170]: segfault at 18 ip 00007f9b24b42c00 sp 00007fff8f1e19c8 err
Feb 25 11:06:27 localhost.localdomain systemd[1]: zabbix-server.service holdoff time over, scheduling restart.
Feb 25 11:06:27 localhost.localdomain systemd[1]: Stopping Zabbix Server...
-- Subject: Unit zabbix-server.service has begun shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit zabbix-server.service has begun shutting down.
Feb 25 11:06:27 localhost.localdomain systemd[1]: Starting Zabbix Server...
-- Subject: Unit zabbix-server.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
[root@localhost ~]# rpm -qa | grep gnutls
gnutls-3.3.8-12.el7.x86_64
[root@localhost ~]# yum update trousers
Loaded plugins: fastestmirror, langpacks
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Loading mirror speeds from cached hostfile
* base: mirrors.163.com
* epel: ftp.cuhk.edu.hk
* extras: mirrors.163.com
* updates: mirrors.163.com
Resolving Dependencies
--> Running transaction check
---> Package trousers.x86_64 0:0.3.11.2-3.el7 will be updated
---> Package trousers.x86_64 0:0.3.13-1.el7 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================
Updating:
trousers x86_64 0.3.13-1.el7 base 289 k
Transaction Summary
=============================================================================================================================
Upgrade 1 Package
Total download size: 289 k
Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
trousers-0.3.13-1.el7.x86_64.rpm | 289 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Updating : trousers-0.3.13-1.el7.x86_64 1/2
Cleanup : trousers-0.3.11.2-3.el7.x86_64 2/2
Verifying : trousers-0.3.13-1.el7.x86_64 1/2
Verifying : trousers-0.3.11.2-3.el7.x86_64 2/2
Updated:
trousers.x86_64 0:0.3.13-1.el7
Complete!
[root@localhost ~]# systemctl start zabbix-server
[root@localhost ~]# systemctl status zabbix-server
zabbix-server.service - Zabbix Server
Loaded: loaded (/usr/lib/systemd/system/zabbix-server.service; enabled)
Active: active (running) since Sat 2017-02-25 11:07:31 CST; 7s ago
Process: 3247 ExecStart=/usr/sbin/zabbix_server -c $CONFFILE (code=exited, status=0/SUCCESS)
Main PID: 3249 (zabbix_server)
CGroup: /system.slice/zabbix-server.service
├─2971 /usr/sbin/zabbix_server -c /etc/zabbix/zabbix_server.conf
├─3079 /usr/sbin/zabbix_server -c /etc/zabbix/zabbix_server.conf
├─3249 /usr/sbin/zabbix_server -c /etc/zabbix/zabbix_server.conf
├─3254 /usr/sbin/zabbix_server: configuration syncer [waiting 60 sec for processes]
├─3255 /usr/sbin/zabbix_server: db watchdog [synced alerts config in 0.001052 sec, idle 60 sec]
├─3256 /usr/sbin/zabbix_server: poller #1 [got 0 values in 0.000003 sec, idle 5 sec]
├─3258 /usr/sbin/zabbix_server: poller #2 [got 0 values in 0.000004 sec, idle 5 sec]
├─3259 /usr/sbin/zabbix_server: poller #3 [got 0 values in 0.000005 sec, idle 5 sec]
├─3260 /usr/sbin/zabbix_server: poller #4 [got 0 values in 0.000003 sec, idle 5 sec]
├─3261 /usr/sbin/zabbix_server: poller #5 [got 0 values in 0.000004 sec, idle 5 sec]
├─3262 /usr/sbin/zabbix_server: unreachable poller #1 [got 0 values in 0.000004 sec, idle 5 sec]
├─3263 /usr/sbin/zabbix_server: trapper #1 [processed data in 0.000000 sec, waiting for connection]
├─3264 /usr/sbin/zabbix_server: trapper #2 [processed data in 0.000000 sec, waiting for connection]
├─3265 /usr/sbin/zabbix_server: trapper #3 [processed data in 0.000000 sec, waiting for connection]
├─3266 /usr/sbin/zabbix_server: trapper #4 [processed data in 0.000000 sec, waiting for connection]
├─3267 /usr/sbin/zabbix_server: trapper #5 [processed data in 0.000000 sec, waiting for connection]
├─3268 /usr/sbin/zabbix_server: icmp pinger #1 [got 0 values in 0.000004 sec, idle 5 sec]
├─3269 /usr/sbin/zabbix_server: alerter [sent alerts: 0 success, 0 fail in 0.000590 sec, idle 30 sec]
├─3271 /usr/sbin/zabbix_server: housekeeper [startup idle for 30 minutes]
├─3272 /usr/sbin/zabbix_server: timer #1 [processed 0 triggers, 0 events in 0.000000 sec, 0 maintenances in 0.0...
├─3273 /usr/sbin/zabbix_server: http poller #1 [got 0 values in 0.000454 sec, idle 5 sec]
├─3274 /usr/sbin/zabbix_server: discoverer #1 [processed 0 rules in 0.000393 sec, idle 60 sec]
├─3275 /usr/sbin/zabbix_server: history syncer #1 [synced 0 items in 0.000000 sec, idle 1 sec]
├─3276 /usr/sbin/zabbix_server: history syncer #2 [synced 0 items in 0.000000 sec, idle 1 sec]
├─3278 /usr/sbin/zabbix_server: history syncer #3 [synced 0 items in 0.000000 sec, idle 1 sec]
├─3280 /usr/sbin/zabbix_server: history syncer #4 [synced 0 items in 0.000000 sec, idle 1 sec]
├─3282 /usr/sbin/zabbix_server: escalator #1 [processed 0 escalations in 0.000487 sec, idle 3 sec]
├─3283 /usr/sbin/zabbix_server: proxy poller #1 [exchanged data with 0 proxies in 0.000002 sec, idle 5 sec]
├─3284 /usr/sbin/zabbix_server: self-monitoring [processed data in 0.000002 sec, idle 1 sec]
└─3285 /usr/sbin/zabbix_server: task manager [processed 0 task(s) in 0.000442 sec, idle 5 sec]
Feb 25 11:07:31 localhost.localdomain systemd[1]: Started Zabbix Server.
Feb 25 11:07:32 localhost.localdomain systemd[1]: Started Zabbix Server.
[root@localhost ~]# systemctl restart httpd
[root@localhost ~]# yum -y install zabbix zabbix-agent
Loaded plugins: fastestmirror, langpacks
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Loading mirror speeds from cached hostfile
* base: mirrors.163.com
* epel: ftp.cuhk.edu.hk
* extras: mirrors.163.com
* updates: mirrors.163.com
Resolving Dependencies
--> Running transaction check
---> Package zabbix-agent.x86_64 0:3.2.3-1.el7 will be installed
---> Package zabbix22.x86_64 0:2.2.16-1.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================
Installing:
zabbix-agent x86_64 3.2.3-1.el7 zabbix 338 k
zabbix22 x86_64 2.2.16-1.el7 epel 223 k
Transaction Summary
=============================================================================================================================
Install 2 Packages
Total download size: 561 k
Installed size: 1.9 M
Downloading packages:
(1/2): zabbix22-2.2.16-1.el7.x86_64.rpm | 223 kB 00:00:00
(2/2): zabbix-agent-3.2.3-1.el7.x86_64.rpm | 338 kB 00:00:02
-----------------------------------------------------------------------------------------------------------------------------
Total 204 kB/s | 561 kB 00:00:02
Running transaction check
Running transaction test
Transaction check error:
l7.x86_64
ix-get-3.2.3-1.el7.x86_64
.2.3-1.el7.x86_64
Error Summary
-------------
[root@localhost ~]# yum clean
Loaded plugins: fastestmirror, langpacks
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Error: clean requires an option: headers, packages, metadata, dbcache, plugins, expire-cache, rpmdb, all
[root@localhost ~]# yum clear
Loaded plugins: fastestmirror, langpacks
No such command: clear. Please use /usr/bin/yum --help
[root@localhost ~]# yum clean all
Loaded plugins: fastestmirror, langpacks
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Cleaning repos: base epel extras updates zabbix zabbix-non-supported
Cleaning up everything
Cleaning up list of fastest mirrors
[root@localhost ~]# yum -y install zabbix zabbix-agent
Loaded plugins: fastestmirror, langpacks
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
base | 3.6 kB 00:00:00
epel/x86_64/metalink | 5.9 kB 00:00:00
epel | 4.3 kB 00:00:00
extras | 3.4 kB 00:00:00
updates | 3.4 kB 00:00:00
zabbix | 951 B 00:00:00
zabbix-non-supported | 951 B 00:00:00
(1/7): base/7/x86_64/group_gz | 155 kB 00:00:00
(2/7): extras/7/x86_64/primary_db | 122 kB 00:00:00
(3/7): updates/7/x86_64/primary_db | 2.9 MB 00:00:01
(4/7): epel/x86_64/updateinfo | 741 kB 00:00:05
(5/7): epel/x86_64/group_gz | 170 kB 00:00:10
(6/7): epel/x86_64/primary_db | 4.5 MB 00:00:22
base/7/x86_64/primary_db FAILED ] 6.2 B/s | 9.7 MB 211:51:57 ETA
d the last 30 seconds')
Trying other mirror.
(7/7): base/7/x86_64/primary_db | 5.6 MB 00:00:02
(1/2): zabbix-non-supported/x86_64/primary | 1.6 kB 00:00:00
(2/2): zabbix/x86_64/primary | 8.2 kB 00:00:00
Determining fastest mirrors
* base: mirrors.163.com
* epel: ftp.cuhk.edu.hk
* extras: mirrors.163.com
* updates: mirrors.163.com
zabbix 53/53
zabbix-non-supported 4/4
Resolving Dependencies
--> Running transaction check
---> Package zabbix-agent.x86_64 0:3.2.3-1.el7 will be installed
---> Package zabbix22.x86_64 0:2.2.16-1.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================
Installing:
zabbix-agent x86_64 3.2.3-1.el7 zabbix 338 k
zabbix22 x86_64 2.2.16-1.el7 epel 223 k
Transaction Summary
=============================================================================================================================
Install 2 Packages
Total download size: 561 k
Installed size: 1.9 M
Downloading packages:
(1/2): zabbix22-2.2.16-1.el7.x86_64.rpm | 223 kB 00:00:00
(2/2): zabbix-agent-3.2.3-1.el7.x86_64.rpm | 338 kB 00:00:02
-----------------------------------------------------------------------------------------------------------------------------
Total 206 kB/s | 561 kB 00:00:02
Running transaction check
Running transaction test
Transaction check error:
l7.x86_64
ix-get-3.2.3-1.el7.x86_64
.2.3-1.el7.x86_64
Error Summary
-------------
[root@localhost ~]# yum -y install zabbix-agent
Loaded plugins: fastestmirror, langpacks
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Loading mirror speeds from cached hostfile
* base: mirrors.163.com
* epel: ftp.cuhk.edu.hk
* extras: mirrors.163.com
* updates: mirrors.163.com
Resolving Dependencies
--> Running transaction check
---> Package zabbix-agent.x86_64 0:3.2.3-1.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================
Installing:
zabbix-agent x86_64 3.2.3-1.el7 zabbix 338 k
Transaction Summary
=============================================================================================================================
Install 1 Package
Total size: 338 k
Installed size: 1.1 M
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : zabbix-agent-3.2.3-1.el7.x86_64 1/1
Verifying : zabbix-agent-3.2.3-1.el7.x86_64 1/1
Installed:
zabbix-agent.x86_64 0:3.2.3-1.el7
Complete!
[root@localhost ~]# vi /etc/zabbix/zabbix_agentd.conf
[root@localhost ~]# vi /etc/zabbix/zabbix_agentd.conf
[root@localhost ~]# vi /etc/sysconfig/iptables
[root@localhost ~]# systemctl restart iptables.service
[root@localhost ~]# systemctl restart zabbix-server
[root@localhost ~]# systemctl restart zabbix-agent
[root@localhost ~]# vi /etc/zabbix/zabbix_agentd.conf
[root@localhost ~]# systemctl restart zabbix-agent
[root@localhost ~]# systemctl restart zabbix-agent
[root@localhost ~]# vi /etc/zabbix/zabbix_agentd.conf
[root@localhost ~]# reboot
Connection closed by foreign host.
Disconnected from remote host(10.100.21.111:22) at 11:27:10.
Type `help' to learn how to use Xshell prompt.
[c:\~]$ ssh 10.100.21.111
Connecting to 10.100.21.111:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.
WARNING! The remote SSH server rejected X11 forwarding request.
Last failed login: Sat Feb 25 11:28:03 CST 2017 from fanbojie.qkcorp.qiku.com on ssh:notty
There were 2 failed login attempts since the last successful login.
Last login: Sat Feb 25 10:39:41 2017 from fanbojie.qkcorp.qiku.com
[root@localhost ~]# vi /etc/sysconfig/iptables
[root@localhost ~]# systemctl status iptables
iptables.service - IPv4 firewall with iptables
Loaded: loaded (/usr/lib/systemd/system/iptables.service; enabled)
Active: active (exited) since Sat 2017-02-25 11:27:38 CST; 2min 2s ago
Process: 700 ExecStart=/usr/libexec/iptables/iptables.init start (code=exited, status=0/SUCCESS)
Main PID: 700 (code=exited, status=0/SUCCESS)
CGroup: /system.slice/iptables.service
Feb 25 11:27:37 localhost.localdomain systemd[1]: Starting IPv4 firewall with iptables...
Feb 25 11:27:38 localhost.localdomain iptables.init[700]: iptables: Applying firewall rules: [ OK ]
Feb 25 11:27:38 localhost.localdomain systemd[1]: Started IPv4 firewall with iptables.
[root@localhost ~]# vi /etc/services
[root@localhost ~]# systemctl stop iptables
[root@localhost ~]# systemctl status zabbix-agent
zabbix-agent.service - Zabbix Agent
Loaded: loaded (/usr/lib/systemd/system/zabbix-agent.service; disabled)
Active: inactive (dead)
[root@localhost ~]# systemctl start zabbix-agent
[root@localhost ~]# systemctl status zabbix-agent
zabbix-agent.service - Zabbix Agent
Loaded: loaded (/usr/lib/systemd/system/zabbix-agent.service; disabled)
Active: active (running) since Sat 2017-02-25 11:32:03 CST; 1s ago
Process: 2593 ExecStart=/usr/sbin/zabbix_agentd -c $CONFFILE (code=exited, status=0/SUCCESS)
Main PID: 2595 (zabbix_agentd)
CGroup: /system.slice/zabbix-agent.service
├─2595 /usr/sbin/zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf
├─2596 /usr/sbin/zabbix_agentd: collector [idle 1 sec]
├─2597 /usr/sbin/zabbix_agentd: listener #1 [waiting for connection]
├─2598 /usr/sbin/zabbix_agentd: listener #2 [waiting for connection]
├─2599 /usr/sbin/zabbix_agentd: listener #3 [waiting for connection]
└─2600 /usr/sbin/zabbix_agentd: active checks #1 [idle 1 sec]
Feb 25 11:32:03 localhost.localdomain systemd[1]: Starting Zabbix Agent...
Feb 25 11:32:03 localhost.localdomain systemd[1]: Started Zabbix Agent.
[root@localhost ~]# systemctl enable zabbix-agent
ln -s '/usr/lib/systemd/system/zabbix-agent.service' '/etc/systemd/system/multi-user.target.wants/zabbix-agent.service'
[root@localhost ~]# systemctl start iptables
[root@localhost ~]# systemctl status zabbix-server
zabbix-server.service - Zabbix Server
Loaded: loaded (/usr/lib/systemd/system/zabbix-server.service; enabled)
Active: active (running) since Sat 2017-02-25 11:27:38 CST; 5min ago
Main PID: 1173 (zabbix_server)
CGroup: /system.slice/zabbix-server.service
├─1173 /usr/sbin/zabbix_server -c /etc/zabbix/zabbix_server.conf
├─2386 /usr/sbin/zabbix_server: configuration syncer [synced configuration in 0.005284 sec, idle 60 sec]
├─2387 /usr/sbin/zabbix_server: db watchdog [synced alerts config in 0.001493 sec, idle 60 sec]
├─2389 /usr/sbin/zabbix_server: poller #1 [got 0 values in 0.000002 sec, idle 3 sec]
├─2390 /usr/sbin/zabbix_server: poller #2 [got 0 values in 0.000003 sec, idle 3 sec]
├─2391 /usr/sbin/zabbix_server: poller #3 [got 0 values in 0.000003 sec, idle 3 sec]
├─2392 /usr/sbin/zabbix_server: poller #4 [got 0 values in 0.000004 sec, idle 3 sec]
├─2393 /usr/sbin/zabbix_server: poller #5 [got 1 values in 0.000032 sec, idle 3 sec]
├─2394 /usr/sbin/zabbix_server: unreachable poller #1 [got 0 values in 0.000002 sec, idle 5 sec]
├─2395 /usr/sbin/zabbix_server: trapper #1 [processed data in 0.000000 sec, waiting for connection]
├─2396 /usr/sbin/zabbix_server: trapper #2 [processed data in 0.000000 sec, waiting for connection]
├─2397 /usr/sbin/zabbix_server: trapper #3 [processed data in 0.000894 sec, waiting for connection]
├─2398 /usr/sbin/zabbix_server: trapper #4 [processed data in 0.000000 sec, waiting for connection]
├─2399 /usr/sbin/zabbix_server: trapper #5 [processed data in 0.000000 sec, waiting for connection]
├─2400 /usr/sbin/zabbix_server: icmp pinger #1 [got 0 values in 0.000001 sec, idle 5 sec]
├─2402 /usr/sbin/zabbix_server: alerter [sent alerts: 0 success, 0 fail in 0.000283 sec, idle 30 sec]
├─2404 /usr/sbin/zabbix_server: housekeeper [startup idle for 30 minutes]
├─2405 /usr/sbin/zabbix_server: timer #1 [processed 1 triggers, 0 events in 0.000216 sec, 0 maintenances in 0.0...
├─2409 /usr/sbin/zabbix_server: http poller #1 [got 0 values in 0.000294 sec, idle 5 sec]
├─2411 /usr/sbin/zabbix_server: discoverer #1 [processed 0 rules in 0.000294 sec, idle 60 sec]
├─2414 /usr/sbin/zabbix_server: history syncer #1 [synced 0 items in 0.000003 sec, idle 1 sec]
├─2416 /usr/sbin/zabbix_server: history syncer #2 [synced 0 items in 0.000003 sec, idle 1 sec]
├─2418 /usr/sbin/zabbix_server: history syncer #3 [synced 1 items in 0.000414 sec, idle 1 sec]
├─2420 /usr/sbin/zabbix_server: history syncer #4 [synced 0 items in 0.000003 sec, idle 1 sec]
├─2422 /usr/sbin/zabbix_server: escalator #1 [processed 0 escalations in 0.000480 sec, idle 3 sec]
├─2423 /usr/sbin/zabbix_server: proxy poller #1 [exchanged data with 0 proxies in 0.000002 sec, idle 5 sec]
├─2424 /usr/sbin/zabbix_server: self-monitoring [processed data in 0.000003 sec, idle 1 sec]
└─2425 /usr/sbin/zabbix_server: task manager [processed 0 task(s) in 0.000309 sec, idle 5 sec]
Feb 25 11:27:38 localhost.localdomain systemd[1]: Starting Zabbix Server...
Feb 25 11:27:38 localhost.localdomain systemd[1]: zabbix-server.service: Supervising process 1173 which is not our ch...xits.
Feb 25 11:27:38 localhost.localdomain systemd[1]: Started Zabbix Server.
Hint: Some lines were ellipsized, use -l to show in full.
[root@localhost ~]# systemctl status httpd
httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled)
Active: inactive (dead)
Docs: man:httpd(8)
man:apachectl(8)
[root@localhost ~]# systemctl start httpd
[root@localhost ~]# vi /etc/zabbix/
web/ zabbix_agentd.conf zabbix_agentd.d/ zabbix_server.conf
[root@localhost ~]# vi /etc/zabbix/zabbix_agentd.conf
[root@localhost ~]# cd /etc/zabbix
[root@localhost zabbix]# ls
web zabbix_agentd.conf zabbix_agentd.d zabbix_server.conf
[root@localhost zabbix]# vi zabbix_server.conf
[root@localhost zabbix]# vi /etc/sysconfig/iptables
[root@localhost zabbix]# systemctl restart iptables
[root@localhost zabbix]# vi zabbix_agentd.conf
[root@localhost zabbix]# systemctl restart zabbix-agent
22 wget -P /etc/yum.repos.d http://mirrors.aliyun.com/repo/Centos-7.repo
23 yum -y install mariadb mariadb-server php php-mysql httpd
24 systemctl enable mariadb
25 systemctl start mariadb
26 mysql_secure_installation
mysql -u root -p
create database zabbix default character set utf8 collate utf8_bin;
grant all on zabbix.* to ‘zabbix’@’%’ identified by ‘zabbix’;
mysql -uroot -p’qwe123!@#’ -e “grant all on zabbix.* to ‘zabbix’@’%’ identified by ‘zabbix’;”
29 systemctl start httpd
[root@localhost ~]# netstat -tunl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN
tcp6 0 0 :::80 :::* LISTEN
tcp6 0 0 :::22 :::* LISTEN
tcp6 0 0 ::1:25 :::* LISTEN
udp 0 0 0.0.0.0:123 0.0.0.0:*
udp 0 0 127.0.0.1:323 0.0.0.0:*
udp6 0 0 :::123 :::*
udp6 0 0 ::1:323 :::*
[root@localhost ~]# rpm -ivh http://mirrors.aliyun.com/epel/7/x86_64/e/epel-release-7-9.noarch.rpm
Retrieving http://mirrors.aliyun.com/epel/7/x86_64/e/epel-release-7-9.noarch.rpm
warning: /var/tmp/rpm-tmp.n5mYie: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY
Preparing... ################################# [100%]
Updating / installing...
1:epel-release-7-9 ################################# [100%]
[root@localhost ~]# rpm -ivh http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-release-3.2-1.el7.noarch.rpm
Retrieving http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-release-3.2-1.el7.noarch.rpm
warning: /var/tmp/rpm-tmp.ag0w83: Header V4 RSA/SHA512 Signature, key ID a14fe591: NOKEY
Preparing... ################################# [100%]
Updating / installing...
1:zabbix-release-3.2-1.el7 ################################# [100%]
[root@localhost ~]# yum -y install zabbix-server-mysql zabbix-web-mysql zabbix-get
Loaded plugins: fastestmirror, langpacks
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
epel/x86_64/metalink | 5.9 kB 00:00:00
epel | 4.3 kB 00:00:00
zabbix | 951 B 00:00:00
zabbix-non-supported | 951 B 00:00:00
(1/3): epel/x86_64/group_gz | 170 kB 00:00:01
(2/3): epel/x86_64/updateinfo | 741 kB 00:00:07
(3/3): epel/x86_64/primary_db | 4.5 MB 00:00:10
(1/2): zabbix-non-supported/x86_64/primary | 1.6 kB 00:00:00
(2/2): zabbix/x86_64/primary | 8.2 kB 00:00:00
Loading mirror speeds from cached hostfile
* base: mirrors.163.com
* epel: ftp.cuhk.edu.hk
* extras: mirrors.163.com
* updates: mirrors.163.com
zabbix 53/53
zabbix-non-supported 4/4
Resolving Dependencies
--> Running transaction check
---> Package zabbix-get.x86_64 0:3.2.3-1.el7 will be installed
---> Package zabbix-server-mysql.x86_64 0:3.2.3-1.el7 will be installed
--> Processing Dependency: fping for package: zabbix-server-mysql-3.2.3-1.el7.x86_64
--> Processing Dependency: libiksemel.so.3()(64bit) for package: zabbix-server-mysql-3.2.3-1.el7.x86_64
--> Processing Dependency: libnetsnmp.so.31()(64bit) for package: zabbix-server-mysql-3.2.3-1.el7.x86_64
--> Processing Dependency: libOpenIPMIposix.so.0()(64bit) for package: zabbix-server-mysql-3.2.3-1.el7.x86_64
--> Processing Dependency: libodbc.so.2()(64bit) for package: zabbix-server-mysql-3.2.3-1.el7.x86_64
--> Processing Dependency: libOpenIPMI.so.0()(64bit) for package: zabbix-server-mysql-3.2.3-1.el7.x86_64
---> Package zabbix-web-mysql.noarch 0:3.2.3-1.el7 will be installed
--> Processing Dependency: zabbix-web = 3.2.3-1.el7 for package: zabbix-web-mysql-3.2.3-1.el7.noarch
--> Running transaction check
---> Package OpenIPMI-libs.x86_64 0:2.0.19-15.el7 will be installed
--> Processing Dependency: OpenIPMI-modalias = 2.0.19-15.el7 for package: OpenIPMI-libs-2.0.19-15.el7.x86_64
---> Package fping.x86_64 0:3.10-4.el7 will be installed
---> Package iksemel.x86_64 0:1.4-6.el7 will be installed
---> Package net-snmp-libs.x86_64 1:5.7.2-24.el7_2.1 will be installed
---> Package unixODBC.x86_64 0:2.3.1-11.el7 will be installed
--> Processing Dependency: libltdl.so.7()(64bit) for package: unixODBC-2.3.1-11.el7.x86_64
---> Package zabbix-web.noarch 0:3.2.3-1.el7 will be installed
--> Processing Dependency: php-gd for package: zabbix-web-3.2.3-1.el7.noarch
--> Processing Dependency: php-mbstring for package: zabbix-web-3.2.3-1.el7.noarch
--> Processing Dependency: dejavu-sans-fonts for package: zabbix-web-3.2.3-1.el7.noarch
--> Processing Dependency: php-bcmath for package: zabbix-web-3.2.3-1.el7.noarch
--> Processing Dependency: php-ldap for package: zabbix-web-3.2.3-1.el7.noarch
--> Processing Dependency: php-xml for package: zabbix-web-3.2.3-1.el7.noarch
--> Running transaction check
---> Package OpenIPMI-modalias.x86_64 0:2.0.19-15.el7 will be installed
---> Package dejavu-sans-fonts.noarch 0:2.33-6.el7 will be installed
--> Processing Dependency: dejavu-fonts-common = 2.33-6.el7 for package: dejavu-sans-fonts-2.33-6.el7.noarch
---> Package libtool-ltdl.x86_64 0:2.4.2-21.el7_2 will be installed
---> Package php-bcmath.x86_64 0:5.4.16-42.el7 will be installed
---> Package php-gd.x86_64 0:5.4.16-42.el7 will be installed
--> Processing Dependency: libt1.so.5()(64bit) for package: php-gd-5.4.16-42.el7.x86_64
--> Processing Dependency: libXpm.so.4()(64bit) for package: php-gd-5.4.16-42.el7.x86_64
---> Package php-ldap.x86_64 0:5.4.16-42.el7 will be installed
---> Package php-mbstring.x86_64 0:5.4.16-42.el7 will be installed
---> Package php-xml.x86_64 0:5.4.16-42.el7 will be installed
--> Processing Dependency: libxslt.so.1(LIBXML2_1.0.24)(64bit) for package: php-xml-5.4.16-42.el7.x86_64
--> Processing Dependency: libxslt.so.1(LIBXML2_1.0.22)(64bit) for package: php-xml-5.4.16-42.el7.x86_64
--> Processing Dependency: libxslt.so.1(LIBXML2_1.0.18)(64bit) for package: php-xml-5.4.16-42.el7.x86_64
--> Processing Dependency: libxslt.so.1(LIBXML2_1.0.13)(64bit) for package: php-xml-5.4.16-42.el7.x86_64
--> Processing Dependency: libxslt.so.1(LIBXML2_1.0.11)(64bit) for package: php-xml-5.4.16-42.el7.x86_64
--> Processing Dependency: libxslt.so.1()(64bit) for package: php-xml-5.4.16-42.el7.x86_64
--> Processing Dependency: libexslt.so.0()(64bit) for package: php-xml-5.4.16-42.el7.x86_64
--> Running transaction check
---> Package dejavu-fonts-common.noarch 0:2.33-6.el7 will be installed
--> Processing Dependency: fontpackages-filesystem for package: dejavu-fonts-common-2.33-6.el7.noarch
---> Package libXpm.x86_64 0:3.5.11-3.el7 will be installed
---> Package libxslt.x86_64 0:1.1.28-5.el7 will be installed
---> Package t1lib.x86_64 0:5.1.2-14.el7 will be installed
--> Running transaction check
---> Package fontpackages-filesystem.noarch 0:1.44-8.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================
Installing:
zabbix-get x86_64 3.2.3-1.el7 zabbix 235 k
zabbix-server-mysql x86_64 3.2.3-1.el7 zabbix 1.8 M
zabbix-web-mysql noarch 3.2.3-1.el7 zabbix 5.3 k
Installing for dependencies:
OpenIPMI-libs x86_64 2.0.19-15.el7 base 502 k
OpenIPMI-modalias x86_64 2.0.19-15.el7 base 15 k
dejavu-fonts-common noarch 2.33-6.el7 base 64 k
dejavu-sans-fonts noarch 2.33-6.el7 base 1.4 M
fontpackages-filesystem noarch 1.44-8.el7 base 9.9 k
fping x86_64 3.10-4.el7 epel 46 k
iksemel x86_64 1.4-6.el7 epel 50 k
libXpm x86_64 3.5.11-3.el7 base 54 k
libtool-ltdl x86_64 2.4.2-21.el7_2 base 49 k
libxslt x86_64 1.1.28-5.el7 base 242 k
net-snmp-libs x86_64 1:5.7.2-24.el7_2.1 base 747 k
php-bcmath x86_64 5.4.16-42.el7 base 57 k
php-gd x86_64 5.4.16-42.el7 base 127 k
php-ldap x86_64 5.4.16-42.el7 base 52 k
php-mbstring x86_64 5.4.16-42.el7 base 505 k
php-xml x86_64 5.4.16-42.el7 base 125 k
t1lib x86_64 5.1.2-14.el7 base 166 k
unixODBC x86_64 2.3.1-11.el7 base 413 k
zabbix-web noarch 3.2.3-1.el7 zabbix 3.6 M
Transaction Summary
=============================================================================================================================
Install 3 Packages (+19 Dependent packages)
Total download size: 10 M
Installed size: 50 M
Downloading packages:
(1/22): fontpackages-filesystem-1.44-8.el7.noarch.rpm | 9.9 kB 00:00:00
(2/22): OpenIPMI-modalias-2.0.19-15.el7.x86_64.rpm | 15 kB 00:00:00
(3/22): dejavu-fonts-common-2.33-6.el7.noarch.rpm | 64 kB 00:00:00
(4/22): OpenIPMI-libs-2.0.19-15.el7.x86_64.rpm | 502 kB 00:00:00
NOKEY
Public key for fping-3.10-4.el7.x86_64.rpm is not installed
(5/22): fping-3.10-4.el7.x86_64.rpm | 46 kB 00:00:00
(6/22): libxslt-1.1.28-5.el7.x86_64.rpm | 242 kB 00:00:00
(7/22): libXpm-3.5.11-3.el7.x86_64.rpm | 54 kB 00:00:00
(8/22): libtool-ltdl-2.4.2-21.el7_2.x86_64.rpm | 49 kB 00:00:00
(9/22): php-bcmath-5.4.16-42.el7.x86_64.rpm | 57 kB 00:00:00
(10/22): dejavu-sans-fonts-2.33-6.el7.noarch.rpm | 1.4 MB 00:00:00
(11/22): php-ldap-5.4.16-42.el7.x86_64.rpm | 52 kB 00:00:00
(12/22): net-snmp-libs-5.7.2-24.el7_2.1.x86_64.rpm | 747 kB 00:00:00
(13/22): t1lib-5.1.2-14.el7.x86_64.rpm | 166 kB 00:00:00
(14/22): php-mbstring-5.4.16-42.el7.x86_64.rpm | 505 kB 00:00:00
(15/22): php-gd-5.4.16-42.el7.x86_64.rpm | 127 kB 00:00:00
(16/22): iksemel-1.4-6.el7.x86_64.rpm | 50 kB 00:00:00
(17/22): php-xml-5.4.16-42.el7.x86_64.rpm | 125 kB 00:00:00
(18/22): unixODBC-2.3.1-11.el7.x86_64.rpm | 413 kB 00:00:00
4fe591: NOKEY
Public key for zabbix-get-3.2.3-1.el7.x86_64.rpm is not installed
(19/22): zabbix-get-3.2.3-1.el7.x86_64.rpm | 235 kB 00:00:01
(20/22): zabbix-web-3.2.3-1.el7.noarch.rpm | 3.6 MB 00:00:09
(21/22): zabbix-web-mysql-3.2.3-1.el7.noarch.rpm | 5.3 kB 00:00:00
(22/22): zabbix-server-mysql-3.2.3-1.el7.x86_64.rpm | 1.8 MB 00:00:11
-----------------------------------------------------------------------------------------------------------------------------
Total 827 kB/s | 10 MB 00:00:12
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-3.2-1.el7.noarch (installed)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
Importing GPG key 0x352C64E5:
Userid : "Fedora EPEL (7) <epel@fedoraproject.org>"
Fingerprint: 91e9 7d7c 4a5e 96f1 7f3e 888f 6a2f aea2 352c 64e5
Package : epel-release-7-9.noarch (installed)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
Installing : iksemel-1.4-6.el7.x86_64 1/22
Installing : OpenIPMI-modalias-2.0.19-15.el7.x86_64 2/22
Installing : OpenIPMI-libs-2.0.19-15.el7.x86_64 3/22
Installing : 1:net-snmp-libs-5.7.2-24.el7_2.1.x86_64 4/22
Installing : libXpm-3.5.11-3.el7.x86_64 5/22
Installing : libxslt-1.1.28-5.el7.x86_64 6/22
Installing : php-xml-5.4.16-42.el7.x86_64 7/22
Installing : php-bcmath-5.4.16-42.el7.x86_64 8/22
Installing : t1lib-5.1.2-14.el7.x86_64 9/22
Installing : php-gd-5.4.16-42.el7.x86_64 10/22
Installing : libtool-ltdl-2.4.2-21.el7_2.x86_64 11/22
Installing : unixODBC-2.3.1-11.el7.x86_64 12/22
Installing : fping-3.10-4.el7.x86_64 13/22
Installing : fontpackages-filesystem-1.44-8.el7.noarch 14/22
Installing : dejavu-fonts-common-2.33-6.el7.noarch 15/22
Installing : dejavu-sans-fonts-2.33-6.el7.noarch 16/22
Installing : php-ldap-5.4.16-42.el7.x86_64 17/22
Installing : php-mbstring-5.4.16-42.el7.x86_64 18/22
Installing : zabbix-web-mysql-3.2.3-1.el7.noarch 19/22
Installing : zabbix-web-3.2.3-1.el7.noarch 20/22
Installing : zabbix-server-mysql-3.2.3-1.el7.x86_64 21/22
Installing : zabbix-get-3.2.3-1.el7.x86_64 22/22
Verifying : zabbix-get-3.2.3-1.el7.x86_64 1/22
Verifying : php-xml-5.4.16-42.el7.x86_64 2/22
Verifying : OpenIPMI-libs-2.0.19-15.el7.x86_64 3/22
Verifying : php-mbstring-5.4.16-42.el7.x86_64 4/22
Verifying : php-ldap-5.4.16-42.el7.x86_64 5/22
Verifying : fontpackages-filesystem-1.44-8.el7.noarch 6/22
Verifying : zabbix-web-mysql-3.2.3-1.el7.noarch 7/22
Verifying : fping-3.10-4.el7.x86_64 8/22
Verifying : php-gd-5.4.16-42.el7.x86_64 9/22
Verifying : zabbix-server-mysql-3.2.3-1.el7.x86_64 10/22
Verifying : dejavu-fonts-common-2.33-6.el7.noarch 11/22
Verifying : libtool-ltdl-2.4.2-21.el7_2.x86_64 12/22
Verifying : zabbix-web-3.2.3-1.el7.noarch 13/22
Verifying : t1lib-5.1.2-14.el7.x86_64 14/22
Verifying : php-bcmath-5.4.16-42.el7.x86_64 15/22
Verifying : unixODBC-2.3.1-11.el7.x86_64 16/22
Verifying : libxslt-1.1.28-5.el7.x86_64 17/22
Verifying : libXpm-3.5.11-3.el7.x86_64 18/22
Verifying : dejavu-sans-fonts-2.33-6.el7.noarch 19/22
Verifying : 1:net-snmp-libs-5.7.2-24.el7_2.1.x86_64 20/22
Verifying : OpenIPMI-modalias-2.0.19-15.el7.x86_64 21/22
Verifying : iksemel-1.4-6.el7.x86_64 22/22
Installed:
zabbix-get.x86_64 0:3.2.3-1.el7 zabbix-server-mysql.x86_64 0:3.2.3-1.el7 zabbix-web-mysql.noarch 0:3.2.3-1.el7
Dependency Installed:
OpenIPMI-libs.x86_64 0:2.0.19-15.el7 OpenIPMI-modalias.x86_64 0:2.0.19-15.el7 dejavu-fonts-common.noarch 0:2.33-6.el7
dejavu-sans-fonts.noarch 0:2.33-6.el7 fontpackages-filesystem.noarch 0:1.44-8.el7 fping.x86_64 0:3.10-4.el7
iksemel.x86_64 0:1.4-6.el7 libXpm.x86_64 0:3.5.11-3.el7 libtool-ltdl.x86_64 0:2.4.2-21.el7_2
libxslt.x86_64 0:1.1.28-5.el7 net-snmp-libs.x86_64 1:5.7.2-24.el7_2.1 php-bcmath.x86_64 0:5.4.16-42.el7
php-gd.x86_64 0:5.4.16-42.el7 php-ldap.x86_64 0:5.4.16-42.el7 php-mbstring.x86_64 0:5.4.16-42.el7
php-xml.x86_64 0:5.4.16-42.el7 t1lib.x86_64 0:5.1.2-14.el7 unixODBC.x86_64 0:2.3.1-11.el7
zabbix-web.noarch 0:3.2.3-1.el7
Complete!
[root@localhost ~]# cd /usr/share/doc/zabbix-server-mysql-3.2.3/
[root@localhost zabbix-server-mysql-3.2.3]# ls
AUTHORS ChangeLog COPYING create.sql.gz NEWS README
[root@localhost zabbix-server-mysql-3.2.3]# zcat create.sql.gz |mysql -uroot -pqwe123!@# zabbix
-bash: !@#: event not found
[root@localhost zabbix-server-mysql-3.2.3]# yum install net-tools
Loaded plugins: fastestmirror, langpacks
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Loading mirror speeds from cached hostfile
* base: mirrors.163.com
* epel: ftp.cuhk.edu.hk
* extras: mirrors.163.com
* updates: mirrors.163.com
Package net-tools-2.0-0.17.20131004git.el7.x86_64 already installed and latest version
Nothing to do
[root@localhost zabbix-server-mysql-3.2.3]# zcat create.sql.gz | mysql -uroot -p qwe123!@# zabbix
-bash: !@#: event not found
[root@localhost zabbix-server-mysql-3.2.3]# zcat create.sql.gz | mysql -uroot -p'qwe123!@#' zabbix
[root@localhost zabbix-server-mysql-3.2.3]# ls
AUTHORS ChangeLog COPYING create.sql.gz NEWS README
[root@localhost zabbix-server-mysql-3.2.3]# vi /etc/zabbix/zabbix_server.conf
[root@localhost zabbix-server-mysql-3.2.3]# vi /etc/httpd/conf.d/zabbix.conf
[root@localhost zabbix-server-mysql-3.2.3]# systemctl enable zabbix-server
ln -s '/usr/lib/systemd/system/zabbix-server.service' '/etc/systemd/system/multi-user.target.wants/zabbix-server.service'
[root@localhost zabbix-server-mysql-3.2.3]# systemctl start zabbix-server
Job for zabbix-server.service failed. See 'systemctl status zabbix-server.service' and 'journalctl -xn' for details.
[root@localhost zabbix-server-mysql-3.2.3]# ps -ef |grep zabbix
zabbix 2971 1 0 11:04 ? 00:00:00 /usr/sbin/zabbix_server -c /etc/zabbix/zabbix_server.conf
root 3075 2605 0 11:05 pts/0 00:00:00 grep --color=auto zabbix
[root@localhost zabbix-server-mysql-3.2.3]# systemctl status zabbix-server
zabbix-server.service - Zabbix Server
Loaded: loaded (/usr/lib/systemd/system/zabbix-server.service; enabled)
Active: activating (auto-restart) (Result: signal) since Sat 2017-02-25 11:06:07 CST; 7s ago
Process: 3162 ExecStart=/usr/sbin/zabbix_server -c $CONFFILE (code=killed, signal=SEGV)
Feb 25 11:06:07 localhost.localdomain systemd[1]: Failed to start Zabbix Server.
Feb 25 11:06:07 localhost.localdomain systemd[1]: Unit zabbix-server.service entered failed state.
[root@localhost zabbix-server-mysql-3.2.3]# cd
[root@localhost ~]# journalctl -xn
-- Logs begin at Sat 2017-02-25 10:36:59 CST, end at Sat 2017-02-25 11:06:27 CST. --
Feb 25 11:06:17 localhost.localdomain systemd[1]: Failed to start Zabbix Server.
-- Subject: Unit zabbix-server.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit zabbix-server.service has failed.
--
-- The result is failed.
Feb 25 11:06:17 localhost.localdomain systemd[1]: Unit zabbix-server.service entered failed state.
Feb 25 11:06:17 localhost.localdomain kernel: zabbix_server[3170]: segfault at 18 ip 00007f9b24b42c00 sp 00007fff8f1e19c8 err
Feb 25 11:06:27 localhost.localdomain systemd[1]: zabbix-server.service holdoff time over, scheduling restart.
Feb 25 11:06:27 localhost.localdomain systemd[1]: Stopping Zabbix Server...
-- Subject: Unit zabbix-server.service has begun shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit zabbix-server.service has begun shutting down.
Feb 25 11:06:27 localhost.localdomain systemd[1]: Starting Zabbix Server...
-- Subject: Unit zabbix-server.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
[root@localhost ~]# rpm -qa | grep gnutls
gnutls-3.3.8-12.el7.x86_64
[root@localhost ~]# yum update trousers
Loaded plugins: fastestmirror, langpacks
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Loading mirror speeds from cached hostfile
* base: mirrors.163.com
* epel: ftp.cuhk.edu.hk
* extras: mirrors.163.com
* updates: mirrors.163.com
Resolving Dependencies
--> Running transaction check
---> Package trousers.x86_64 0:0.3.11.2-3.el7 will be updated
---> Package trousers.x86_64 0:0.3.13-1.el7 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================
Updating:
trousers x86_64 0.3.13-1.el7 base 289 k
Transaction Summary
=============================================================================================================================
Upgrade 1 Package
Total download size: 289 k
Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
trousers-0.3.13-1.el7.x86_64.rpm | 289 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Updating : trousers-0.3.13-1.el7.x86_64 1/2
Cleanup : trousers-0.3.11.2-3.el7.x86_64 2/2
Verifying : trousers-0.3.13-1.el7.x86_64 1/2
Verifying : trousers-0.3.11.2-3.el7.x86_64 2/2
Updated:
trousers.x86_64 0:0.3.13-1.el7
Complete!
[root@localhost ~]# systemctl start zabbix-server
[root@localhost ~]# systemctl status zabbix-server
zabbix-server.service - Zabbix Server
Loaded: loaded (/usr/lib/systemd/system/zabbix-server.service; enabled)
Active: active (running) since Sat 2017-02-25 11:07:31 CST; 7s ago
Process: 3247 ExecStart=/usr/sbin/zabbix_server -c $CONFFILE (code=exited, status=0/SUCCESS)
Main PID: 3249 (zabbix_server)
CGroup: /system.slice/zabbix-server.service
├─2971 /usr/sbin/zabbix_server -c /etc/zabbix/zabbix_server.conf
├─3079 /usr/sbin/zabbix_server -c /etc/zabbix/zabbix_server.conf
├─3249 /usr/sbin/zabbix_server -c /etc/zabbix/zabbix_server.conf
├─3254 /usr/sbin/zabbix_server: configuration syncer [waiting 60 sec for processes]
├─3255 /usr/sbin/zabbix_server: db watchdog [synced alerts config in 0.001052 sec, idle 60 sec]
├─3256 /usr/sbin/zabbix_server: poller #1 [got 0 values in 0.000003 sec, idle 5 sec]
├─3258 /usr/sbin/zabbix_server: poller #2 [got 0 values in 0.000004 sec, idle 5 sec]
├─3259 /usr/sbin/zabbix_server: poller #3 [got 0 values in 0.000005 sec, idle 5 sec]
├─3260 /usr/sbin/zabbix_server: poller #4 [got 0 values in 0.000003 sec, idle 5 sec]
├─3261 /usr/sbin/zabbix_server: poller #5 [got 0 values in 0.000004 sec, idle 5 sec]
├─3262 /usr/sbin/zabbix_server: unreachable poller #1 [got 0 values in 0.000004 sec, idle 5 sec]
├─3263 /usr/sbin/zabbix_server: trapper #1 [processed data in 0.000000 sec, waiting for connection]
├─3264 /usr/sbin/zabbix_server: trapper #2 [processed data in 0.000000 sec, waiting for connection]
├─3265 /usr/sbin/zabbix_server: trapper #3 [processed data in 0.000000 sec, waiting for connection]
├─3266 /usr/sbin/zabbix_server: trapper #4 [processed data in 0.000000 sec, waiting for connection]
├─3267 /usr/sbin/zabbix_server: trapper #5 [processed data in 0.000000 sec, waiting for connection]
├─3268 /usr/sbin/zabbix_server: icmp pinger #1 [got 0 values in 0.000004 sec, idle 5 sec]
├─3269 /usr/sbin/zabbix_server: alerter [sent alerts: 0 success, 0 fail in 0.000590 sec, idle 30 sec]
├─3271 /usr/sbin/zabbix_server: housekeeper [startup idle for 30 minutes]
├─3272 /usr/sbin/zabbix_server: timer #1 [processed 0 triggers, 0 events in 0.000000 sec, 0 maintenances in 0.0...
├─3273 /usr/sbin/zabbix_server: http poller #1 [got 0 values in 0.000454 sec, idle 5 sec]
├─3274 /usr/sbin/zabbix_server: discoverer #1 [processed 0 rules in 0.000393 sec, idle 60 sec]
├─3275 /usr/sbin/zabbix_server: history syncer #1 [synced 0 items in 0.000000 sec, idle 1 sec]
├─3276 /usr/sbin/zabbix_server: history syncer #2 [synced 0 items in 0.000000 sec, idle 1 sec]
├─3278 /usr/sbin/zabbix_server: history syncer #3 [synced 0 items in 0.000000 sec, idle 1 sec]
├─3280 /usr/sbin/zabbix_server: history syncer #4 [synced 0 items in 0.000000 sec, idle 1 sec]
├─3282 /usr/sbin/zabbix_server: escalator #1 [processed 0 escalations in 0.000487 sec, idle 3 sec]
├─3283 /usr/sbin/zabbix_server: proxy poller #1 [exchanged data with 0 proxies in 0.000002 sec, idle 5 sec]
├─3284 /usr/sbin/zabbix_server: self-monitoring [processed data in 0.000002 sec, idle 1 sec]
└─3285 /usr/sbin/zabbix_server: task manager [processed 0 task(s) in 0.000442 sec, idle 5 sec]
Feb 25 11:07:31 localhost.localdomain systemd[1]: Started Zabbix Server.
Feb 25 11:07:32 localhost.localdomain systemd[1]: Started Zabbix Server.
[root@localhost ~]# systemctl restart httpd
[root@localhost ~]# yum -y install zabbix zabbix-agent
Loaded plugins: fastestmirror, langpacks
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Loading mirror speeds from cached hostfile
* base: mirrors.163.com
* epel: ftp.cuhk.edu.hk
* extras: mirrors.163.com
* updates: mirrors.163.com
Resolving Dependencies
--> Running transaction check
---> Package zabbix-agent.x86_64 0:3.2.3-1.el7 will be installed
---> Package zabbix22.x86_64 0:2.2.16-1.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================
Installing:
zabbix-agent x86_64 3.2.3-1.el7 zabbix 338 k
zabbix22 x86_64 2.2.16-1.el7 epel 223 k
Transaction Summary
=============================================================================================================================
Install 2 Packages
Total download size: 561 k
Installed size: 1.9 M
Downloading packages:
(1/2): zabbix22-2.2.16-1.el7.x86_64.rpm | 223 kB 00:00:00
(2/2): zabbix-agent-3.2.3-1.el7.x86_64.rpm | 338 kB 00:00:02
-----------------------------------------------------------------------------------------------------------------------------
Total 204 kB/s | 561 kB 00:00:02
Running transaction check
Running transaction test
Transaction check error:
l7.x86_64
ix-get-3.2.3-1.el7.x86_64
.2.3-1.el7.x86_64
Error Summary
-------------
[root@localhost ~]# yum clean
Loaded plugins: fastestmirror, langpacks
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Error: clean requires an option: headers, packages, metadata, dbcache, plugins, expire-cache, rpmdb, all
[root@localhost ~]# yum clear
Loaded plugins: fastestmirror, langpacks
No such command: clear. Please use /usr/bin/yum --help
[root@localhost ~]# yum clean all
Loaded plugins: fastestmirror, langpacks
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Cleaning repos: base epel extras updates zabbix zabbix-non-supported
Cleaning up everything
Cleaning up list of fastest mirrors
[root@localhost ~]# yum -y install zabbix zabbix-agent
Loaded plugins: fastestmirror, langpacks
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
base | 3.6 kB 00:00:00
epel/x86_64/metalink | 5.9 kB 00:00:00
epel | 4.3 kB 00:00:00
extras | 3.4 kB 00:00:00
updates | 3.4 kB 00:00:00
zabbix | 951 B 00:00:00
zabbix-non-supported | 951 B 00:00:00
(1/7): base/7/x86_64/group_gz | 155 kB 00:00:00
(2/7): extras/7/x86_64/primary_db | 122 kB 00:00:00
(3/7): updates/7/x86_64/primary_db | 2.9 MB 00:00:01
(4/7): epel/x86_64/updateinfo | 741 kB 00:00:05
(5/7): epel/x86_64/group_gz | 170 kB 00:00:10
(6/7): epel/x86_64/primary_db | 4.5 MB 00:00:22
base/7/x86_64/primary_db FAILED ] 6.2 B/s | 9.7 MB 211:51:57 ETA
d the last 30 seconds')
Trying other mirror.
(7/7): base/7/x86_64/primary_db | 5.6 MB 00:00:02
(1/2): zabbix-non-supported/x86_64/primary | 1.6 kB 00:00:00
(2/2): zabbix/x86_64/primary | 8.2 kB 00:00:00
Determining fastest mirrors
* base: mirrors.163.com
* epel: ftp.cuhk.edu.hk
* extras: mirrors.163.com
* updates: mirrors.163.com
zabbix 53/53
zabbix-non-supported 4/4
Resolving Dependencies
--> Running transaction check
---> Package zabbix-agent.x86_64 0:3.2.3-1.el7 will be installed
---> Package zabbix22.x86_64 0:2.2.16-1.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================
Installing:
zabbix-agent x86_64 3.2.3-1.el7 zabbix 338 k
zabbix22 x86_64 2.2.16-1.el7 epel 223 k
Transaction Summary
=============================================================================================================================
Install 2 Packages
Total download size: 561 k
Installed size: 1.9 M
Downloading packages:
(1/2): zabbix22-2.2.16-1.el7.x86_64.rpm | 223 kB 00:00:00
(2/2): zabbix-agent-3.2.3-1.el7.x86_64.rpm | 338 kB 00:00:02
-----------------------------------------------------------------------------------------------------------------------------
Total 206 kB/s | 561 kB 00:00:02
Running transaction check
Running transaction test
Transaction check error:
l7.x86_64
ix-get-3.2.3-1.el7.x86_64
.2.3-1.el7.x86_64
Error Summary
-------------
[root@localhost ~]# yum -y install zabbix-agent
Loaded plugins: fastestmirror, langpacks
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Loading mirror speeds from cached hostfile
* base: mirrors.163.com
* epel: ftp.cuhk.edu.hk
* extras: mirrors.163.com
* updates: mirrors.163.com
Resolving Dependencies
--> Running transaction check
---> Package zabbix-agent.x86_64 0:3.2.3-1.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================
Installing:
zabbix-agent x86_64 3.2.3-1.el7 zabbix 338 k
Transaction Summary
=============================================================================================================================
Install 1 Package
Total size: 338 k
Installed size: 1.1 M
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : zabbix-agent-3.2.3-1.el7.x86_64 1/1
Verifying : zabbix-agent-3.2.3-1.el7.x86_64 1/1
Installed:
zabbix-agent.x86_64 0:3.2.3-1.el7
Complete!
[root@localhost ~]# vi /etc/zabbix/zabbix_agentd.conf
[root@localhost ~]# vi /etc/zabbix/zabbix_agentd.conf
[root@localhost ~]# vi /etc/sysconfig/iptables
[root@localhost ~]# systemctl restart iptables.service
[root@localhost ~]# systemctl restart zabbix-server
[root@localhost ~]# systemctl restart zabbix-agent
[root@localhost ~]# vi /etc/zabbix/zabbix_agentd.conf
[root@localhost ~]# systemctl restart zabbix-agent
[root@localhost ~]# systemctl restart zabbix-agent
[root@localhost ~]# vi /etc/zabbix/zabbix_agentd.conf
[root@localhost ~]# reboot
Connection closed by foreign host.
Disconnected from remote host(10.100.21.111:22) at 11:27:10.
Type `help' to learn how to use Xshell prompt.
[c:\~]$ ssh 10.100.21.111
Connecting to 10.100.21.111:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.
WARNING! The remote SSH server rejected X11 forwarding request.
Last failed login: Sat Feb 25 11:28:03 CST 2017 from fanbojie.qkcorp.qiku.com on ssh:notty
There were 2 failed login attempts since the last successful login.
Last login: Sat Feb 25 10:39:41 2017 from fanbojie.qkcorp.qiku.com
[root@localhost ~]# vi /etc/sysconfig/iptables
[root@localhost ~]# systemctl status iptables
iptables.service - IPv4 firewall with iptables
Loaded: loaded (/usr/lib/systemd/system/iptables.service; enabled)
Active: active (exited) since Sat 2017-02-25 11:27:38 CST; 2min 2s ago
Process: 700 ExecStart=/usr/libexec/iptables/iptables.init start (code=exited, status=0/SUCCESS)
Main PID: 700 (code=exited, status=0/SUCCESS)
CGroup: /system.slice/iptables.service
Feb 25 11:27:37 localhost.localdomain systemd[1]: Starting IPv4 firewall with iptables...
Feb 25 11:27:38 localhost.localdomain iptables.init[700]: iptables: Applying firewall rules: [ OK ]
Feb 25 11:27:38 localhost.localdomain systemd[1]: Started IPv4 firewall with iptables.
[root@localhost ~]# vi /etc/services
[root@localhost ~]# systemctl stop iptables
[root@localhost ~]# systemctl status zabbix-agent
zabbix-agent.service - Zabbix Agent
Loaded: loaded (/usr/lib/systemd/system/zabbix-agent.service; disabled)
Active: inactive (dead)
[root@localhost ~]# systemctl start zabbix-agent
[root@localhost ~]# systemctl status zabbix-agent
zabbix-agent.service - Zabbix Agent
Loaded: loaded (/usr/lib/systemd/system/zabbix-agent.service; disabled)
Active: active (running) since Sat 2017-02-25 11:32:03 CST; 1s ago
Process: 2593 ExecStart=/usr/sbin/zabbix_agentd -c $CONFFILE (code=exited, status=0/SUCCESS)
Main PID: 2595 (zabbix_agentd)
CGroup: /system.slice/zabbix-agent.service
├─2595 /usr/sbin/zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf
├─2596 /usr/sbin/zabbix_agentd: collector [idle 1 sec]
├─2597 /usr/sbin/zabbix_agentd: listener #1 [waiting for connection]
├─2598 /usr/sbin/zabbix_agentd: listener #2 [waiting for connection]
├─2599 /usr/sbin/zabbix_agentd: listener #3 [waiting for connection]
└─2600 /usr/sbin/zabbix_agentd: active checks #1 [idle 1 sec]
Feb 25 11:32:03 localhost.localdomain systemd[1]: Starting Zabbix Agent...
Feb 25 11:32:03 localhost.localdomain systemd[1]: Started Zabbix Agent.
[root@localhost ~]# systemctl enable zabbix-agent
ln -s '/usr/lib/systemd/system/zabbix-agent.service' '/etc/systemd/system/multi-user.target.wants/zabbix-agent.service'
[root@localhost ~]# systemctl start iptables
[root@localhost ~]# systemctl status zabbix-server
zabbix-server.service - Zabbix Server
Loaded: loaded (/usr/lib/systemd/system/zabbix-server.service; enabled)
Active: active (running) since Sat 2017-02-25 11:27:38 CST; 5min ago
Main PID: 1173 (zabbix_server)
CGroup: /system.slice/zabbix-server.service
├─1173 /usr/sbin/zabbix_server -c /etc/zabbix/zabbix_server.conf
├─2386 /usr/sbin/zabbix_server: configuration syncer [synced configuration in 0.005284 sec, idle 60 sec]
├─2387 /usr/sbin/zabbix_server: db watchdog [synced alerts config in 0.001493 sec, idle 60 sec]
├─2389 /usr/sbin/zabbix_server: poller #1 [got 0 values in 0.000002 sec, idle 3 sec]
├─2390 /usr/sbin/zabbix_server: poller #2 [got 0 values in 0.000003 sec, idle 3 sec]
├─2391 /usr/sbin/zabbix_server: poller #3 [got 0 values in 0.000003 sec, idle 3 sec]
├─2392 /usr/sbin/zabbix_server: poller #4 [got 0 values in 0.000004 sec, idle 3 sec]
├─2393 /usr/sbin/zabbix_server: poller #5 [got 1 values in 0.000032 sec, idle 3 sec]
├─2394 /usr/sbin/zabbix_server: unreachable poller #1 [got 0 values in 0.000002 sec, idle 5 sec]
├─2395 /usr/sbin/zabbix_server: trapper #1 [processed data in 0.000000 sec, waiting for connection]
├─2396 /usr/sbin/zabbix_server: trapper #2 [processed data in 0.000000 sec, waiting for connection]
├─2397 /usr/sbin/zabbix_server: trapper #3 [processed data in 0.000894 sec, waiting for connection]
├─2398 /usr/sbin/zabbix_server: trapper #4 [processed data in 0.000000 sec, waiting for connection]
├─2399 /usr/sbin/zabbix_server: trapper #5 [processed data in 0.000000 sec, waiting for connection]
├─2400 /usr/sbin/zabbix_server: icmp pinger #1 [got 0 values in 0.000001 sec, idle 5 sec]
├─2402 /usr/sbin/zabbix_server: alerter [sent alerts: 0 success, 0 fail in 0.000283 sec, idle 30 sec]
├─2404 /usr/sbin/zabbix_server: housekeeper [startup idle for 30 minutes]
├─2405 /usr/sbin/zabbix_server: timer #1 [processed 1 triggers, 0 events in 0.000216 sec, 0 maintenances in 0.0...
├─2409 /usr/sbin/zabbix_server: http poller #1 [got 0 values in 0.000294 sec, idle 5 sec]
├─2411 /usr/sbin/zabbix_server: discoverer #1 [processed 0 rules in 0.000294 sec, idle 60 sec]
├─2414 /usr/sbin/zabbix_server: history syncer #1 [synced 0 items in 0.000003 sec, idle 1 sec]
├─2416 /usr/sbin/zabbix_server: history syncer #2 [synced 0 items in 0.000003 sec, idle 1 sec]
├─2418 /usr/sbin/zabbix_server: history syncer #3 [synced 1 items in 0.000414 sec, idle 1 sec]
├─2420 /usr/sbin/zabbix_server: history syncer #4 [synced 0 items in 0.000003 sec, idle 1 sec]
├─2422 /usr/sbin/zabbix_server: escalator #1 [processed 0 escalations in 0.000480 sec, idle 3 sec]
├─2423 /usr/sbin/zabbix_server: proxy poller #1 [exchanged data with 0 proxies in 0.000002 sec, idle 5 sec]
├─2424 /usr/sbin/zabbix_server: self-monitoring [processed data in 0.000003 sec, idle 1 sec]
└─2425 /usr/sbin/zabbix_server: task manager [processed 0 task(s) in 0.000309 sec, idle 5 sec]
Feb 25 11:27:38 localhost.localdomain systemd[1]: Starting Zabbix Server...
Feb 25 11:27:38 localhost.localdomain systemd[1]: zabbix-server.service: Supervising process 1173 which is not our ch...xits.
Feb 25 11:27:38 localhost.localdomain systemd[1]: Started Zabbix Server.
Hint: Some lines were ellipsized, use -l to show in full.
[root@localhost ~]# systemctl status httpd
httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled)
Active: inactive (dead)
Docs: man:httpd(8)
man:apachectl(8)
[root@localhost ~]# systemctl start httpd
[root@localhost ~]# vi /etc/zabbix/
web/ zabbix_agentd.conf zabbix_agentd.d/ zabbix_server.conf
[root@localhost ~]# vi /etc/zabbix/zabbix_agentd.conf
[root@localhost ~]# cd /etc/zabbix
[root@localhost zabbix]# ls
web zabbix_agentd.conf zabbix_agentd.d zabbix_server.conf
[root@localhost zabbix]# vi zabbix_server.conf
[root@localhost zabbix]# vi /etc/sysconfig/iptables
[root@localhost zabbix]# systemctl restart iptables
[root@localhost zabbix]# vi zabbix_agentd.conf
[root@localhost zabbix]# systemctl restart zabbix-agent
可以参考
https://yq.aliyun.com/articles/60669 进行微信报警设置
http://www.ilanni.com/?p=11336 进行安装操作
0 0
- FreeBSD安装zabbix 过程
- zabbix安装过程
- zabbix安装过程
- centos 7 安装 zabbix过程
- Fedora13下安装zabbix 1.8详细过程
- zabbix安装(7)升级版本过程
- 记一次Zabbix(Server)安装过程
- zabbix安装
- zabbix 安装
- zabbix安装
- Zabbix安装
- zabbix安装
- zabbix安装
- 安装zabbix
- zabbix安装
- zabbix 安装
- zabbix安装
- zabbix安装
- android 访问https服务器
- Spring学习笔记专题二
- 数据库连接池优缺点详解
- 控件缩放 双指缩放
- java swing 网格布局
- zabbix安装过程
- Js定时任务
- 我们为什么放弃SBT回归Maven
- pat 1011 1011. World Cup Betting (20)
- Pycharm2016 注册码 到2017年底
- java swing Jpanel
- web 观察者模式
- 动态SQL详解
- 设计模式:Bridge(桥接)模式