监控-zabbix

官网(www.zabbix.com)
环境:封装redhat7.2虚拟机
下载php-mbstring-5.4.16-36.el7_1.x86_64.rpm php-bcmath-5.4.16-36.el7_1.x86_64.rpm
[root@server-hd0 el7]# yum install zabbix-server-mysql-3.2.6-1.el7.x86_64.rpm zabbix-agent-3.2.6-1.el7.x86_64.rpm zabbix-web-3.2.6-1.el7.noarch.rpm zabbix-web-mysql-3.2.6-1.el7.noarch.rpm iksemel-1.4-2.el7.centos.x86_64.rpm fping-3.10-1.el7.x86_64.rpm -y
[root@server-hd0 ~]# yum install php-* -y
[root@server-hd0 ~]# yum install -y mariadb-server
[root@server-hd0 ~]# systemctl start mariadb
[root@server-hd0 ~]# mysql

MariaDB [(none)]> create database zabbix character set utf8 collate utf8_bin;
Query OK, 1 row affected (0.00 sec)

MariaDB [(none)]> grant all privileges on zabbix.* to zabbix@localhost identified by 'westos';
Query OK, 0 rows affected (0.00 sec)

[root@server-hd0 ~]# cd /usr/share/doc/zabbix-server-mysql-3.2.6/
[root@server-hd0 zabbix-server-mysql-3.2.6]# zcat create.sql.gz | mysql -uzabbix -p zabbix

[root@server-hd0 zabbix-server-mysql-3.2.6]# cd /etc/zabbix
[root@server-hd0 zabbix]# vim zabbix_server.conf
DBPassword=westos
[root@server-hd0 zabbix]# systemctl start zabbix-server
[root@server-hd0 zabbix]# systemctl enable zabbix-server
[root@server-hd0 ~]# cd /etc/httpd/conf.d
[root@server-hd0 conf.d]# vim zabbix.conf

php_value date.timezone Asia/Shanghai

[root@server-hd0 ~]# systemctl start httpd
[root@server-hd0 ~]# systemctl start zabbix-agent
[root@server-hd0 ~]# systemctl enable zabbix-agent
访问172.25.70.50/zabbix
监控-zabbix_第1张图片
监控-zabbix_第2张图片
监控-zabbix_第3张图片!
在vm2上,下载zabbix-agent-3.2.6-1.el6.x86_64.rpm并安装
[root@server2 ~]# vim /etc/zabbix/zabbix_agentd.conf
Server=172.25.70.50
Hostname=server2

两个虚拟机之间设置好解析(/etc/hosts)
[root@server2 ~]# /etc/init.d/zabbix-agent start
[root@server2 ~]# chkconfig zabbix-agent on
在网页页面进行主机添加
监控-zabbix_第4张图片

你可能感兴趣的:(企业部分)