下载与解压

下载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. jsp struts标签迭代各种数据

    首先创建一个User对象 User user=new User(); user.setUserName("张三"); user.setAge(30); User user1=new ...

  2. 读 《JavaScript: The Good Parts》 有感

    提炼出一门语言或技术的 Good Parts, 使用该子集去构造健壮稳固的应用. 我们总是倾向于去学习和使用所有的语言特性,好像凡是新的,凡是提供了的, 就有必要去使用: 这本书告诉我们, 要有选择性 ...

  3. 【python cookbook】【数据结构与算法】3.保存最后N个元素

    问题:希望在迭代或是其他形式的处理过程中对最后几项记录做一个有限的历史记录统计 解决方案:选择collections.deque. 如下的代码对一系列文本行做简单的文本匹配操作,当发现有匹配时就输出当 ...

  4. ansible

    3.1 配置 #vim /etc/ansible/hosts       //定义主机,支持IP和域名,支持分组 [local] 127.0.0.1 [nginx] 192.168.0.10     ...

  5. Linux下通过crontab及expect实现自动化处理 --亲测可用

    #!/usr/bin/expect -fspawn /home/scripts/bckup.shexpect "Enter password: "  send "WWQQ ...

  6. inupt textarea提示文字(点击消失,不输入恢复)及限制字数

    效果: input: textarea: 限100字 源码: input: <input name="textfield" type="text" max ...

  7. ASP.NET MVC3 Dynamically added form fields model binding

    Adding  new Item to a list of items, inline is a very nice feature you can provide to your user. Thi ...

  8. HDU 2222:Keywords Search(AC自动机模板)

    http://acm.hdu.edu.cn/showproblem.php?pid=2222 KMP是单模式串匹配的算法,而AC自动机是用于多模式串匹配的算法.主要由Trie和KMP的思想构成. 题意 ...

  9. C语言中%*s,%*c 是什么意思(还有%*.*s)

    在 scanf 和 printf 里效果是不一样的. 在printf,动态控制显示格式用的 printf("%*s",5,"123");执行一下,这条语句,输出 ...

  10. jquery ui 常用(二)(对话框 | 旋转器 | 工具提示框(表单) | 特效(百叶窗) )

    一.添加信息的对话框  http://www.w3cschool.cc/try/tryit.php?filename=jqueryui-example-dialog-modal-form. 模态表单 ...