首页 > 其他 > 详细

zabbix_get工具基础使用

时间:2020-02-15 22:28:33      阅读:93      评论:0      收藏:0      [点我收藏+]

         zabbix_get工具基础使用

                              作者:尹正杰

版权声明:原创作品,谢绝转载!否则将追究法律责任。

 

 

 

一.zabbix_get工具概述

  我们在使用zabbix server监控zabbix agent端的一些监控项(item)时,可能会需要测试数据能否正常获取到。

  而zabbix_get就是zabbix官方给咱们提供的一个故障排除工具,它可以用来测试zabbix server是否可以正常获取到zabbix agent端的数据。

技术分享图片

 

二.获取zabbix agent的监控项的值

1>.如下图所示,点击主机的监控项

技术分享图片

2>.查看监控项

技术分享图片

3>.使用zabbix_get获取监控项参数

技术分享图片
[root@zabbix203.yinzhengjie.org.cn ~]# /yinzhengjie/softwares/zabbix/bin/zabbix_get -h
usage:
  zabbix_get -s host-name-or-IP [-p port-number] [-I IP-address] -k item-key
  zabbix_get -h
  zabbix_get -V

Get data from Zabbix agent.

General options:
  -s --host host-name-or-IP  Specify host name or IP address of a host
  -p --port port-number      Specify port number of agent running on the host
                             (default: 10050)
  -I --source-address IP-address   Specify source IP address

  -k --key item-key          Specify key of the item to retrieve value for

  -h --help                  Display this help message
  -V --version               Display version number

TLS connection options:
  Not available. This zabbix_get was compiled without TLS support

Example(s):
  zabbix_get -s 127.0.0.1 -p 10050 -k "system.cpu.load[all,avg1]"

Report bugs to: <https://support.zabbix.com>
Zabbix home page: <http://www.zabbix.com>
Documentation: <https://www.zabbix.com/documentation>
[root@zabbix203.yinzhengjie.org.cn ~]# 
[root@zabbix203.yinzhengjie.org.cn ~]# /yinzhengjie/softwares/zabbix/bin/zabbix_get -h
[root@zabbix203.yinzhengjie.org.cn ~]# /yinzhengjie/softwares/zabbix/bin/zabbix_get -s 172.200.5.202 -p 10050 -k "system.hostname"
mysql202.yinzhengjie.org.cn
[root@zabbix203.yinzhengjie.org.cn ~]# 

技术分享图片

 

zabbix_get工具基础使用

原文:https://www.cnblogs.com/yinzhengjie2020/p/12313735.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!