点击返回:自学Zabbix之路

点击返回:自学Zabbix4.0之路

点击返回:自学zabbix集锦

1. zabbix_agentd概念

zabbix_agentd非常非常重要,把zabbix_agentd安装到被监控服务器上,zabbix_server便可以和zabbix_agentd通信来获取数据。

2. zabbix支持哪些系统?

作为一个跨平台的监控系统,zabbix_agentd可以被安装到各式各样的系统中,如下:

  • Linux
  • IBM AIX
  • FreeBSD
  • NetBSD
  • OpenBSD
  • HP-UX
  • Mac OS X
  • Solaris: 9, 10, 11
  • Windows: 2000, Server 2003, XP, Vista, Server 2008, 7

3. zabbix_agentd命令详解(Linux)

使用方法

zabbix_agentd [-Vhp] [-c <config-file>] [-t <item key>]

      参数:

  • -c --config <config-file> 配置文件绝对路径
  • -p --print 打印出所有的item,然后退出
  • -t --test <item key> 测试指定item key,然后退出
  • -h --help 帮助
  • -V --version 显示版本号

4. zabbix_agentd命令详解(Windows) 

基本上使用方法和linux一样,不过有些特殊,在window里,zabbix_agentd多了服务这块。

  • -i --install 安装为服务
  • -d --uninstall 移除服务
  • -s --start 启动服务zabbix_agentd
  • -x --stop 关闭zabbix_agentd
  • -m --multiple-agents 多个服务,服务名包含agentd的主机名(不常用)

5. zabbix_agentd实例测试

列出items

./zabbix_agentd -p | grep uptime system.uptime                                 [u|15923945]

测试key

./zabbix_agentd -t system.uptime -c /usr/local/zabbix-3.0.8/etc/zabbix_agentd.conf system.uptime                                 [u|15923992]

启动zabbix_agentd

./zabbix_agentd  -c /usr/local/zabbix-3.0.8/etc/zabbix_agentd.conf

相关文章:

  • 2021-08-20
  • 2021-07-15
  • 2021-12-17
  • 2022-01-12
  • 2021-12-02
  • 2021-10-03
  • 2022-01-24
  • 2021-08-08
猜你喜欢
  • 2021-12-08
  • 2021-06-13
  • 2021-12-29
  • 2021-07-12
  • 2021-07-27
  • 2021-12-13
  • 2021-09-30
相关资源
相似解决方案