下载与解压

下载zabbix_agents_2.2.0

http://www.zabbix.com/downloads/2.2.0/zabbix_agents_2.2.0.win.zip

解压到C盘下面, 安装不一定解压到C盘下面, 但是配置文件一定在C盘根目录下

进入文件夹后看到的是

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

配置zabbix_agentd.win.conf

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

LogFile=c:\zabbix_agents_2.2.0.win\zabbix_agentd.log

Server=192.168.140.133

Hostname=客户端主机名

ServerActive=192.168.140.133   #zabbix server地址

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

对于windows系统, 在cmd下输入hostname可得主机名

安装agent客户端

改完了之后, 将其复制一份, 放到C盘根目录下, 并改名为zabbix

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

我的windows是64位的, 应该使用64位的吧

C:\zabbix_agents_2.2.0.win\bin\win64\zabbix_agentd.exe –c C:\zabbix_agents_2.2.0.win\conf\zabbix_agentd.win.conf –i

但是这样执行会报错

应该是进入到目录下, 然后再执行

启动agent客户端

C:\zabbix_agents_2.2.0.win\bin\win64\zabbix_agentd.exe –c C:\zabbix_agents_2.2.0.win\conf\zabbix_agentd.win.conf –s

以上也是不行的...

看看服务起了没

然后启动它

再到目录下看看, 有日志了哟

日志内容如下:

2332:20160801:094359.325 Starting Zabbix Agent [yangxu-PC]. Zabbix 2.2.0 (revision 40147).
2332:20160801:094359.326 using configuration file: C:\zabbix_agents_2.2.0.win\conf\zabbix_agentd.win.conf
5100:20160801:094359.342 agent #0 started [collector]
4484:20160801:094359.343 agent #1 started [listener #1]
4624:20160801:094359.344 agent #2 started [listener #2]
3204:20160801:094359.344 agent #3 started [listener #3]
3300:20160801:094359.344 agent #4 started [active checks #1]
3300:20160801:094420.367 active check configuration update from [192.168.140.133:10051] started to fail (cannot connect to [[192.168.140.133]:10051]: [0x0000274C] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。)
3300:20160801:094923.482 active check configuration update from [192.168.140.133:10051] is working again
3300:20160801:094923.482 no active checks on server: host [yangxu-PC] not found
4324:20160801:095039.457 Starting Zabbix Agent [yangxu-PC]. Zabbix 2.2.0 (revision 40147).
4324:20160801:095039.457 using configuration file: C:\zabbix_agents_2.2.0.win\conf\zabbix_agentd.win.conf
4596:20160801:095039.460 agent #0 started [collector]
3644:20160801:095039.460 agent #1 started [listener #1]
2684:20160801:095039.460 agent #4 started [active checks #1]
4244:20160801:095039.460 agent #2 started [listener #2]
4660:20160801:095039.461 agent #3 started [listener #3]
2684:20160801:095039.468 no active checks on server: host [yangxu-PC] not found
3300:20160801:095123.503 no active checks on server: host [yangxu-PC] not found

应为我还没有开启zabbix server嘛, 不失败才怪嘞

登录到浏览器界面

一定要给主机添加模板, 不然那个Z一直都是灰色的

不要忘了点击添加按钮, 然后存档

windows下安装zabbix_agents_2.2.0的更多相关文章

  1. windows下安装 mysql 8.0 以上版本以及遇到的问题

    Windows 上安装 MySQL Windows 上安装 MySQL 相对来说会较为简单,地那就链接 https://cdn.mysql.com//Downloads/MySQL-8.0/mysql ...

  2. windows下安装PyTorch0.4.0

    PyTorch框架,据说2018.4.25刚刚上架windows,安个玩玩 我的环境: windows 10 anaconda虚拟环境python3.6 cuda9.1 cudnn7 pytorch  ...

  3. windows下安装storm1.1.0并启动

    64位windows安装storm前需要先搞定zookeeper和python,所以下面我们3步走: 一.zookeeper 1.上https://zookeeper.apache.org/点击下方d ...

  4. windows下安装skywalking8.6.0(用于本地开发调试代码)

    安装jdk https://www.cnblogs.com/uncleyong/p/10732951.html 下载.安装.配置skywalking 下载 地址:https://skywalking. ...

  5. Permission denied:multiarray.cp35-win_amd64.pyd(tensorflow0.12.0在windows下安装)

    今天在windows下安装tensorflow0.12.0. 碰到一个奇怪的问题.Permission denied:multiarray.cp35-win_amd64.pyd 就是复制文件,一直复制 ...

  6. 转: Windows下安装Oracle Database 12c Release 1(12.1.0.2.0) - Enterprise Edition

    http://www.cnblogs.com/xqzt/p/4395053.html Windows下安装Oracle Database 12c Release 1(12.1.0.2.0) - Ent ...

  7. Windows下安装Oracle Database 12c Release 1(12.1.0.2.0) - Enterprise Edition

    Windows下安装Oracle Database 12c Release 1(12.1.0.2.0) 最近因需要在Oracle 数据库上建立ODI的资料档案库,需要安装Oracle Database ...

  8. MySQL8.0 zip压缩包版本 Windows下安装

    MySQL zip压缩包版本 Windows下安装 Download MySQL Community Server 解压到相应的目录 我的解压目录:D:\Program Files\mysql-8.0 ...

  9. Coreseek Windows下安装调试

    由于项目需要全文检索,后面就去网上查了下资料,找到了Sphinx[中文是狮身人面像]这个全文检索引擎,听说挺好用的,不过没有中文分词.后面又去找了一下,找到了Coreseek,一款中文全文检索/搜索软 ...

随机推荐

  1. NOIP201205Vigenère密码

                                   NOIP201205Vigenère密码 [问题描述]   16 世纪法国外交家Blaise de Vigenère设计了一种多表密码加密 ...

  2. Intent跳转传list集合

    先把List<>改为ArrayList<> ArrayList<Good> list=new ArrayList<Good>(); Intent int ...

  3. JS 字符串转日期格式 日期格式化字符串

    /** * @author 陈维斌 http://www.cnblogs.com/Orange-C/p/4042242.html%20 3 * 如果想将日期字符串格式化,需先将其转换为日期类型Date ...

  4. rsync 排除指定目录或文件进行同步

    很常见的情况:我想同步/myweb下的 一些php文件 ,  但是不想复制/myweb/log/里边的一些日志文件,因为这些文件太大了,备份也是没有意义的. 现在如果想避开某个路径  直接添加—exc ...

  5. 定义提示符 PS1 PS4

    PS1,如:[xiluhua@vm-xiluhua][~]$ # prompt PS1 export PATH BLUE=$(tput setaf ) PURPLE=$(tput setaf ) YE ...

  6. sqlite加密

    一直使用sqlite来管理本地的数据,但是Xcode中的SDK中集成的sqlite是免费的,不提供加密模块,但是程序中用到的很多数据,有时候是不想让别人看到,一开始虑修改sqlite的源码,自己重新编 ...

  7. PHP正则表达式之定界符和原子介绍

    1,正则表达式的定界符. 除了字母.数字和反斜线\以外的任何字符都可以为定界符号,比如 | |.//.{}.!!等等,但是需要注意,如果没有特殊需要,我们都使用正斜线//作为正则表达式的定界符号. 2 ...

  8. c#调用c++的dll,错误篇

    "LIPS.vshost.exe"(托管(v4.0.30319)): 已加载"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Sys ...

  9. 运行html,css,js好的软件

    WebStorm: http://pan.baidu.com/s/1eQF81Tw

  10. myDatePinker设置开始时间不能大于结束时间

     操作时间起:  <input type="text" name="startTime" id="startTime" style=& ...