监控-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
这里写图片描述
这里写图片描述
这里写图片描述!
在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
在网页页面进行主机添加
这里写图片描述

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值