zoukankan      html  css  js  c++  java
  • Linux监控和安全运维 1.9 zabbix增加客户端监控

    1.在客户端安装 zabbix20与服务器相对应。

    yum install zabbix20-agent

    2.修改配置文件

    vim /etc/zabbix_agentd.conf 
    Server=127.0.0.1 改为
    Server=192.168.1.116
    
    
    ServerActive=127.0.0.1 改为
    ServerActive=0.0.0.0:10050    
    0.0.0.0表示所以ip
    
    Hostname=Zabbix server 自定义
    Hostname=wangshaojun

    3.启动客户端

    /etc/init.d/zabbix-agent start

    4.服务端执行,192.168.1.115为客户端ip  反馈对方的主机名,说明通信是正常的

    zabbix_get -s 192.168.1.115 -p10050 -k "system.hostname"

    5.去web界面配置

    修改中文界面 : 右上角 profile-Language Chinese (zh_CN) - save

    配置-主机-创建主机

    主机名:1.115

    可见的名称:denny

    组 linux server

    代理接口  IP地址 192.168.1.115 客户端ip

    上面模板-添加

    选择一个模板 选择

    存档

    6.configuration - 

    两个name mytem 自定义

    groups  

    save

    7.  Template App MySQL - Items

    MySQL status  最下面选copy selected to ...  - GO (1) 

    group templates 

    target mytem

    copy

    templates  mytem多了一个items

  • 相关阅读:
    fork 开源项目后如何参与项目
    C51 头文件中的 extern
    windows常用命令
    boost(barrier)
    boost库(条件变量)
    线程间同步的几种方式(了解)
    stl 迭代器(了解)
    std::thread
    同步,异步,阻塞,非阻塞
    std::thread join和detach区别
  • 原文地址:https://www.cnblogs.com/wangshaojun/p/5164858.html
Copyright © 2011-2022 走看看