IT: Zabbix手记

2016-03-22  本文已影响0人  cvgti

Why

Expected Result

**How to **

  1. 安装Zabbix服务器到CentOS 7.2上
  2. 找到IT部门,拿到各个设备的资料,并把他们加入Zabbix

安装Zabbix#

  1. 安装CentOS 7.2, minimal
  2. 升级CentOS到最新版本

yum update -y

  1. 安装数据库
    CentOS 7里面移走了mysql用了mariadb, 这个是MySQL的一个分支。同时也和MySQL兼容。

yum -y install mariadb mariadb-server
systemctl start mariadb ## 启动mariadb
systemctl enable mariadb ## 设置开机启动

设置数据库, 创建zabbix数据库:

mysqladmin -u root password "yourPassword" ##设置database root用户的密码
shell> mysql -uroot -p<password>
mysql> create database zabbix character set utf8 collate utf8_bin;
mysql> grant all privileges on zabbix.* to zabbix@localhost identified by '<password>';
mysql> quit;

  1. 根据这个Guide来接着安装:
  1. 设置相关进程开机自动启动

systemctl enable mariadb
systemctl enable zabbix-server
systemctl enable httpd

  1. 进入网页设置页面:

http://zabbix-frontend-hostname/zabbix
根据提示完成所有的设置

  1. 消除httpd启动时的警告:

https://www.centos.org/forums/viewtopic.php?t=3647

  1. 修改防火墙设置以及SELinux设置
  2. 完成Zabbix安装

Zabbix 配置和使用#

Zabbix Q&A

  1. 安装配置完成后,出现提示 :zabbix server is not running: the information displayed may not be current
上一篇 下一篇

猜你喜欢

热点阅读