zabbix2.0 安装
http://www.zabbix.com/documentation/2.0/manual/installation/install
groupadd zabbix
useradd -g zabbix zabbix
##mysql
yum install mysql-server mysql
vim /etc/my.cnf
datadir=/data/mysql ###data是挂上去的盘。
shell> mysql
mysql> create database zabbix character set utf8;
mysql> grant all privileges on zabbix.* to 'zabbix'@'%' IDENTIFIED BY "zabbix";
mysql> quit;
shell> mysql -uzabbix -pzabbix zabbix < database/mysql/schema.sql
# stop here if you are creating database for Zabbix proxy
shell> mysql -uzabbix -pzabbix zabbix < database/mysql/images.sql
shell> mysql -uzabbix -pzabbix zabbix < database/mysql/data.sql
###编译server,proxy和agent
yum install gcc
./configure --enable-server --enable-agent --enable-proxy --with-mysql --with-net-snmp --with-libcurl --prefix=/usr/local/zabbix
(yum install net-snmp net-snmp-devel)
(编译agent)./configure --enable-agent --with-net-snmp
make install
vim /usr/local/zabbix/etc/zabbix_agentd.conf
修改:Server=127.0.0.1为server本机ip
vim /usr/local/zabbix/etc/zabbix_server.conf
修改数据库配置
vim zabbix_proxy.conf
修改Hostname(proxy的hostname),Server=~~和数据库配置
ListenPort=10059(默认是10051,但是我把proxy和server装在同一台机器上了)
启动
shell>zabbix_server
shell> zabbix_agentd
yum install -y php php-mysql php-bcmath php-mbstring php-xml
mkdir <htdocs>/zabbix
cd zabbix-2.0.3/frontends/php
cp -a . <htdocs>/zabbix
vim /etc/php.ini
post_max_size = 20M
max_execution_time = 300
max_input_time = 300
date.timezone = Asia/Shanghai
service httpd start
访问http://10.20.18.1/zabbix/
使用!
1,用户 登录
默认有Admin用户,密码为zabbix(admin登录之后,右下角有“Connected as 'Admin'”)
配置用户 Administration → Users
左上方有create user和create group
很喜欢它配置permissions的页面
2。。。。未完待续续续续续续续