• Zabbix系列之八——安装agent监控windows


    一、下载zabbix-agent客户端

    被监控的主机装在windows server 2012 64位操作系统,被监控端需要安装:

    http://www.zabbix.com/downloads/3.2.0/zabbix_agents_3.2.0.win.zip

    二、配置

    下载完zip包,解压后会有两个文件夹bin 和 conf

    配置conf文件夹中的zabbix_agentd.win.conf

    1、设置Server、 ServerActive 和 Hostname

    Server=172.20.10.241                       #监控服务端IP
    
    ServerActive=172.20.10.241                 #监控服务端IP
    
    Hostname=Windows host                      #客户端主机名(默认就好)
    

    三、打开cmd窗口安装并启动

    C:softzabbix_agents_3.2.0.wininwin64>zabbix_agentd.exe -c C:softzabbix_agents_3.2.0.winconfzabbix_agentd.win.conf -i
    zabbix_agentd.exe [3672]: service [Zabbix Agent] installed successfully
    zabbix_agentd.exe [3672]: event source [Zabbix Agent] installed successfully
    
    C:softzabbix_agents_3.2.0.wininwin64>zabbix_agentd.exe -c C:softzabbix_agents_3.2.0.winconfzabbix_agentd.win.conf -s
    zabbix_agentd.exe [3612]: service [Zabbix Agent] started successfully
    

     

    查看帮助命令:

    C:softzabbix_agents_3.2.0.wininwin64>zabbix_agentd.exe --help
    usage:
      zabbix_agentd.exe [-c config-file]
      zabbix_agentd.exe [-c config-file] -p
      zabbix_agentd.exe [-c config-file] -t item-key
      zabbix_agentd.exe [-c config-file] -i [-m]
      zabbix_agentd.exe [-c config-file] -d [-m]
      zabbix_agentd.exe [-c config-file] -s [-m]
      zabbix_agentd.exe [-c config-file] -x [-m]
      zabbix_agentd.exe -h
      zabbix_agentd.exe -V
    
    A Zabbix daemon for monitoring of various server parameters.
    
    Options:
      -c --config config-file        Absolute path to the configuration file
                                     (default: "C:zabbix_agentd.conf")
      -f --foreground                Run Zabbix agent in foreground
      -p --print                     Print known items and exit
      -t --test item-key             Test specified item and exit
      -m --multiple-agents           For -i -d -s -x functions service name will
                                     include Hostname parameter specified in
                                     configuration file
    Functions:
    
      -i --install                   Install Zabbix agent as service
      -d --uninstall                 Uninstall Zabbix agent from service
      -s --start                     Start Zabbix agent service
      -x --stop                      Stop Zabbix agent service
    
      -h --help                      Display this help message
      -V --version                   Display version number
    
    Example: zabbix_agentd -c C:zabbixzabbix_agentd.conf
    
    Report bugs to: <https://support.zabbix.com>
    Zabbix home page: <http://www.zabbix.com>
    Documentation: <https://www.zabbix.com/documentation>
    

     四、服务端添加主机

     

     

    获取数据后:

  • 相关阅读:
    js库链接
    小程序实现textarea行数自动增加
    小程序中公告消息自动向左滚动(关闭三次之后不再提示公告信息)
    jQuery实现点击div外的区域,来隐藏指定节点
    Unity AssetBundle爬坑手记
    换装demo随手记
    Untiy PoolManager随手记
    unity常用插件
    Untiy一些方法前特殊标签记录
    Unity网格合并_材质合并
  • 原文地址:https://www.cnblogs.com/Dev0ps/p/10043320.html
Copyright © 2020-2023  润新知