Ad Widget

Collapse

web scenario Failed binding local connection end: bind failed with errno 22

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • elias_a_h
    Junior Member
    • Jan 2017
    • 2

    #1

    web scenario Failed binding local connection end: bind failed with errno 22

    web scenario Failed binding local connection end: bind failed with errno 22


    15515:20170706:092034.903 In substitute_simple_macros() data:'http://edition.cnn.com/'
    15515:20170706:092034.903 In substitute_simple_macros() data:EMPTY
    15515:20170706:092034.903 In substitute_simple_macros() data:'test3'
    15515:20170706:092034.903 In substitute_simple_macros() data:'200'
    15515:20170706:092034.903 In substitute_simple_macros() data:EMPTY
    15515:20170706:092034.903 In http_substitute_variables() data:'http://edition.cnn.com/'
    15515:20170706:092034.903 End of http_substitute_variables() data:'http://edition.cnn.com/'
    15515:20170706:092034.903 In http_substitute_variables() data:''
    15515:20170706:092034.903 End of http_substitute_variables() data:''
    15515:20170706:092034.903 process_httptest() use step "CNN"
    15515:20170706:092034.903 In http_substitute_variables() data:''
    15515:20170706:092034.903 End of http_substitute_variables() data:''
    15515:20170706:092034.903 process_httptest() go to URL "http://edition.cnn.com/"
    15515:20170706:092035.028 In process_step_data() rspcode:0 time:0.000000 speed:0.000000
    15515:20170706:092035.028 query [txnlev:0] [select type,itemid from httpstepitem where httpstepid=6]
    15515:20170706:092035.264 End of process_step_data()
    15515:20170706:092035.265 cannot process step "CNN" of web scenario "Availability of google" on host "Zabbix server": Failed binding local connection end: bind failed with errno 22: Invalid argument
    15515:20170706:092035.265 query without transaction detected


    regards,
    Elias
  • batchenr
    Senior Member
    • Sep 2016
    • 440

    #2
    Originally posted by elias_a_h
    web scenario Failed binding local connection end: bind failed with errno 22


    15515:20170706:092034.903 In substitute_simple_macros() data:'http://edition.cnn.com/'
    15515:20170706:092034.903 In substitute_simple_macros() data:EMPTY
    15515:20170706:092034.903 In substitute_simple_macros() data:'test3'
    15515:20170706:092034.903 In substitute_simple_macros() data:'200'
    15515:20170706:092034.903 In substitute_simple_macros() data:EMPTY
    15515:20170706:092034.903 In http_substitute_variables() data:'http://edition.cnn.com/'
    15515:20170706:092034.903 End of http_substitute_variables() data:'http://edition.cnn.com/'
    15515:20170706:092034.903 In http_substitute_variables() data:''
    15515:20170706:092034.903 End of http_substitute_variables() data:''
    15515:20170706:092034.903 process_httptest() use step "CNN"
    15515:20170706:092034.903 In http_substitute_variables() data:''
    15515:20170706:092034.903 End of http_substitute_variables() data:''
    15515:20170706:092034.903 process_httptest() go to URL "http://edition.cnn.com/"
    15515:20170706:092035.028 In process_step_data() rspcode:0 time:0.000000 speed:0.000000
    15515:20170706:092035.028 query [txnlev:0] [select type,itemid from httpstepitem where httpstepid=6]
    15515:20170706:092035.264 End of process_step_data()
    15515:20170706:092035.265 cannot process step "CNN" of web scenario "Availability of google" on host "Zabbix server": Failed binding local connection end: bind failed with errno 22: Invalid argument
    15515:20170706:092035.265 query without transaction detected


    regards,
    Elias

    Comment

    • zeiter
      Junior Member
      • Apr 2019
      • 14

      #3
      Hello,

      Can we get it fixed?

      The use case:

      - Zabbix Proxy with IPv4/IPv6 on its interface.
      - SourceIP= set to IPv4 in /etc/zabbix/zabbix_proxy.conf
      - Web-Checks n Zabbix are used to check a site which has both IPv4/IPv6

      Error:

      Code:
      curl: (45) bind failed with errno 22: Invalid argument
      Steps:

      Code:
      # curl --interface 1.2.3.4 -I https://example.net/
      curl: (45) bind failed with errno 22: Invalid argument
      Code:
      # curl --interface 1.2.3.4 -4 -I https://example.net/
      HTTP/1.1 200 OK
      Server: nginx
      ....
      Zabbix versions:

      Code:
      # rpm -qa | grep zabbix
      zabbix-proxy-sqlite3-4.2.1-1.el7.x86_64
      zabbix-release-4.2-1.el7.noarch
      zabbix-get-4.2.1-1.el7.x86_64
      zabbix-agent-4.2.1-1.el7.x86_64
      Possible solution:

      If SourceIP= is set to IPv4 in /etc/zabbix/zabbix_proxy.conf, the curl should called with -4 flag.

      Regards,
      Alex.

      Comment

      • limlayhin
        Junior Member
        • Apr 2015
        • 3

        #4
        I encountered the same problem and agreed that the cause may be due to SourceIP set to IPv4.
        How/Where do I modify the scripts so that I can add -4 flag to the monitoring?

        Comment

        • zeiter
          Junior Member
          • Apr 2019
          • 14

          #5
          There is no way to fix it in Zabbix as of now unfortunately. It can be fixed on cURL's side. For this you will need to install the latest version. See https://support.zabbix.com/browse/ZBX-16082 for more details.

          Comment

          Working...