• zabbix_get工具基础使用


             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 ~]# 

  • 相关阅读:
    win10 访问共享缺少 SMB1协议
    H3C 设置用户和密码
    vim 注释和删除多行
    工商银行贵金属网址
    Team Foundation Server 2008 安装 全程记录
    临时表和表变量 区别
    Windows Server 2003开机自动登录
    索引工作原理
    WebService是什么
    CodeFirst
  • 原文地址:https://www.cnblogs.com/yinzhengjie2020/p/12313735.html
Copyright © 2020-2023  润新知