zabbix server安装
1 | #检查并安装gcc |
1 | create database zabbix default character set utf8; |
1 | #解压并安装zabbix |
zabbix web安装
1 | #添加并更新yum源 |
zabbix agent安装
1 |
|
zabbix proxy安装
1 | #解压并安装zabbix proxy |
创建数据库1
2
3
4create database zabbix_proxy default character set utf8;
grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix';
flush privileges;
exit
导入表结构1
2mysql -uzabbix -p zabbix_proxy < database/mysql/schema.sql
mysql -uzabbix -p zabbix_proxy < database/mysql/schema.sql
zabbix proxy配置参考1
2
3
4
5
6
7
8
9
10Server=1.1.1.1
Hostname=proxysh
LogFile=/tmp/zabbix_proxy.log
DBName=zabbix_proxy
DBUser=zabbix
DBPassword=zabbix
ConfigFrequency=60
DataSenderFrequency=60
Timeout=4
LogSlowQueries=3000
1 | #启动zabbixproxy |