首页 > 其他 > 详细

zabbix

时间:2018-10-30 11:07:25      阅读:251      评论:0      收藏:0      [点我收藏+]
环境 rhel7.3 server10
软件: zabbix3.4 php5.4-42
[root@server10 ~]# ls
3.4 php-bcmath-5.4.16-42.el7.x86_64.rpm php-mbstring-5.4.16-42.el7.x86_64.rpm
安装软件:
[root@server10 ~]# yum install php-*
[root@server10 3.4]# yum install fping-3.10-1.el7.x86_64.rpm iksemel-1.4-2.el7.centos.x86_64.rpm zabbix-agent-3.4.6-1.el7.x86_64.rpm zabbix-server-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
[root@server10 3.4]# yum install mariadb-server #数据库安装
[root@server10 3.4]# systemctl start mariadb
[root@server10 3.4]# 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)

MariaDB [(none)]> quit
[root@server10 3.4]# cd /usr/share/doc/zabbix-server-mysql-3.4.6/
[root@server10 zabbix-server-mysql-3.4.6]# zcat create.sql.gz |mysql zabbix #导入zabbix库
[root@server10 zabbix-server-mysql-3.4.6]# mysql
MariaDB [(none)]> use zabbix;
MariaDB [zabbix]> show tables;
[root@server10 ~]# cd /etc/zabbix/
[root@server10 zabbix]# ls
web zabbix_agentd.conf zabbix_agentd.d zabbix_server.conf
[root@server10 zabbix]# vim zabbix_server.conf
技术分享图片
技术分享图片
[root@server10 zabbix]# systemctl start zabbix
[root@server10 zabbix]# yum install httpd
[root@server10 zabbix]# vim /etc/httpd/conf.d/zabbix.conf
[root@server10 zabbix]# systemctl start httpd
[root@server10 zabbix]# systemctl start zabbix-agent
技术分享图片

zabbix

原文:http://blog.51cto.com/13810716/2310481

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!