Ad Widget

Collapse

Web scenario step - error: error doing curl_easy_perform: Couldn't resolve host name

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cparrot
    Junior Member
    • Jan 2012
    • 4

    #1

    Web scenario step - error: error doing curl_easy_perform: Couldn't resolve host name

    Hi,

    I've been using Web scenario step for some time now with no issues, suddenly today for some reason, most of the web checks are coming back with:

    Web scenario step [1 of 1] error: error doing curl_easy_perform: Couldn't resolve host name
    and sometimes I found this in the logs:
    Web scenario step [1 of 1] error: error doing curl_easy_perform: Timeout was reached
    When I restart the zabbix process (
    /etc/init.d/zabbix_server stop; /etc/init.d/zabbix_agent stop; sleep 2; /etc/init.d/zabbix_server start; /etc/init.d/zabbix_agent start
    ), all web scenario running successfully again, but shortly after (~ 24 hours later), they fall back again with the same errors.

    I tried to increase the "Timeout" variable in the /etc/zabbix/zabbix_server.conf file (Default Timeout=3 by Timeout=20), but this does not solve the problem!

    I've checked and the server can both look up the IP address from the name, and i can use curl to get the webpage, both using http:// and not using http://. However in the web checks i'm getting the errors!

    Nothing has changed on the server, so I'm pretty confused as to where the error is coming from!

    OS Configuration:

    Ubuntu Server 10.04.3 LTS (Virtual machine ESXi 4.1.0)
    Zabbix 1.8.5
    8 GB RAM
    Virtuals processors: 4
    mysql-server 5.1.41

    Thanks in advance for your help!
    Last edited by cparrot; 19-01-2012, 09:52. Reason: revival
  • zaicnupagadi
    Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2010
    • 73

    #2
    Hi!

    The same thing happens to me, normally my website responds quite quick, but sometimes I have that curl issue and the trigger goes crazy and so the management

    I have got such an error:

    1941:20120127:202134.874 Web scenario step [www.WEBSITE.pl:www] error: error doing curl_easy_perform: Timeout was reached

    My configuration is:
    Zabbix 1.8.10-1
    RHEL 6.1
    8GB ram
    4 virt processors

    Comment

    • cparrot
      Junior Member
      • Jan 2012
      • 4

      #3
      Hi,

      Look at the parameters of your Zabbix server configuration:

      StarPollers
      StartHTTPPollers
      Timeout
      I managed to give back the stability to my server by tuning these settings there.

      Comment

      • trixbox
        Junior Member
        • Dec 2012
        • 1

        #4
        Solution

        J had the same problem.
        J changed dns servers to google dns 8.8.8.8 and 8.8.4.4.
        Now works fine!

        To change dns servers type:

        nano /etc/resolv.conf

        Comment

        • Grossx
          Junior Member
          • Feb 2010
          • 6

          #5
          Same problem

          I have the same problem. It started with version 2.2 when http proxy field was implemented. All my old webchecks are working fine but any new webcheck that i create will fail with "Couldn't resolve proxy name". This happens even if I check an IP address as opposed to DNS-name.

          Comment

          • sorin
            Junior Member
            • Feb 2014
            • 11

            #6
            I have the same problem on a basic setup, and the workarounds above do not solve the problem. Seems that we need to reopen https://support.zabbix.com/browse/ZBX-7834

            Note: in my case I always get the error, not after a while.

            Comment

            Working...