Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-23268

[ AWS EC2 ] ERROR: Error: cannot get URL: Couldn't connect to server

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Known Error
    • Icon: Trivial Trivial
    • None
    • 6.0.19
    • Proxy (P)
    • None

      We set up a zabbix-proxy in AWS running on an ec2 instance which is behind a network Load Balancer. The LB has a listener on port 10050, 10051 and 80 and associated target groups pointing to the proxy instance

      We have a zabbix role with an iam policy as explained in https://www.zabbix.com/integrations/aws_ec2 and we also installed the 6.0 AWS EC2 by HTTP template on our frontend server

      Steps to reproduce:

      • add another ec2 instance in same vpc to the frontend server to monitor and associate the template
      • ensure the template macros contain the zabbix user access keys and region
      • ensure the ec2 instance macro contains the instance id
      • check that the agent is sending data to the proxy
      • check that the active proxy is sending data to the server

       

      Result:

       

      [constanti@zbxproxy-01 ~]$ tail -f /var/log/zabbix/zabbix_proxy.log
        1574:20230815:085448.020 [ AWS EBS ] ERROR: Error: cannot get URL: Couldn't connect to server.
        1615:20230815:085448.021 [ AWS EBS ] ERROR: Error: cannot get URL: Couldn't connect to server.
        1609:20230815:085500.010 [ AWS EC2 ] ERROR: Error: cannot get URL: Couldn't connect to server.
        1609:20230815:085500.014 [ AWS EC2 ] ERROR: Error: cannot get URL: Couldn't connect to server.
        1609:20230815:085500.027 [ AWS EC2 ] ERROR: Error: cannot get URL: Couldn't connect to server.
        1615:20230815:085500.035 [ AWS EC2 ] ERROR: Error: cannot get URL: Couldn't connect to server.
        1609:20230815:085500.039 [ AWS EC2 ] ERROR: Error: cannot get URL: Couldn't connect to server.
        1574:20230815:085500.051 [ AWS EC2 ] ERROR: Error: cannot get URL: Couldn't connect to server. 

      Expected:
      the proxy collects data for the specific instance and sends it to the server

      The frontend ui displays latest data for the EC2 instance

       

            zabbix.support Zabbix Support Team
            cconstanti Carles Constanti
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: