Ad Widget

Collapse

Zabbix Server won't try to poll if port is different than 10050

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • majincookie
    Junior Member
    • Jul 2020
    • 2

    #1

    Zabbix Server won't try to poll if port is different than 10050

    Hi!

    We've configured our setup with port fowarding on iptables using this method: https://lab4.org/wiki/Zabbix_Iptables_Portforwarding to access isolated instances that we'd like to monitor. The NATing works wonderfully as a zabbix_get request goes all the way to the required host. This confirms that the iptables and the zabbix_agent configuration is good.

    The issue is when we set the port to something else than 10050 (in our case, 10052) on the server GUI for the isolated host, the Zabbix Server won't even try to poll the host and simply shows an connection error (red Z logo instead of blue). We validated this with a tcpdump port 10052 -i eth0 on the Zabbix Server and 0 packets are being sent!!! Then again, when we do a manual poll with zabbix_get (zabbix_get -s ip -k vm.memory.size[available] for instance) we see traffic on our tcpdump.

    My question is, why isn't the server trying to poll the host at all??? Our Zabbix Server is on version 2.2.23

    Thank you!
  • visiandy
    Junior Member
    • Jul 2020
    • 8

    #2
    Hey!
    First of all, do you realize that the current version is 5.0 LTS and 2.2 LTS is a 7 years old release that is no longer supported? I'd recommend to upgrade or make a new installation. If that's not an option you probably should read changelog for newer version, maybe something was fixed there. Or wait till some old members (maybe) will answer here. I never used that old version myself.
    The thing i'd like to point out is that you probably didn't change a listening port in agent configuration, by default its 10050.
    https://www.zabbix.com/documentation.../zabbix_agentd
    Also did you try to use agent with active checks? That way agent will connect to server to get a list of checks and then report periodically. I mean, that connection will be initiated my monitored host and firewall should not be an issue in that case.

    Comment

    • majincookie
      Junior Member
      • Jul 2020
      • 2

      #3
      Hi,

      Thanks a lot for answering! Yes I realize that this version is incredibly old and we're evaluating if we're staying with Zabbix or moving to another system. I've tried yesterday to switch to active, but for some reason, even if the graphs are getting populated, Zabbix keep saying it cant communicate with the host. I've seen that there's a Zabbix Proxy module that I might look into, but in any case if we stay with Zabbix we should update it to 5.0.

      Thanks again!!!

      Comment

      Working...