zoukankan      html  css  js  c++  java
  • Zabbix监控windows部署安装

    Zabbix agent 在windows上安装部署

    1、  下载与解压

    地址: http://www.zabbix.com/downloads/2.4.0/zabbix_agents_2.4.0.win.zip

    解压zabbix_agents_2.4.0.win.zip

    conf目录存放是agent配置文件 bin文件存放windows下32位和64位安装程序

    2、  配置与安装

    2.1 配置zabbix agent相关配置。

       找到conf下的配置文件 zabbix_agentd.win.conf ,修改LogFile、Server、Hostname这三个参数。具体配置如下:

    LogFile=c:zabbix_agentd.log

    Server=192.98.8.224

    Hostname=f523540。

    ServerActive=192.98.8.224 #zabbix server地址

    其中logfile是zabbix日志存放地址。Server 是zabbix服务端ip地址。Hostname是本机机器名。

    2.2 安装agent

    在windows控制台下执行以下命令:

    E:zabbixinwin32zabbix_agentd.exe  -c E:zabbixconfzabbix_agentd.win.conf –i 

    2.3 启动agent客户端

    启动命令如下:

    E:zabbixinwin32zabbix_agentd.exe  -c E:zabbixconfzabbix_agentd.win.conf –s

    启动的程序将以控制台的形式开启。查看启动的日志:

      8732:20140912:162313.203 Starting Zabbix Agent [f523540]. Zabbix 2.4.0 (revision 48940).

      8732:20140912:162313.203 using configuration file: E:zabbixconfzabbix_agentd.win.conf

      8732:20140912:162315.500 agent #0 started [main process]

      8820:20140912:162315.500 agent #1 started [collector]

      8392:20140912:162315.500 agent #2 started [listener #1]

      5552:20140912:162315.500 agent #3 started [listener #2]

      9712:20140912:162315.500 agent #4 started [listener #3]

      1096:20140912:162315.500 agent #5 started [active checks #1]

      1096:20140912:162316.500 active check configuration update from [127.0.0.1:10051] started to fail (cannot connect to [[127.0.0.1]:10051]: [0x0000274D] 由于目标机器积极拒绝,无法连接。)

      9368:20140912:163029.578 Starting Zabbix Agent [f523540]. Zabbix 2.4.0 (revision 48940).

      9368:20140912:163029.578 using configuration file: E:zabbixconfzabbix_agentd.win.conf

    根据日志 发现有个127.0.0.1:10051无法连接,根据猜想,定是agent连接zabbix server,所以配置少了一个经查是ServerActive没有配置。

    部署安装过程参考文档:http://files.cnblogs.com/likehua/Zabbix_agent%E5%9C%A8windows%E4%B8%8A%E5%AE%89%E8%A3%85%E9%83%A8%E7%BD%B2.rar

    文章转载请注明出处:http://www.cnblogs.com/likehua/p/3968689.html

  • 相关阅读:
    为动态添加的元素,绑定click事件
    Struts报错NoSuchMethodException的解决方法
    Struts报错ObjectNotFoundException的解决方法
    HTML通知、新闻等文字列表的无缝滚动效果
    HTML通过使用JS动态显示table内容
    CentOS下整合Apache与Tomcat的一种方法
    Centos下Apache整合Tomcat访问报Forbidden 403 错误的解决方法
    从Google趋势来看五大联赛在世界范围内的影响力
    Java实现多线程的三种方法
    DataGrid中插入Combobox选择框
  • 原文地址:https://www.cnblogs.com/likehua/p/3968689.html
Copyright © 2011-2022 走看看