Ad Widget

Collapse

Use Zabbix Sender to send data to Zabbix Proxy exception issue

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • sht
    Junior Member
    • Apr 2023
    • 4

    #1

    Use Zabbix Sender to send data to Zabbix Proxy exception issue

    Hello:
    If you use a zabbix_sender to transmit data to an exception to zabbix_proxy, the error is reported as follows:

    [root@centos-03 bin]# /usr/local/zabbix_agent/bin/zabbix_sender -z 192.168.1.11 -s "Zabbix Proxy" -k api.status -o "123244444123" -vv
    zabbix_sender [17088]: DEBUG: answer [{"response":"success","info":"processed: 0; failed: 1; total: 1; seconds spent: 0.000023"}]
    Response from "192.168.1.11:10051": "processed: 0; failed: 1; total: 1; seconds spent: 0.000023"
    sent: 1; skipped: 0; total: 1​


    It is normal to use zabbix_sender to transfer data to zabbix_server, and the logs are as follows:

    [root@centos-03 bin]# zabbix_sender -z 192.168.1.10 -s "Zabbix server" -k api.status -o "Hello World0404" -vv
    zabbix_sender [17110]: DEBUG: answer [{"response":"success","info":"processed: 1; failed: 0; total: 1; seconds spent: 0.000077"}]
    Response from "192.168.1.10:10051": "processed: 1; failed: 0; total: 1; seconds spent: 0.000077"
    sent: 1; skipped: 0; total: 1​


    In the official 5.0 manual, I see the introduction of zabbix_sender, is to support the transfer of data to zabbix_server or zabbix_sender, how should I solve it?

    DESCRIPTION
    zabbix_sender is a command line utility for sending monitoring data to Zabbix server or proxy. On the Zabbix server an item of type Zabbix trapper should be created with corresponding key. Note that incoming values will only be accepted from hosts specified in Allowed hosts field for this item.​
    • Software version information
    zabbix_proxy (Zabbix) 5.0.10
    zabbix_server (Zabbix) 5.0.10
    zabbix_sender (Zabbix) 5.0.9
  • Answer selected by sht at 05-04-2023, 06:00.
    LenR
    Senior Member
    • Sep 2009
    • 1005

    -s "Zabbix Proxy" is the Zabbix host name for the item. Is the proxy defined as a host to Zabbix? Is it monitored by the zabbix server or does it monitor itself? I

    t looks like you're trying to send data to item api.status on server zabbix proxy that is monitored by zabbix proxy.

    If I have a host called "bob" monitored by the proxy, with the item defined, I would use zabbix_sender -s <proxy-ip> -s bob -k api-stats -o .....

    Comment


    • sht
      sht commented
      Editing a comment
      Hello, LenR:
      Thank you very much for your answer, by using your suggestions, the above question is verified successfully, thank you.
  • LenR
    Senior Member
    • Sep 2009
    • 1005

    #2
    -s "Zabbix Proxy" is the Zabbix host name for the item. Is the proxy defined as a host to Zabbix? Is it monitored by the zabbix server or does it monitor itself? I

    t looks like you're trying to send data to item api.status on server zabbix proxy that is monitored by zabbix proxy.

    If I have a host called "bob" monitored by the proxy, with the item defined, I would use zabbix_sender -s <proxy-ip> -s bob -k api-stats -o .....

    Comment


    • sht
      sht commented
      Editing a comment
      Hello, LenR:
      Thank you very much for your answer, by using your suggestions, the above question is verified successfully, thank you.
Working...