Ad Widget

Collapse

Zabbix Agent 2 - Not Sending Data via Zabbix Proxy

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JoelH
    Junior Member
    • Jul 2023
    • 3

    #1

    Zabbix Agent 2 - Not Sending Data via Zabbix Proxy

    I am new to Zabbix - I am looking to monitor Windows and Linux virtual machines that are split across multiple VLANs. One constraint is that the agent installed on the virtual machines (Zabbix Agent 2) cannot communicate directly with the Zabbix Server. I want one centralised Zabbix Server that can receive data from agents deployed on every VLAN. I understand from research that this is achieved using a Zabbix Proxy:

    I have installed Zabbix Server on a Ubuntu virtual machine with a single NIC on my main network (10.120.20.203) - this appears to be functioning correctly (e.g. I can login to the UI etc)

    I have installed Zabbix Proxy on a Ubuntu virtual machine with multiple NICs on both my main network (10.120.20.111) and my first VLAN (192.168.94.70).

    I have installed Zabbix Agent 2 on a Windows virtual machine with a single NIC connected to my first VLAN (192.168.94.11).

    A diagram of the setup can be seen below - along with the relevant configuration:


    On my Zabbix Server, I have created a new proxy - with a name and IP that match that of the zabbix-proxy:​
    ​​
    This appears to function as expected:

    ​On my Zabbix Server, I have created a new host - with a name and IP that matches the zabbix agent (I have selected the correct proxy):​

    However, this doesn’t appear to work as I never receive any data from the agent:

    Click image for larger version

Name:	image.png
Views:	2362
Size:	27.7 KB
ID:	467205
    ​Why can I not receive data from the agent through the proxy?
    What steps can I take to troubleshoot the sending of agent data through the proxy?
  • LenR
    Senior Member
    • Sep 2009
    • 1005

    #2
    0) Do you have any items defined on zabbix-agent-2 or templates attached? It looks like it "has nothing to do".

    1) Check the zabbix-proxy.log for messages.

    2) Check the agent log for messages

    3) packet capture at the proxy for traffic to/for the client.

    Comment

    • JoelH
      Junior Member
      • Jul 2023
      • 3

      #3
      Hi Len,

      Thanks for your response.

      0) I have now associated the template "Windows by Zabbix agent" with the host "zabbix-agent-2":

      Click image for larger version

Name:	image.png
Views:	2319
Size:	29.0 KB
ID:	467224
      1) in the zabbix-proxy.log I get:
      • "cannot send proxy data to server at "10.120.20.203": negative response "failed"" and,
      • "cannot process received configuration data from server at "10.120.20.203": no config_revision tag in proxy configuration response​Click image for larger version

Name:	image.png
Views:	2285
Size:	88.1 KB
ID:	467225
      2) In the zabbix agent log I get:
      • "unsupported windows service command 'Interrogate' received"
      Click image for larger version

Name:	image.png
Views:	2284
Size:	59.4 KB
ID:	467226


      3) I have used tcpdump and I can see traffic on the eth1 interface (the zabbix servers network):

      Click image for larger version

Name:	image.png
Views:	2253
Size:	80.4 KB
ID:	467227
      However, I don't seem to have anything on the eth0 interface (the agent's network):

      Click image for larger version

Name:	image.png
Views:	2273
Size:	8.7 KB
ID:	467228

      Comment

      • LivingLegend
        Junior Member
        • May 2022
        • 5

        #4
        How does telnet on port 10051 look like?
        Both for server to proxy and windows to proxy?​

        Comment

        • cyber
          Senior Member
          Zabbix Certified SpecialistZabbix Certified Professional
          • Dec 2006
          • 4807

          #5
          Seems like in your agent config you have set both server and proxy on "Server=" directive... Usually only proxy there is enough... but it should not hurt also...
          Do you have ServerActive set to proxy IP?

          What you have presented as proxy config seems OK... But those proxy errors are "interesting"... are your proxy and server on same version?

          Comment

          Working...