zabbix 安装
fping-3.10-1.el7.x86_64.rpm
iksemel-1.4-2.el7.centos.x86_64.rpm
php-bcmath-5.4.16-42.el7.x86_64.rpm
php-mbstring-5.4.16-42.el7.x86_64.rpm
zabbix-agent-3.4.6-1.el7.x86_64.rpm
zabbix-java-gateway-3.4.6-1.el7.x86_64.rpm
zabbix-server-mysql-3.4.6-1.el7.x86_64.rpm
zabbix-proxy-mysql-3.4.6-1.el7.x86_64.rpm
zabbix-web-3.4.6-1.el7.noarch.rpm
zabbix-web-mysql-3.4.6-1.el7.noarch.rpm
安装之后 在安装mysql
yum install mariadb-server -y
systemctl start mariadb 启动mysql
MariaDB [(none)]> create database zabbix character set utf8 collate utf8_bin;
MariaDB [(none)]> grant all privileges on zabbix.* to zabbix@localhost identified by 'westos';
MariaDB [(none)]> flush privileges;
cd /usr/share/doc/zabbix-server-mysql-3.4.6
zcat create.sql.gz | mysql -u zabbix -p zabbix 导入数据库
输入密码 westos
修改vim /etc/zabbix/zabbix_server.conf
# DBPassword=
DBPassword=westos
vim /etc/httpd/conf.d/zabbix.conf
php_value date.timezone Asia/Shanghai
systemctl restart zabbix-server.service
安装http 服务
yum install httpd -y
vim /etc/php.ini
date.timezone =Asia/Shanghai
systemctl start httpd
进入浏览器中 输入 172.25.254.1/zabbix
mysql 帐号 zabbix westos
name zabbix
username Admin Password zabbix
zabbix 自动发现
安装agent端
[root@server1 ~]# rpm -ivh zabbix-agent-3.4.6-1.el6.x86_64.rpm
[root@server1 ~]# vim /etc/zabbix/zabbix_agentd.conf
Server=172.25.254.231 监控端ip
ServerActive=172.25.254.231 监控端ip
Hostname=server1 本机 需要解析
[root@server1~]# systemctl start zabbix-agent
配置 制动注册