Ad Widget

Collapse

zabbix_sender over a zabbix_proxy

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • thiago.info
    Junior Member
    • Feb 2008
    • 28

    #1

    zabbix_sender over a zabbix_proxy

    Is there any detail that I'm mising when using zabbix_sender over a zabbix_proxy?

    I know how to use it and I can successfully send data from the zabbix_sender (that I have on the proxy host) to my Zabbix Server, but I can't send from my monitored host through zabbix_proxy using zabbix_sender.

    I'm using my Item as Zabbix trapper with Allowed hosts empty (for testing pourpose only).

    From Zabbix Proxy:
    zabbix_sender -z $ZABBIX_SERVER -s $HOST -k test -o value

    info from server: "Processed 1 Failed 0 Total 1 Seconds spent 0.000058"
    sent: 1; skipped: 0; total: 1


    From Monitored host:
    zabbix_sender -z $ZABBIX_PROXY -s $HOST -k test -o value
    info from server: "Processed 0 Failed 1 Total 1 Seconds spent 0.000081"
    sent: 1; skipped: 0; total: 1


    Any tips? Help please!!!!
    Last edited by thiago.info; 22-05-2013, 19:12.
  • kevind
    Member
    • Sep 2011
    • 40

    #2
    The following can only work if the host is monitored by the Zabbix Server (not by the Zabbix Proxy)

    From Zabbix Proxy:
    zabbix_sender -z $ZABBIX_SERVER -s $HOST -k test -o value

    info from server: "Processed 1 Failed 0 Total 1 Seconds spent 0.000058"
    sent: 1; skipped: 0; total: 1
    If zabbix_sender tries to send data to Zabbix Proxy for a host that is monitored by Zabbix Server, it will fail, because the Proxy isn't expecting to receive data for that host.

    You need to set the host to be monitored by the Proxy, only then you can use zabbix_sender to send data for that host to the Proxy. If you've already done that, then I can't explain why it's not working. It works for us.

    Comment

    • thiago.info
      Junior Member
      • Feb 2008
      • 28

      #3
      kevind, thanks for replying.

      My host is successfully monitored by Zabbix_Proxy. it's a remote location and the host can't reach Zabbix Server directly, so I don't have choice unless using proxy.

      Comment

      • kevind
        Member
        • Sep 2011
        • 40

        #4
        Which Zabbix version are you using?

        I would think that using zabbix sender to send data to the Server should fail if the host is monitored by the Proxy.

        It's a long shot, but you could try as a test running zabbix_sender on the proxy and sending to localhost (with the host set to be monitored by the proxy), just to make sure there are no firewall etc. issues.

        Code:
        From Zabbix Proxy: 
        zabbix_sender -z localhost -s $HOST -k test -o value
        It's another long shot, but you might try deleting the host and recreating it, making sure to set the host to be monitored by Proxy before adding any items. Or just create a test host monitored by the Proxy, which has a single trapper item, and test that.

        Comment

        Working...