不正狼 发表于 2019-1-24 11:01:23

zabbix搭建安装,server端,agent端,修改字符集

  通过阿里的开源镜像去下载zabbix
  https://mirrors.aliyun.com
可以ctrl+f搜到zabbix
  可以选择redhat7,之后
   http://s1.运维网.com/images/20180702/1530496611622386.png
  http://s1.运维网.com/images/20180702/1530496620266209.png
  复制这个链接

  rpm -ivh https://mirrors.aliyun.com/zabbix/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-1.el7.centos.noarch.rpm
   http://s1.运维网.com/images/20180702/1530496643427487.png
  之后通过    yum makecache

http://s1.运维网.com/images/20180702/1530496663304873.png
  开始安装
yum -y install zabbix-server-mysql zabbix-web-mysql zabbix-server zabbix-agent mariadb-server
   http://s1.运维网.com/images/20180702/1530496687506513.png
  create database zabbix character set utf8 collate utf8_bin;
   http://s1.运维网.com/images/20180702/1530496706912128.png
   grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix';
http://s1.运维网.com/images/20180702/1530496728401173.png
http://s1.运维网.com/images/20180702/1530496741961505.png
  cd /usr/share/doc/zabbix-server-mysql-3.4.6/

   zcat create.sql.gz | mysql -uroot zabbix -p
  直接回车没密码
  
  vi /etc/zabbix/zabbix_server.conf
   http://s1.运维网.com/images/20180702/1530496757459832.png
  
   grep '^' /etc/zabbix/zabbix_server.conf
   http://s1.运维网.com/images/20180702/1530496779100490.png

  http://s1.运维网.com/images/20180702/1530496822673800.png
  接下来启动systemctl   startzabbix-server
  如果启动不了关闭防火墙
  修改为disable 之后再执行Setenforce0    和firewalld
  getenforce    测试一下selinux是不是disabled
  修改乱码
  vi /etc/httpd/conf.d/zabbix.conf
   http://s1.运维网.com/images/20180702/1530496843574251.png
  启动httpd
   http://s1.运维网.com/images/20180702/1530496873479903.png
  访问ip+/zabbix
   http://s1.运维网.com/images/20180702/1530496893245971.png
  这里全部是ok才可以
   http://s1.运维网.com/images/20180702/1530496977979106.png
  http://s1.运维网.com/images/20180702/1530496992272292.png
  http://s1.运维网.com/images/20180702/1530497004276963.png
  http://s1.运维网.com/images/20180702/1530497015538755.png
  http://s1.运维网.com/images/20180702/1530497028421166.png
  

   /etc/zabbix/web/zabbix.conf.php
这里不用改就是看一下
  窗体底端
   http://s1.运维网.com/images/20180702/1530497063171513.png
  http://s1.运维网.com/images/20180702/1530497076179532.png
  http://s1.运维网.com/images/20180702/1530497093167713.png
  http://s1.运维网.com/images/20180702/1530497112322158.png
  上面是安装zabbix的配置,接下来开始配置

  
  http://s1.运维网.com/images/20180702/1530497176897084.png
  然后点击
   http://s1.运维网.com/images/20180702/1530497194111150.png
  创建用户:
   http://s1.运维网.com/images/20180702/1530497208761389.png
  
  这里先不创建,我们先修改zabbixadmin的密码
   http://s1.运维网.com/images/20180702/1530497226745813.png
   http://s1.运维网.com/images/20180702/1530497240699797.png
  改成中文
  http://s1.运维网.com/images/20180702/1530497262371148.png
  
  
  如果要启动服务端的zabbix那么agent端也要启动
   http://s1.运维网.com/images/20180702/1530497282634941.png
  需要启动agent这是zabbix服务短的agent不是客户端,因为要监控服务端自身的信息所以要开启
http://s1.运维网.com/images/20180702/1530497308966130.png
http://s1.运维网.com/images/20180702/1530497318739297.png
http://s1.运维网.com/images/20180702/1530497329382204.png
  查看一下
  
   http://s1.运维网.com/images/20180702/1530497347933931.png
  查看一下
http://s1.运维网.com/images/20180702/1530497365676568.png
  有乱码可以自己解决
  如下
  首先去win上面下载一个宋体然后传到服务器的位置
  http://s1.运维网.com/images/20180702/1530497397768724.png
  接下来修改配置即可:
  

http://s1.运维网.com/images/20180702/1530497464897391.png
http://s1.运维网.com/images/20180702/1530497479813559.png
  可以识别了
http://s1.运维网.com/images/20180702/1530497501950308.png



页: [1]
查看完整版本: zabbix搭建安装,server端,agent端,修改字符集