Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1592176
  • 博文数量: 184
  • 博客积分: 3044
  • 博客等级: 中校
  • 技术积分: 2467
  • 用 户 组: 普通用户
  • 注册时间: 2006-03-25 15:04
文章分类

全部博文(184)

文章存档

2022年(4)

2021年(3)

2020年(1)

2019年(5)

2018年(13)

2017年(6)

2016年(10)

2015年(11)

2014年(11)

2013年(13)

2012年(23)

2011年(25)

2010年(2)

2008年(1)

2007年(5)

2006年(51)

分类: 系统运维

2014-04-24 14:19:33

Note: please setup NTP for time synchronization


1.Set Up Apache, MySQL and PHP
for Database:
yum -y install mysql mysql-server mysql-devel


for frontend:
yum -y install httpd httpd-devel php php-cli php-common php-devel php-pear php-gd php-bcmath php-mbstring php-mysql php-xml


for server:
yum -y install zlib-devel glibc-devel libcurl-devel OpenIPMI-devel libssh2-devel net-snmp-devel openldap-devel
yum -y install fping iksemel-devel(using fedora epel repo -- rpm -ivh )


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


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 PHPsettings 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 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


Server=192.168.1.11
ServerActive=192.168.1.11
Hostname=Windows Client


b).c:\zabbix\bin\win64\zabbix_agentd.exe --config c:\zabbix\zabbix_agentd.win.conf --install


c).using services.msc to start zabbix agent
d).open inbound firewall port for 10050


12. add linux and windows client in zabbix web frontend
阅读(2426) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~