zabbix基本配置操作:
-
配置zabbix-server: vi /etc/zabbix/zabbix_server.conf
-
启动zabbix-server: systemctl start zabbix-server
-
配置web服务器: vi /etc/httpd/conf.d/zabbix.conf
-
启动web服务器: systemctl start httpd (确保外部能访问需要关闭防火墙: systemctl stop firewalld 并关闭selinux: setenforce 0 )
-
日志位置: /var/log/zabbix/zabbix_server.logzabbix
-
下载与安装: https://www.zabbix.com/download
-
zabbix 在物理机上安装:
1) rpm -ivh http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-1.el7.noarch.rpm
2) yum install zabbix-server-mysql zabbix-web-mysql (如果装agent:yum install zabbix-agent)
3) 然后导入初始架构(Schema)和数据: cd /usr/share/doc/zabbix-server-mysql-3.4.0(或对应版本)
再:zcat create.sql.gz | mysql -uroot zabbix
4) 配置zabbix_server.conf
# vi /etc/zabbix/zabbix_server.conf
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=zabbix
5) vi /etc/httpd/conf.d/zabbix.conf 添加修改: php_value date.timezone Asia/Shanghai
6) 安装并配置数据库:数据库创建脚本
7) systemctl start zabbix-server ~~||~~ systemctl start httpd (启动报错运行:setenforce 0 关闭SELinux的防火墙 )
其他相关:
zabbix 启动报错:参考链接1