[root@myzabbix Desktop]# yum install -y zabbix zabbix-get zabbix-server zabbix-web-mysql zabbix-web zabbix-agent 
[root@myzabbix Desktop]# yum install -y zabbix zabbix-get zabbix-server zabbix-web-mysql zabbix-web zabbix-agent 
Loaded plugins: fastestmirror, refresh-packagekit, security 
Determining fastest mirrors 
epel/metalink | 5.8 kB 00:00 
* base: mirrors.skyshe.cn 
* epel: ftp.cuhk.edu.hk 
* extras: mirrors.pubyun.com 
* updates: mirrors.pubyun.com 
epel | 4.4 kB 00:00 
epel/primary_db | 6.3 MB 00:04 
Setting up Install Process 
Resolving Dependencies 
--> Running transaction check 
---> Package zabbix.x86_64 0:2.2.6-1.el6 will be installed 
---> Package zabbix-agent.x86_64 0:2.2.6-1.el6 will be installed 
---> Package zabbix-get.x86_64 0:2.2.6-1.el6 will be installed 
---> Package zabbix-server.x86_64 0:2.2.6-1.el6 will be installed 
--> Processing Dependency: zabbix-server-implementation = 2.2.6-1.el6 for package: zabbix-server-2.2.6-1.el6.x86_64 
--> Processing Dependency: OpenIPMI-libs >= 2.0.14 for package: zabbix-server-2.2.6-1.el6.x86_64 
--> Processing Dependency: iksemel for package: zabbix-server-2.2.6-1.el6.x86_64 
--> Processing Dependency: unixODBC for package: zabbix-server-2.2.6-1.el6.x86_64 
--> Processing Dependency: fping for package: zabbix-server-2.2.6-1.el6.x86_64 
---> Package zabbix-web.noarch 0:2.2.6-1.el6 will be installed 
--> Processing Dependency: php-gd for package: zabbix-web-2.2.6-1.el6.noarch 
--> Processing Dependency: php-mbstring for package: zabbix-web-2.2.6-1.el6.noarch 
--> Processing Dependency: php-bcmath for package: zabbix-web-2.2.6-1.el6.noarch 
---> Package zabbix-web-mysql.noarch 0:2.2.6-1.el6 will be installed 
--> Processing Dependency: php-mysql for package: zabbix-web-mysql-2.2.6-1.el6.noarch 
--> Running transaction check 
---> Package OpenIPMI-libs.x86_64 0:2.0.16-14.el6 will be installed 
---> Package fping.x86_64 0:2.4b2-16.el6 will be installed 
---> Package iksemel.x86_64 0:1.4-2.el6 will be installed 
---> Package php-bcmath.x86_64 0:5.3.3-27.el6_5.2 will be installed 
--> Processing Dependency: php-common(x86-64) = 5.3.3-27.el6_5.2 for package: php-bcmath-5.3.3-27.el6_5.2.x86_64 
---> Package php-gd.x86_64 0:5.3.3-27.el6_5.2 will be installed 
--> Processing Dependency: libXpm.so.4()(64bit) for package: php-gd-5.3.3-27.el6_5.2.x86_64 
---> Package php-mbstring.x86_64 0:5.3.3-27.el6_5.2 will be installed 
---> Package php-mysql.x86_64 0:5.3.3-27.el6_5.2 will be installed 
---> Package unixODBC.x86_64 0:2.2.14-12.el6_3 will be installed 
---> Package zabbix-server-mysql.x86_64 0:2.2.6-1.el6 will be installed 
--> Running transaction check 
---> Package libXpm.x86_64 0:3.5.10-2.el6 will be installed 
---> Package php-common.x86_64 0:5.3.3-26.el6 will be updated 
--> Processing Dependency: php-common(x86-64) = 5.3.3-26.el6 for package: php-cli-5.3.3-26.el6.x86_64 
--> Processing Dependency: php-common(x86-64) = 5.3.3-26.el6 for package: php-pdo-5.3.3-26.el6.x86_64 
--> Processing Dependency: php-common(x86-64) = 5.3.3-26.el6 for package: php-5.3.3-26.el6.x86_64 
--> Processing Dependency: php-common(x86-64) = 5.3.3-26.el6 for package: php-xml-5.3.3-26.el6.x86_64 
---> Package php-common.x86_64 0:5.3.3-27.el6_5.2 will be an update 
--> Running transaction check 
---> Package php.x86_64 0:5.3.3-26.el6 will be updated 
---> Package php.x86_64 0:5.3.3-27.el6_5.2 will be an update 
---> Package php-cli.x86_64 0:5.3.3-26.el6 will be updated 
---> Package php-cli.x86_64 0:5.3.3-27.el6_5.2 will be an update 
---> Package php-pdo.x86_64 0:5.3.3-26.el6 will be updated 
---> Package php-pdo.x86_64 0:5.3.3-27.el6_5.2 will be an update 
---> Package php-xml.x86_64 0:5.3.3-26.el6 will be updated 
---> Package php-xml.x86_64 0:5.3.3-27.el6_5.2 will be an update 
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================ 
Package Arch Version Repository Size 
================================================================================ 
Installing: 
zabbix x86_64 2.2.6-1.el6 zabbix 146 k 
zabbix-agent x86_64 2.2.6-1.el6 zabbix 156 k 
zabbix-get x86_64 2.2.6-1.el6 zabbix 52 k 
zabbix-server x86_64 2.2.6-1.el6 zabbix 20 k 
zabbix-web noarch 2.2.6-1.el6 zabbix 4.5 M 
zabbix-web-mysql noarch 2.2.6-1.el6 zabbix 13 k 
Installing for dependencies: 
OpenIPMI-libs x86_64 2.0.16-14.el6 base 473 k 
fping x86_64 2.4b2-16.el6 zabbix-non-supported 31 k 
iksemel x86_64 1.4-2.el6 epel 48 k 
libXpm x86_64 3.5.10-2.el6 base 51 k 
php-bcmath x86_64 5.3.3-27.el6_5.2 updates 36 k 
php-gd x86_64 5.3.3-27.el6_5.2 updates 108 k 
php-mbstring x86_64 5.3.3-27.el6_5.2 updates 457 k 
php-mysql x86_64 5.3.3-27.el6_5.2 updates 83 k 
unixODBC x86_64 2.2.14-12.el6_3 base 378 k 
zabbix-server-mysql x86_64 2.2.6-1.el6 zabbix 1.5 M 
Updating for dependencies: 
php x86_64 5.3.3-27.el6_5.2 updates 1.1 M 
php-cli x86_64 5.3.3-27.el6_5.2 updates 2.2 M 
php-common x86_64 5.3.3-27.el6_5.2 updates 526 k 
php-pdo x86_64 5.3.3-27.el6_5.2 updates 77 k 
php-xml x86_64 5.3.3-27.el6_5.2 updates 105 k

Transaction Summary 
================================================================================ 
Install 16 Package(s) 
Upgrade 5 Package(s)

Total download size: 12 M 
Downloading Packages: 
(1/21): OpenIPMI-libs-2.0.16-14.el6.x86_64.rpm | 473 kB 00:00 
(2/21): fping-2.4b2-16.el6.x86_64.rpm | 31 kB 00:02 
(3/21): iksemel-1.4-2.el6.x86_64.rpm | 48 kB 00:00 
(4/21): libXpm-3.5.10-2.el6.x86_64.rpm | 51 kB 00:00 
(5/21): php-5.3.3-27.el6_5.2.x86_64.rpm | 1.1 MB 00:00 
(6/21): php-bcmath-5.3.3-27.el6_5.2.x86_64.rpm | 36 kB 00:00 
(7/21): php-cli-5.3.3-27.el6_5.2.x86_64.rpm | 2.2 MB 00:01 
(8/21): php-common-5.3.3-27.el6_5.2.x86_64.rpm | 526 kB 00:00 
(9/21): php-gd-5.3.3-27.el6_5.2.x86_64.rpm | 108 kB 00:00 
(10/21): php-mbstring-5.3.3-27.el6_5.2.x86_64.rpm | 457 kB 00:00 
(11/21): php-mysql-5.3.3-27.el6_5.2.x86_64.rpm | 83 kB 00:00 
(12/21): php-pdo-5.3.3-27.el6_5.2.x86_64.rpm | 77 kB 00:00 
(13/21): php-xml-5.3.3-27.el6_5.2.x86_64.rpm | 105 kB 00:00 
(14/21): unixODBC-2.2.14-12.el6_3.x86_64.rpm | 378 kB 00:00 
(15/21): zabbix-2.2.6-1.el6.x86_64.rpm | 146 kB 00:06 
(16/21): zabbix-agent-2.2.6-1.el6.x86_64.rpm | 156 kB 00:02 
(17/21): zabbix-get-2.2.6-1.el6.x86_64.rpm | 52 kB 00:00 
(18/21): zabbix-server-2.2.6-1.el6.x86_64.rpm | 20 kB 00:00 
(19/21): zabbix-server-mysql-2.2.6-1.el6.x86_64.rpm | 1.5 MB 00:12 
(20/21): zabbix-web-2.2.6-1.el6.noarch.rpm | 4.5 MB 01:11 
(21/21): zabbix-web-mysql-2.2.6-1.el6.noarch.rpm | 13 kB 00:00 
-------------------------------------------------------------------------------- 
Total 100 kB/s | 12 MB 02:03 
warning: rpmts_HdrFromFdno: Header V4 DSA/SHA1 Signature, key ID 79ea5ed4: NOKEY 
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX 
Importing GPG key 0x79EA5ED4: 
Userid : Zabbix SIA <packager@zabbix.com
Package: zabbix-release-2.2-1.el6.noarch (installed) 
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX 
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY 
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 
Importing GPG key 0x0608B895: 
Userid : EPEL (6) <epel@fedoraproject.org
Package: epel-release-6-8.noarch (installed) 
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY 
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 
Importing GPG key 0xC105B9DE: 
Userid : CentOS-6 Key (CentOS 6 Official Signing Key) <centos-6-key@centos.org
Package: centos-release-6-5.el6.centos.11.1.x86_64 (@anaconda-CentOS-201311272149.x86_64/6.5) 
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 
Running rpm_check_debug 
Running Transaction Test 
Transaction Test Succeeded 
Running Transaction 
Updating : php-common-5.3.3-27.el6_5.2.x86_64 1/26 
Installing : zabbix-2.2.6-1.el6.x86_64 2/26 
Installing : OpenIPMI-libs-2.0.16-14.el6.x86_64 3/26 
Installing : unixODBC-2.2.14-12.el6_3.x86_64 4/26 
Installing : iksemel-1.4-2.el6.x86_64 5/26 
Updating : php-xml-5.3.3-27.el6_5.2.x86_64 6/26 
Installing : php-mbstring-5.3.3-27.el6_5.2.x86_64 7/26 
Updating : php-pdo-5.3.3-27.el6_5.2.x86_64 8/26 
Installing : php-mysql-5.3.3-27.el6_5.2.x86_64 9/26 
Installing : php-bcmath-5.3.3-27.el6_5.2.x86_64 10/26 
Updating : php-cli-5.3.3-27.el6_5.2.x86_64 11/26 
Updating : php-5.3.3-27.el6_5.2.x86_64 12/26 
Installing : fping-2.4b2-16.el6.x86_64 13/26 
Installing : zabbix-server-2.2.6-1.el6.x86_64 14/26 
Installing : zabbix-server-mysql-2.2.6-1.el6.x86_64 15/26 
Installing : libXpm-3.5.10-2.el6.x86_64 16/26 
Installing : php-gd-5.3.3-27.el6_5.2.x86_64 17/26 
Installing : zabbix-web-mysql-2.2.6-1.el6.noarch 18/26 
Installing : zabbix-web-2.2.6-1.el6.noarch 19/26 
Installing : zabbix-agent-2.2.6-1.el6.x86_64 20/26 
Installing : zabbix-get-2.2.6-1.el6.x86_64 21/26 
Cleanup : php-5.3.3-26.el6.x86_64 22/26 
Cleanup : php-cli-5.3.3-26.el6.x86_64 23/26 
Cleanup : php-pdo-5.3.3-26.el6.x86_64 24/26 
Cleanup : php-xml-5.3.3-26.el6.x86_64 25/26 
Cleanup : php-common-5.3.3-26.el6.x86_64 26/26 
Verifying : zabbix-server-mysql-2.2.6-1.el6.x86_64 1/26 
Verifying : iksemel-1.4-2.el6.x86_64 2/26 
Verifying : zabbix-get-2.2.6-1.el6.x86_64 3/26 
Verifying : php-gd-5.3.3-27.el6_5.2.x86_64 4/26 
Verifying : libXpm-3.5.10-2.el6.x86_64 5/26 
Verifying : php-common-5.3.3-27.el6_5.2.x86_64 6/26 
Verifying : php-xml-5.3.3-27.el6_5.2.x86_64 7/26 
Verifying : php-mbstring-5.3.3-27.el6_5.2.x86_64 8/26 
Verifying : zabbix-server-2.2.6-1.el6.x86_64 9/26 
Verifying : php-5.3.3-27.el6_5.2.x86_64 10/26 
Verifying : php-mysql-5.3.3-27.el6_5.2.x86_64 11/26 
Verifying : unixODBC-2.2.14-12.el6_3.x86_64 12/26 
Verifying : zabbix-2.2.6-1.el6.x86_64 13/26 
Verifying : zabbix-web-mysql-2.2.6-1.el6.noarch 14/26 
Verifying : OpenIPMI-libs-2.0.16-14.el6.x86_64 15/26 
Verifying : zabbix-agent-2.2.6-1.el6.x86_64 16/26 
Verifying : php-pdo-5.3.3-27.el6_5.2.x86_64 17/26 
Verifying : php-bcmath-5.3.3-27.el6_5.2.x86_64 18/26 
Verifying : fping-2.4b2-16.el6.x86_64 19/26 
Verifying : php-cli-5.3.3-27.el6_5.2.x86_64 20/26 
Verifying : zabbix-web-2.2.6-1.el6.noarch 21/26 
Verifying : php-pdo-5.3.3-26.el6.x86_64 22/26 
Verifying : php-cli-5.3.3-26.el6.x86_64 23/26 
Verifying : php-common-5.3.3-26.el6.x86_64 24/26 
Verifying : php-5.3.3-26.el6.x86_64 25/26 
Verifying : php-xml-5.3.3-26.el6.x86_64 26/26

Installed: 
zabbix.x86_64 0:2.2.6-1.el6 zabbix-agent.x86_64 0:2.2.6-1.el6 
zabbix-get.x86_64 0:2.2.6-1.el6 zabbix-server.x86_64 0:2.2.6-1.el6 
zabbix-web.noarch 0:2.2.6-1.el6 zabbix-web-mysql.noarch 0:2.2.6-1.el6

Dependency Installed: 
OpenIPMI-libs.x86_64 0:2.0.16-14.el6 
fping.x86_64 0:2.4b2-16.el6 
iksemel.x86_64 0:1.4-2.el6 
libXpm.x86_64 0:3.5.10-2.el6 
php-bcmath.x86_64 0:5.3.3-27.el6_5.2 
php-gd.x86_64 0:5.3.3-27.el6_5.2 
php-mbstring.x86_64 0:5.3.3-27.el6_5.2 
php-mysql.x86_64 0:5.3.3-27.el6_5.2 
unixODBC.x86_64 0:2.2.14-12.el6_3 
zabbix-server-mysql.x86_64 0:2.2.6-1.el6

Dependency Updated: 
php.x86_64 0:5.3.3-27.el6_5.2 php-cli.x86_64 0:5.3.3-27.el6_5.2 
php-common.x86_64 0:5.3.3-27.el6_5.2 php-pdo.x86_64 0:5.3.3-27.el6_5.2 
php-xml.x86_64 0:5.3.3-27.el6_5.2

Complete! 
[root@myzabbix Desktop]# 

[root@myzabbix Desktop]# yum -y install mysql-server 
[root@myzabbix Desktop]# yum -y install mysql-server 
Loaded plugins: fastestmirror, refresh-packagekit, security 
Loading mirror speeds from cached hostfile 
* base: mirrors.skyshe.cn 
* epel: ftp.cuhk.edu.hk 
* extras: mirrors.pubyun.com 
* updates: mirrors.pubyun.com 
Setting up Install Process 
Resolving Dependencies 
--> Running transaction check 
---> Package mysql-server.x86_64 0:5.1.73-3.el6_5 will be installed 
--> Processing Dependency: mysql = 5.1.73-3.el6_5 for package: mysql-server-5.1.73-3.el6_5.x86_64 
--> Processing Dependency: perl-DBI for package: mysql-server-5.1.73-3.el6_5.x86_64 
--> Processing Dependency: perl-DBD-MySQL for package: mysql-server-5.1.73-3.el6_5.x86_64 
--> Processing Dependency: perl(DBI) for package: mysql-server-5.1.73-3.el6_5.x86_64 
--> Running transaction check 
---> Package mysql.x86_64 0:5.1.73-3.el6_5 will be installed 
--> Processing Dependency: mysql-libs = 5.1.73-3.el6_5 for package: mysql-5.1.73-3.el6_5.x86_64 
---> Package perl-DBD-MySQL.x86_64 0:4.013-3.el6 will be installed 
---> Package perl-DBI.x86_64 0:1.609-4.el6 will be installed 
--> Running transaction check 
---> Package mysql-libs.x86_64 0:5.1.71-1.el6 will be updated 
---> Package mysql-libs.x86_64 0:5.1.73-3.el6_5 will be an update 
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================ 
Package Arch Version Repository Size 
================================================================================ 
Installing: 
mysql-server x86_64 5.1.73-3.el6_5 updates 8.6 M 
Installing for dependencies: 
mysql x86_64 5.1.73-3.el6_5 updates 894 k 
perl-DBD-MySQL x86_64 4.013-3.el6 base 134 k 
perl-DBI x86_64 1.609-4.el6 base 705 k 
Updating for dependencies: 
mysql-libs x86_64 5.1.73-3.el6_5 updates 1.2 M

Transaction Summary 
================================================================================ 
Install 4 Package(s) 
Upgrade 1 Package(s)

Total download size: 12 M 
Downloading Packages: 
(1/5): mysql-5.1.73-3.el6_5.x86_64.rpm | 894 kB 00:00 
(2/5): mysql-libs-5.1.73-3.el6_5.x86_64.rpm | 1.2 MB 00:00 
(3/5): mysql-server-5.1.73-3.el6_5.x86_64.rpm | 8.6 MB 00:04 
(4/5): perl-DBD-MySQL-4.013-3.el6.x86_64.rpm | 134 kB 00:00 
(5/5): perl-DBI-1.609-4.el6.x86_64.rpm | 705 kB 00:00 
-------------------------------------------------------------------------------- 
Total 1.2 MB/s | 12 MB 00:09 
Running rpm_check_debug 
Running Transaction Test 
Transaction Test Succeeded 
Running Transaction 
Updating : mysql-libs-5.1.73-3.el6_5.x86_64 1/6 
Installing : perl-DBI-1.609-4.el6.x86_64 2/6 
Installing : perl-DBD-MySQL-4.013-3.el6.x86_64 3/6 
Installing : mysql-5.1.73-3.el6_5.x86_64 4/6 
Installing : mysql-server-5.1.73-3.el6_5.x86_64 5/6 
Cleanup : mysql-libs-5.1.71-1.el6.x86_64 6/6 
Verifying : perl-DBD-MySQL-4.013-3.el6.x86_64 1/6 
Verifying : mysql-libs-5.1.73-3.el6_5.x86_64 2/6 
Verifying : mysql-server-5.1.73-3.el6_5.x86_64 3/6 
Verifying : mysql-5.1.73-3.el6_5.x86_64 4/6 
Verifying : perl-DBI-1.609-4.el6.x86_64 5/6 
Verifying : mysql-libs-5.1.71-1.el6.x86_64 6/6

Installed: 
mysql-server.x86_64 0:5.1.73-3.el6_5

Dependency Installed: 
mysql.x86_64 0:5.1.73-3.el6_5 perl-DBD-MySQL.x86_64 0:4.013-3.el6 
perl-DBI.x86_64 0:1.609-4.el6

Dependency Updated: 
mysql-libs.x86_64 0:5.1.73-3.el6_5

Complete! 
[root@myzabbix Desktop]# 

 
  
character-set-server=utf8
innodb_file_per_table=1
[root@myzabbix Desktop]# vi /etc/my.cnf 
[root@myzabbix Desktop]# 

[root@myzabbix Desktop]# chkconfig mysqld on

[root@myzabbix Desktop]# service mysqld start

Initializing MySQL database: Installing MySQL system tables...

OK

Filling help tables...

OK

To start mysqld at boot time you have to copy

support-files/mysql.server to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !

To do so, start the server, then issue the following commands:

/usr/bin/mysqladmin -u root password 'new-password'

/usr/bin/mysqladmin -u root -h myzabbix.xjm.com password 'new-password'

Alternatively you can run:

/usr/bin/mysql_secure_installation

which will also give you the option of removing the test

databases and anonymous user created by default. This is

strongly recommended for production servers.

See the manual for more instructions.

You can start the MySQL daemon with:

cd /usr ; /usr/bin/mysqld_safe &

You can test the MySQL daemon with mysql-test-run.pl

cd /usr/mysql-test ; perl mysql-test-run.pl

Please report any problems with the /usr/bin/mysqlbug script!

[ OK ]

Starting mysqld: [ OK ]

[root@myzabbix Desktop]#

[root@myzabbix Desktop]# ps -ef |grep mysql

root 3296 1 0 04:43 pts/0 00:00:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --socket=/var/lib/mysql/mysql.sock --pid-file=/var/run/mysqld/mysqld.pid --basedir=/usr --user=mysql

mysql 3404 3296 0 04:43 pts/0 00:00:00 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --log-error=/var/log/mysqld.log --pid-file=/var/run/mysqld/mysqld.pid --socket=/var/lib/mysql/mysql.sock

root 3427 2947 0 04:44 pts/0 00:00:00 grep mysql

 [root@myzabbix Desktop]# mysqladmin -uroot password admin 

[root@myzabbix Desktop]# mysql -uroot -padmin

Welcome to the MySQL monitor. Commands end with ; or \g.

Your MySQL connection id is 3

Server version: 5.1.73 Source distribution

Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its

affiliates. Other names may be trademarks of their respective

owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> create database zabbix character set utf8;

Query OK, 1 row affected (0.00 sec)

mysql> grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix';

Query OK, 0 rows affected (0.00 sec)

mysql> flush privileges;

Query OK, 0 rows affected (0.00 sec)

mysql> 

 
mysql> source /usr/share/doc/zabbix-server-mysql-2.2.6/create/images.sql;
mysql> source /usr/share/doc/zabbix-server-mysql-2.2.6/create/data.sql; 
mysql> source /usr/share/doc/zabbix-server-mysql-2.2.6/create/schema.sql;
mysql> show tables;
+-----------------------+
| Tables_in_zabbix |
+-----------------------+
| acknowledges |
| actions |
| alerts |
| application_template |
| applications |
| auditlog |
| auditlog_details |
| autoreg_host |
| conditions |
| config |
| dbversion |
| dchecks |
| dhosts |
| drules |
| dservices |
| escalations |
| events |
| expressions |
| functions |
| globalmacro |
| globalvars |
| graph_discovery |
| graph_theme |
| graphs |
| graphs_items |
| group_discovery |
| group_prototype |
| groups |
| history |
| history_log |
| history_str |
| history_str_sync |
| history_sync |
| history_text |
| history_uint |
| history_uint_sync |
| host_discovery |
| host_inventory |
| hostmacro |
| hosts |
| hosts_groups |
| hosts_templates |
| housekeeper |
| httpstep |
| httpstepitem |
| httptest |
| httptestitem |
| icon_map |
| icon_mapping |
| ids |
| images |
| interface |
| interface_discovery |
| item_discovery |
| items |
| items_applications |
| maintenances |
| maintenances_groups |
| maintenances_hosts |
| maintenances_windows |
| mappings |
| media |
| media_type |
| node_cksum |
| nodes |
| opcommand |
| opcommand_grp |
| opcommand_hst |
| opconditions |
| operations |
| opgroup |
| opmessage |
| opmessage_grp |
| opmessage_usr |
| optemplate |
| profiles |
| proxy_autoreg_host |
| proxy_dhistory |
| proxy_history |
| regexps |
| rights |
| screens |
| screens_items |
| scripts |
| service_alarms |
| services |
| services_links |
| services_times |
| sessions |
| slides |
| slideshows |
| sysmap_element_url |
| sysmap_url |
| sysmaps |
| sysmaps_elements |
| sysmaps_link_triggers |
| sysmaps_links |
| timeperiods |
| trends |
| trends_uint |
| trigger_depends |
| trigger_discovery |
| triggers |
| user_history |
| users |
| users_groups |
| usrgrp |
| valuemaps |
+-----------------------+
108 rows in set (0.00 sec)
mysql>
[root@myzabbix Desktop]# egrep -v "(^#|^$)" /etc/zabbix/zabbix_server.conf 
[root@myzabbix Desktop]# egrep -v "(^#|^$)" /etc/zabbix/zabbix_server.conf 
LogFile=/var/log/zabbix/zabbix_server.log 
LogFileSize=0 
PidFile=/var/run/zabbix/zabbix_server.pid 
DBName=zabbix 
DBUser=zabbix 
DBSocket=/var/lib/mysql/mysql.sock 
SNMPTrapperFile=/var/log/snmptt/snmptt.log 
AlertScriptsPath=/usr/lib/zabbix/alertscripts 
ExternalScripts=/usr/lib/zabbix/externalscripts 
[root@myzabbix Desktop]# egrep -v "(^#|^$)" /etc/zabbix/zabbix_server.conf 
LogFile=/var/log/zabbix/zabbix_server.log 
LogFileSize=0 
PidFile=/var/run/zabbix/zabbix_server.pid 
DBName=zabbix 
DBUser=zabbix 
DBSocket=/var/lib/mysql/mysql.sock 
SNMPTrapperFile=/var/log/snmptt/snmptt.log 
AlertScriptsPath=/usr/lib/zabbix/alertscripts 
ExternalScripts=/usr/lib/zabbix/externalscripts 
[root@myzabbix Desktop]# vi /etc/zabbix/zabbix_server.conf 
[root@myzabbix Desktop]# egrep -v "(^#|^$)" /etc/zabbix/zabbix_server.conf 
LogFile=/var/log/zabbix/zabbix_server.log 
LogFileSize=0 
PidFile=/var/run/zabbix/zabbix_server.pid 
DBName=zabbix 
DBUser=zabbix 
DBPassword=zabbix 
DBSocket=/var/lib/mysql/mysql.sock 
StartPollers=5 
SNMPTrapperFile=/var/log/snmptt/snmptt.log 
CacheSize=256M 
AlertScriptsPath=/usr/lib/zabbix/alertscripts 
ExternalScripts=/usr/lib/zabbix/externalscripts 
[root@myzabbix Desktop]# mkdir /etc/zabbix/alertscripts /etc/zabbix/externalscripts 
[root@myzabbix Desktop]# service zabbix-server start 
Starting Zabbix server: [ OK ] 
[root@myzabbix Desktop]# service httpd start 
Starting httpd: [ OK ] 
[root@myzabbix Desktop]# chkconfig zabbix-server on 
[root@myzabbix Desktop]# chkconfig httpd on 
[root@myzabbix Desktop]# 
[root@myzabbix Desktop]# vi /etc/sysconfig/iptables 
-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 10051 -j ACCEPT
-A OUTPUT -m state --state NEW -m tcp -p tcp --dport 10050 -j ACCEPT
[root@myzabbix Desktop]# service iptables restart 
iptables: Setting chains to policy ACCEPT: filter [ OK ] 
iptables: Flushing firewall rules: [ OK ] 
iptables: Unloading modules: [ OK ] 
iptables: Applying firewall rules: [ OK ] 
[root@myzabbix Desktop]#  
[root@myzabbix Desktop]# chcon -R -t httpd_sys_content_rw_t /usr/share/zabbix/conf 
[root@myzabbix Desktop]# setsebool -P httpd_can_network_connect=true 
[root@myzabbix Desktop]# semanage port -a -t http_port_t -p tcp 10051 
bash: semanage: command not found 
[root@myzabbix Desktop]# yum -y install policycoreutils-python 
[root@myzabbix Desktop]# semanage port -a -t http_port_t -p tcp 10051 
/usr/sbin/semanage: Port tcp/10051 already defined 
[root@myzabbix Desktop]# 

[root@myzabbix Desktop]# yum -y install policycoreutils-python

Loaded plugins: fastestmirror, refresh-packagekit, security

Loading mirror speeds from cached hostfile

* base: mirrors.skyshe.cn

* epel: ftp.cuhk.edu.hk

* extras: mirrors.pubyun.com

* updates: mirrors.pubyun.com

Setting up Install Process

Resolving Dependencies

--> Running transaction check

---> Package policycoreutils-python.x86_64 0:2.0.83-19.39.el6 will be installed

--> Processing Dependency: libsemanage-python >= 2.0.43-4 for package: policycoreutils-python-2.0.83-19.39.el6.x86_64

--> Processing Dependency: audit-libs-python >= 1.4.2-1 for package: policycoreutils-python-2.0.83-19.39.el6.x86_64

--> Processing Dependency: setools-libs-python for package: policycoreutils-python-2.0.83-19.39.el6.x86_64

--> Processing Dependency: libcgroup for package: policycoreutils-python-2.0.83-19.39.el6.x86_64

--> Running transaction check

---> Package audit-libs-python.x86_64 0:2.2-4.el6_5 will be installed

--> Processing Dependency: audit-libs = 2.2-4.el6_5 for package: audit-libs-python-2.2-4.el6_5.x86_64

---> Package libcgroup.x86_64 0:0.40.rc1-6.el6_5.1 will be installed

---> Package libsemanage-python.x86_64 0:2.0.43-4.2.el6 will be installed

---> Package setools-libs-python.x86_64 0:3.3.7-4.el6 will be installed

--> Processing Dependency: setools-libs = 3.3.7-4.el6 for package: setools-libs-python-3.3.7-4.el6.x86_64

--> Processing Dependency: libsefs.so.4(VERS_4.0)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64

--> Processing Dependency: libseaudit.so.4(VERS_4.2)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64

--> Processing Dependency: libseaudit.so.4(VERS_4.1)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64

--> Processing Dependency: libqpol.so.1(VERS_1.4)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64

--> Processing Dependency: libqpol.so.1(VERS_1.3)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64

--> Processing Dependency: libqpol.so.1(VERS_1.2)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64

--> Processing Dependency: libpoldiff.so.1(VERS_1.3)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64

--> Processing Dependency: libpoldiff.so.1(VERS_1.2)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64

--> Processing Dependency: libapol.so.4(VERS_4.1)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64

--> Processing Dependency: libapol.so.4(VERS_4.0)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64

--> Processing Dependency: libsefs.so.4()(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64

--> Processing Dependency: libseaudit.so.4()(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64

--> Processing Dependency: libqpol.so.1()(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64

--> Processing Dependency: libpoldiff.so.1()(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64

--> Processing Dependency: libapol.so.4()(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64

--> Running transaction check

---> Package audit-libs.x86_64 0:2.2-2.el6 will be updated

--> Processing Dependency: audit-libs = 2.2-2.el6 for package: audit-2.2-2.el6.x86_64

---> Package audit-libs.x86_64 0:2.2-4.el6_5 will be an update

---> Package setools-libs.x86_64 0:3.3.7-4.el6 will be installed

--> Running transaction check

---> Package audit.x86_64 0:2.2-2.el6 will be updated

---> Package audit.x86_64 0:2.2-4.el6_5 will be an update

--> Finished Dependency Resolution

Dependencies Resolved

================================================================================

Package Arch Version Repository Size

================================================================================

Installing:

policycoreutils-python x86_64 2.0.83-19.39.el6 base 343 k

Installing for dependencies:

audit-libs-python x86_64 2.2-4.el6_5 updates 59 k

libcgroup x86_64 0.40.rc1-6.el6_5.1 updates 126 k

libsemanage-python x86_64 2.0.43-4.2.el6 base 81 k

setools-libs x86_64 3.3.7-4.el6 base 400 k

setools-libs-python x86_64 3.3.7-4.el6 base 222 k

Updating for dependencies:

audit x86_64 2.2-4.el6_5 updates 225 k

audit-libs x86_64 2.2-4.el6_5 updates 60 k

Transaction Summary

================================================================================

Install 6 Package(s)

Upgrade 2 Package(s)

Total download size: 1.5 M

Downloading Packages:

(1/8): audit-2.2-4.el6_5.x86_64.rpm | 225 kB 00:00

(2/8): audit-libs-2.2-4.el6_5.x86_64.rpm | 60 kB 00:00

(3/8): audit-libs-python-2.2-4.el6_5.x86_64.rpm | 59 kB 00:00

(4/8): libcgroup-0.40.rc1-6.el6_5.1.x86_64.rpm | 126 kB 00:00

(5/8): libsemanage-python-2.0.43-4.2.el6.x86_64.rpm | 81 kB 00:00

(6/8): policycoreutils-python-2.0.83-19.39.el6.x86_64.rp | 343 kB 00:00

(7/8): setools-libs-3.3.7-4.el6.x86_64.rpm | 400 kB 00:00

(8/8): setools-libs-python-3.3.7-4.el6.x86_64.rpm | 222 kB 00:00

--------------------------------------------------------------------------------

Total 332 kB/s | 1.5 MB 00:04

Running rpm_check_debug

Running Transaction Test

Transaction Test Succeeded

Running Transaction

Updating : audit-libs-2.2-4.el6_5.x86_64 1/10

Installing : audit-libs-python-2.2-4.el6_5.x86_64 2/10

Installing : setools-libs-3.3.7-4.el6.x86_64 3/10

Installing : setools-libs-python-3.3.7-4.el6.x86_64 4/10

Installing : libcgroup-0.40.rc1-6.el6_5.1.x86_64 5/10

Installing : libsemanage-python-2.0.43-4.2.el6.x86_64 6/10

Installing : policycoreutils-python-2.0.83-19.39.el6.x86_64 7/10

Updating : audit-2.2-4.el6_5.x86_64 8/10

Cleanup : audit-2.2-2.el6.x86_64 9/10

Cleanup : audit-libs-2.2-2.el6.x86_64 10/10

Verifying : audit-2.2-4.el6_5.x86_64 1/10

Verifying : audit-libs-python-2.2-4.el6_5.x86_64 2/10

Verifying : setools-libs-python-3.3.7-4.el6.x86_64 3/10

Verifying : audit-libs-2.2-4.el6_5.x86_64 4/10

Verifying : libsemanage-python-2.0.43-4.2.el6.x86_64 5/10

Verifying : policycoreutils-python-2.0.83-19.39.el6.x86_64 6/10

Verifying : libcgroup-0.40.rc1-6.el6_5.1.x86_64 7/10

Verifying : setools-libs-3.3.7-4.el6.x86_64 8/10

Verifying : audit-libs-2.2-2.el6.x86_64 9/10

Verifying : audit-2.2-2.el6.x86_64 10/10

Installed:

policycoreutils-python.x86_64 0:2.0.83-19.39.el6

Dependency Installed:

audit-libs-python.x86_64 0:2.2-4.el6_5

libcgroup.x86_64 0:0.40.rc1-6.el6_5.1

libsemanage-python.x86_64 0:2.0.43-4.2.el6

setools-libs.x86_64 0:3.3.7-4.el6

setools-libs-python.x86_64 0:3.3.7-4.el6

Dependency Updated:

audit.x86_64 0:2.2-4.el6_5 audit-libs.x86_64 0:2.2-4.el6_5

Complete!

[root@myzabbix Desktop]# semanage port -a -t http_port_t -p tcp 10051

/usr/sbin/semanage: Port tcp/10051 already defined

[root@myzabbix Desktop]#

[root@myzabbix Desktop]# setenforce 0 
[root@myzabbix Desktop]# getenforce 
Permissive 
[root@myzabbix Desktop]# vi /etc/selinux/config  
SELINUX=disabled
[root@myzabbix Desktop]# vi /etc/php.ini 
;date.timezone = Asia/Shanghai
max_execution_time = 300
post_max_size = 16M
max_input_time = 300
;mbstring.func_overload = 2
[root@myzabbix Desktop]# vi /etc/httpd/conf.d/zabbix.conf
    php_value max_execution_time 300
    php_value memory_limit 128M
    php_value post_max_size 16M
    php_value upload_max_filesize 2M
    php_value max_input_time 300
    php_value date.timezone Asia/Shanghai
[root@myzabbix Desktop]# service httpd restart 
 

Zabbix Step 1 : Install CentOS6.5 and Configration的更多相关文章

  1. Step 4: Install and Configure Databases

    https://www.cloudera.com/documentation/enterprise/latest/topics/cm_ig_installing_configuring_dbs.htm ...

  2. Hadoop step by step _ install and configuration environment

    1.安装centos linux系统. 2.配置静态IP 3.配置防火墙 4.添加hadoop用户 5.检查并安装jdk 配置环境变量 6.配置sshd服务 7.配置ssh免密码登录 8.格式化nam ...

  3. centos6 install mplayer(multimedia)

    step_1 http://wiki.centos.org/AdditionalResources/Repositories/RPMForge step_2 http://wiki.centos.or ...

  4. centos6.4安装 zabbix agent

    1.防火墙设置 允许zabbix-agent的10050端口通过  iptables -A INPUT -p tcp --dport 10050 -j ACCEPT  2.安装zabbix agent ...

  5. zabbix分布式监控系统安装配置

    zabbix简介: zabbix(音同 zæbix)是一个基于WEB界面的提供分布式系统监视以及网络监视功能的企业级的开源解决方案. zabbix能监视各种网络参数,保证服务器系统的安全运营:并提供灵 ...

  6. CentOS6.5上Zabbix3.0的RPM安装【一】-安装并配置Server

    一.Environment OS:CentOS6.5 64bit [桌面版安装] Server端:192.168.201.109 ServerName Clinet端:192.168.201.199 ...

  7. 如何部署Zabbix服务端

    部署环境 RHEL 6.7 Zabbix-server 2.2.14 安装zabbix官方源 # wget http://repo.zabbix.com/zabbix/2.2/rhel/6/x86_6 ...

  8. install zabbix-agent on CENTOS

    in ubuntu--https://www.digitalocean.com/community/tutorials/how-to-install-zabbix-on-ubuntu-configur ...

  9. 第八章 监控 Zabbix

    1.1   YUM部署 Zabbix 2.4 1.  前期准备(省略) l   Yum源的配置 cd /etc/yum.repos.d/; mkdir old;mv ./* old/ rpm -Uvh ...

随机推荐

  1. 基于Visual C++2013拆解世界五百强面试题--题6-double类型逆序

    请设计一个函数,不许用到字符串函数,用数学运算,将double类型数据转换,例如123.456转换成654.321 首先想到依次提取他的每一个位数,然后进行运算,移动每一位数到相应位置,结果相加就能逆 ...

  2. Hope

    透过希望的窗棂,在阴霾的罅隙里也可以寻找阳光,看到未来的春暖花开. ——forever97

  3. IPhone多视图切换

    处理IPhone多个view切换是我们常遇到的问题,接下来有个比较实用的方法: 而且还附有创建空项目,内存告急处理和动画效果的实现! 具体步骤: 1.创建一个空的项目,然后添加一个ViewContro ...

  4. NS2 nam中节点及数据流颜色设置

    NS2 节点颜色设置在http://hi.baidu.com/jrwen0/item/d105c642f4c3ce36fb89601b说明的比較具体,大家能够參见. 我这里想说的是数据流颜色的设置,相 ...

  5. 编译和安装shibboleth-sp遇到的问题

    In file included from mod_shib_20.cpp:68: mod_shib.cpp:118: warning: deprecated conversion from stri ...

  6. Lamd表达式

    1. 普通绑定: public void button1_Click(object sender, EventArgs e) { MessageBox.Show("ok"); } ...

  7. 实现JQuery_Accordion功能

    1. 添加AJAX引用 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/li ...

  8. SDWebImage内部实现过程

    入口 setImageWithURL:placeholderImage:options: 会先把 placeholderImage 显示,然后 SDWebImageManager 根据 URL 开始处 ...

  9. 字符串匹配算法(KMP)

    字符串匹配运用很广泛,举个简单例子,我们每天登QQ时输入账号和密码,大家有没有想过账号和密码是怎样匹配的呢?登录需要多长时间和匹配算法的效率有直接的关系. 首先理解一下前缀和后缀的概念: 给出一个问题 ...

  10. BZOJ 1059: [ZJOI2007]矩阵游戏( 匈牙利 )

    只要存在N个x, y坐标均不相同的黑格, 那么就一定有解. 二分图匹配, 假如最大匹配=N就是有解的, 否则无解 ------------------------------------------- ...