• zabbix3.4监控Linux客户端


    环境准备

    zabbix-server IP:192.168.1.242

    nds-server  IP:192.168.1.202

    web-server IP:192.168.1.203

    客户端部署

    关闭ebtables firewalld防火墙

    [root@dns-server ~]# systemctl stop ebtables firewalld

    [root@dns-server ~]# systemctl disable ebtables firewalld

    image.png

    关闭 selinux

    [root@dns-server ~]# vim /etc/sysconfig/selinux 

    image.png

    [root@dns-server ~]# setenforce 0

    [root@dns-server ~]# getenforce 

    image.png

    安装zabbix repo源

    rpm -ivh https://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-2.el7.noarch.rpm

    image.png

    安装zabbxi-agent软件包,即zabbix客户端软件

    yum -y install zabbix-agent

    image.png

    编辑zabbix-agent的配置文件

    [root@dns-server ~]# vim /etc/zabbix/zabbix_agentd.conf 

    image.png

    启动zabbix-agent服务并加入到开机启动

    [root@dns-server ~]# systemctl start zabbix-agent

    [root@dns-server ~]# systemctl enable zabbix-agent

    [root@dns-server ~]# systemctl status zabbix-agent

    image.png

    在zabbix  web界面新建主机群组

    image.png

    image.pngimage.png

    在配置选项栏中点击主机,我们开始创建主机

    image.png

    image.png

    agent代理接口:我们安装的zabbix-agent软件,需要安装zabbix-agent软件

    SNMP接口:监控交换路由,需要在交换机 和路由器开启SNMP

    JMX接口:

    IPMI接口:监控硬件   需要ipmitools监控

    image.png

    此处不要着急点添加,因为我们还没有套用模板

    接着我们在点击模板选项,进行模板套用

    image.png

    记得一定要点击小的添加,才算添加模板成功。点击大的添加代表添加主机成功,并没有套用模板。

    image.png

    添加模板成功。回到主机选项点击添加

    image.png

    image.png

    同样的方式我们把web-server的主机也添加到vancen主机群组里

    关闭ebtables firewalld防火墙

    [root@web-server ~]# systemctl stop ebtables firewalld

    [root@web-server ~]# systemctl disable ebtables firewalld

    image.png

    关闭selinux

    [root@web-server ~]# vim /etc/sysconfig/selinux   #永久关闭selinux

    image.png

    [root@web-server ~]# setenforce 0   #临时将selinux设置为permissive状态

    [root@web-server ~]# getenforce    #查看selinux状态

    image.png

    安装zabbix repo源

    [root@web-server ~]# rpm -ivh https://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-2.el7.noarch.rpm

    image.png

    安装zabbix-agent软件

    [root@web-server ~]# yum -y install zabbix-agent

    image.png

    image.png

    编辑zabbix-agent配置文件修改zabbix server地址

    [root@web-server ~]# vim /etc/zabbix/zabbix_agentd.conf 

    image.png

    重启zabbix-agent服务,并添加到开机自启

    [root@web-server ~]# systemctl start zabbix-agent

    [root@web-server ~]# systemctl enable zabbix-agent

    [root@web-server ~]# systemctl status zabbix-agent

    image.png

    在zabbix web界面添加web-server主机

    image.pngimage.pngimage.pngimage.pngimage.pngimage.png

  • 相关阅读:
    PS 给天空添加蓝天白云<转载>
    Study 8 —— 行块元素及定位
    Study 7 —— CSS美化背景和边框
    Study 6 —— 字体和段落属性
    Study 5 —— CSS概述
    Study 4 —— 表单标签
    Study 3 —— 表格
    Study 2 —— 图片热点区域
    Study 1 —— HTML5概述
    CentOS6.x下,tomcat
  • 原文地址:https://www.cnblogs.com/chenjiangfeng/p/9706523.html
Copyright © 2020-2023  润新知