zabbix
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了zabbix相关的知识,希望对你有一定的参考价值。
环境 rhel7.3 server10
软件: zabbix3.4 php5.4-42
[[email protected] ~]# ls
3.4 php-bcmath-5.4.16-42.el7.x86_64.rpm php-mbstring-5.4.16-42.el7.x86_64.rpm
安装软件:
[[email protected] ~]# yum install php-*
[[email protected] 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
[[email protected] 3.4]# yum install mariadb-server #数据库安装
[[email protected] 3.4]# systemctl start mariadb
[[email protected] 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 [email protected] identified by ‘westos‘;
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> quit
[[email protected] 3.4]# cd /usr/share/doc/zabbix-server-mysql-3.4.6/
[[email protected] zabbix-server-mysql-3.4.6]# zcat create.sql.gz |mysql zabbix #导入zabbix库
[[email protected] zabbix-server-mysql-3.4.6]# mysql
MariaDB [(none)]> use zabbix;
MariaDB [zabbix]> show tables;
[[email protected] ~]# cd /etc/zabbix/
[[email protected] zabbix]# ls
web zabbix_agentd.conf zabbix_agentd.d zabbix_server.conf
[[email protected] zabbix]# vim zabbix_server.conf
[[email protected] zabbix]# systemctl start zabbix
[[email protected] zabbix]# yum install httpd
[[email protected] zabbix]# vim /etc/httpd/conf.d/zabbix.conf
[[email protected] zabbix]# systemctl start httpd
[[email protected] zabbix]# systemctl start zabbix-agent
以上是关于zabbix的主要内容,如果未能解决你的问题,请参考以下文章