2. vi /etc/my.cnf
在[mysqld]加入
default-storage-engine=INNODB
service httpd start
service mysqld start
chkconfig httpd on
chkconfig mysqld on
3. Install the repository configuration package
rpm -ivh http://repo.zabbix.com/zabbix/2.2/rhel/6/x86_64/zabbix-release-2.2-1.el6.noarch.rpm
4. for Zabbix server and web frontend with mysql database
yum -y install zabbix-server-mysql zabbix-web-mysql
5. for Zabbix agent -- on zabbix server and linux client
yum -y install zabbix-agent
6.Create zabbix database and user on MySQL.
# mysql -u root
mysql> create database zabbix character set utf8;
mysql> grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix';
mysql> flush privileges;
mysql> exit
Import initial schema and data.
# cd /usr/share/doc/zabbix-server-mysql-2.2.1/create
# mysql -uroot zabbix < schema.sql
# mysql -uroot zabbix < images.sql
# mysql -uroot zabbix < data.sql
7.Edit database configuration in zabbix_server.conf
# vi /etc/zabbix/zabbix_server.conf
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=zabbix Start Zabbix server process.
# service zabbix-server start
chkconfig zabbix-server on
8.Apache configuration file for Zabbix frontend is located in /etc/httpd/conf.d/zabbix.conf. Some PHP settings are already configured.
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 It's necessary to uncomment the “date.timezone” setting and set the right timezone for you. After changing the configuration file restart the apache web server.
# service httpd restart
9. Zabbix frontend is available at http://zabbix-frontend-hostname/zabbix in the browser. Default username/password is Admin/zabbix.
10. for zabbix agent configuration
vi /etc/zabbix/zabbix_agentd.conf
#Server=[zabbix server ip] --This is for zabbix agent Passive check, port 10050
#ServerActive=[zabbix server ip] --This is for zabbix agent(active) Active check, port 10051
#Hostname=[ Hostname of client system ]
#hostname value set on the agent side should exactly match the ”Host name” configured for the host in the web frontend
Server=192.168.1.11
ServerActive=192.168.1.11
Hostname=Linux Client
service zabbix-agent start
chkconfig zabbix-agent on
11. for installing zabbix agent on Windows Server 2012 client
a).download zabbix_agents_2.2.1.win.zip and extract to c:\zabbix
wordpad c:\zabbix\zabbix_agentd.win.conf
#Server=[zabbix server ip] --This is for zabbix agent Passive check, port 10050
#ServerActive=[zabbix server ip] --This is for zabbix agent(active) Active check, port 10051
#Hostname=[ Hostname of client system ]
#hostname value set on the agent side should exactly match the ”Host name” configured for the host in the web frontend