Ad Widget

Collapse

Web Curl Error: Failure when receiving data from the peer

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • psychomoise
    Junior Member
    • Jun 2010
    • 9

    #1

    Web Curl Error: Failure when receiving data from the peer

    Hi,

    I have a big problem, I just move my zabbix software from one hardware to another one.
    Since I changed I have some issues with the web checks and it seems linked to libcurl.

    I am running Zabbix 1.8.10 on Ubuntu 11.10 (oneiric) with libcurl 7.21.6 and i get this kind of message through a web scenario where we have an SSL connection to this url : https://demo.enablon.com/6.0-6/testprobe/go.asp

    message : Failed on "scenario" [1 of 1] Error: Failure when receiving data from the peer

    I tried to move to Ubuntu Precise (the devel version) and got the same issue with libcurl 7.22.0.
    I activated the debuglog in Zabbix and here is the result :

    16401:20120228:215427.920 In process_httptest() httptestid:1 name:'Demo 6.0-6'
    16401:20120228:215427.920 query without transaction detected
    16401:20120228:215427.920 query [txnlev:0] [update httptest set lastcheck=1330462467 where httptestid=1]
    16401:20120228:215427.923 query [txnlev:0] [select httpstepid,no,name,url,timeout,posts,required,stat us_codes from httpstep where httptestid=1 order by no]
    16401:20120228:215427.923 query without transaction detected
    16401:20120228:215427.923 query [txnlev:0] [update httptest set curstep=1,curstate=1 where httptestid=1]
    16401:20120228:215427.924 In http_substitute_macros(httptestid:1, data:https://demo.enablon.com/6.0-6/testprobe/go.asp)
    16401:20120228:215427.924 Result expression [https://demo.enablon.com/6.0-6/testprobe/go.asp]
    16401:20120228:215427.924 In http_substitute_macros(httptestid:1, data
    16401:20120228:215427.924 Result expression []
    16401:20120228:215427.924 WEBMonitor: use step [Page accueil]
    16401:20120228:215427.924 WEBMonitor: go to URL [https://demo.enablon.com/6.0-6/testprobe/go.asp]
    16407:20120228:215428.061 Syncing ...
    16407:20120228:215428.061 In DCsync_history() history_first:2548 history_num:0
    16407:20120228:215428.061 history syncer #2 spent 0.000100 seconds while processing 0 items
    16407:20120228:215428.061 sleeping for 5 seconds
    16410:20120228:215428.061 Syncing ...
    16410:20120228:215428.061 In DCsync_history() history_first:2548 history_num:0
    16406:20120228:215428.061 Syncing ...
    16410:20120228:215428.062 history syncer #4 spent 0.000115 seconds while processing 0 items
    16406:20120228:215428.062 In DCsync_history() history_first:2548 history_num:0
    16410:20120228:215428.062 sleeping for 5 seconds
    16406:20120228:215428.062 history syncer #1 spent 0.000141 seconds while processing 0 items
    16406:20120228:215428.062 sleeping for 5 seconds
    16409:20120228:215428.108 Syncing ...
    16409:20120228:215428.108 In DCsync_history() history_first:2548 history_num:0
    16409:20120228:215428.108 history syncer #3 spent 0.000044 seconds while processing 0 items
    16409:20120228:215428.108 sleeping for 5 seconds
    16401:20120228:215428.229 Web scenario step [Demo 6.0-6:Page accueil] error: error doing curl_easy_perform: Failure when receiving data from the peer
    16401:20120228:215428.229 In process_step_data() httpstepid:1 rspcode:0 time:0.000000 speed:0.000000
    16401:20120228:215428.229 query [txnlev:0] [select httpstepitemid,httpstepid,itemid,type from httpstepitem where httpstepid=1]
    16401:20120228:215428.230 In process_value() itemid:22162
    16401:20120228:215428.230 query [txnlev:0] [select i.value_type from items i,hosts h where h.hostid=i.hostid and h.status=0 and i.status=0 and i.type=9 and i.itemid=22162 and (h.maintenance_status=0 or h.maintenance_type=0) and h.hostid between 000000000000000 and 099999999999999]
    16401:20120228:215428.230 End of process_value():SUCCEED
    16401:20120228:215428.231 In process_value() itemid:22163
    16401:20120228:215428.231 query [txnlev:0] [select i.value_type from items i,hosts h where h.hostid=i.hostid and h.status=0 and i.status=0 and i.type=9 and i.itemid=22163 and (h.maintenance_status=0 or h.maintenance_type=0) and h.hostid between 000000000000000 and 099999999999999]
    16401:20120228:215428.231 End of process_value():SUCCEED
    16401:20120228:215428.231 In process_value() itemid:22164
    16401:20120228:215428.231 query [txnlev:0] [select i.value_type from items i,hosts h where h.hostid=i.hostid and h.status=0 and i.status=0 and i.type=9 and i.itemid=22164 and (h.maintenance_status=0 or h.maintenance_type=0) and h.hostid between 000000000000000 and 099999999999999]
    16401:20120228:215428.232 End of process_value():SUCCEED
    16401:20120228:215428.232 End of process_step_data()
    16401:20120228:215428.234 query without transaction detected
    16401:20120228:215428.234 query [txnlev:0] [update httptest set curstep=0,curstate=0,lastcheck=1330462467,nextchec k=1330462467+delay,lastfailedstep=1,time=0.000000, error='Failure when receiving data from the peer' where httptestid=1]
    16401:20120228:215428.236 In process_test_data() httptestid:1 total_time:0.000000 last_step:1
    16401:20120228:215428.236 query [txnlev:0] [select httptestitemid,httptestid,itemid,type from httptestitem where httptestid=1]
    16401:20120228:215428.237 In process_value() itemid:22165
    16401:20120228:215428.237 query [txnlev:0] [select i.value_type from items i,hosts h where h.hostid=i.hostid and h.status=0 and i.status=0 and i.type=9 and i.itemid=22165 and (h.maintenance_status=0 or h.maintenance_type=0) and h.hostid between 000000000000000 and 099999999999999]
    16401:20120228:215428.237 End of process_value():SUCCEED
    16401:20120228:215428.237 In process_value() itemid:22166
    16401:20120228:215428.237 query [txnlev:0] [select i.value_type from items i,hosts h where h.hostid=i.hostid and h.status=0 and i.status=0 and i.type=9 and i.itemid=22166 and (h.maintenance_status=0 or h.maintenance_type=0) and h.hostid between 000000000000000 and 099999999999999]
    16401:20120228:215428.238 End of process_value():SUCCEED
    16401:20120228:215428.238 End of process_test_data()
    16401:20120228:215428.238 End of process_httptest() total_time:0.000000
    16401:20120228:215428.238 End of process_httptests()
    16401:20120228:215428.238 http poller #1 spent 0.318752 seconds while updating HTTP tests
    16401:20120228:215428.238 query [txnlev:0] [select min(t.nextcheck) from httptest t,applications a,hosts h where t.applicationid=a.applicationid and a.hostid=h.hostid and mod(t.httptestid,1)=0 and t.status=0 and h.status=0 and (h.maintenance_status=0 or h.maintenance_type=0) and t.httptestid between 000000000000000 and 099999999999999]
    16401:20120228:215428.239 sleeping for 5 seconds
    16385:20120228:215428.534 In get_values()


    Does anyone have an idea ?
  • psychomoise
    Junior Member
    • Jun 2010
    • 9

    #2
    with curl it is working :
    curl -v https://demo.enablon.com/6.0-6/testprobe/go.asp
    * About to connect() to demo.enablon.com port 443 (#0)
    * Trying 192.169.0.237... connected
    * Connected to demo.enablon.com (192.169.0.237) port 443 (#0)
    * successfully set certificate verify locations:
    * CAfile: none
    CApath: /etc/ssl/certs
    * SSLv3, TLS handshake, Client hello (1):
    * SSLv3, TLS handshake, Server hello (2):
    * SSLv3, TLS handshake, CERT (11):
    * SSLv3, TLS handshake, Server finished (14):
    * SSLv3, TLS handshake, Client key exchange (16):
    * SSLv3, TLS change cipher, Client hello (1):
    * SSLv3, TLS handshake, Finished (20):
    * SSLv3, TLS change cipher, Client hello (1):
    * SSLv3, TLS handshake, Finished (20):
    * SSL connection using AES128-SHA
    * Server certificate:
    * subject: C=FR; postalCode=75011; ST=PARIS; L=PARIS; street=127 RUE AMELOT; O=ENABLON; OU=0002 433246097; OU=ENABLON; CN=*.enablon.com
    * start date: 2010-09-21 00:00:00 GMT
    * expire date: 2012-10-08 23:59:59 GMT
    * subjectAltName: demo.enablon.com matched
    * issuer: C=US; ST=UT; L=Salt Lake City; O=The USERTRUST Network; CN=USERTrust Legacy Secure Server CA
    * SSL certificate verify ok.
    > GET /6.0-6/testprobe/go.asp HTTP/1.1
    > User-Agent: curl/7.21.6 (x86_64-pc-linux-gnu) libcurl/7.21.6 OpenSSL/1.0.0e zlib/1.2.3.4 libidn/1.22 librtmp/2.3
    > Host: demo.enablon.com
    > Accept: */*
    >
    < HTTP/1.1 200 OK
    < Cache-Control: private
    < Content-Type: text/html; Charset=UTF-8
    < Expires: 0
    < Server: Microsoft-IIS/7.0
    < P3P: CP='ALL CUR OUR STP PHY ONL'
    < Set-Cookie: P6%5F0%5F1=0; path=/
    < Set-Cookie: ASPSESSIONIDAERSQQDA=ECCMBEICCIDDGIIFGFBDDHJL; secure; path=/
    < Date: Tue, 28 Feb 2012 20:59:14 GMT
    < Connection: close
    <
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><HTML><HEAD><TITLE>Enablon DEMO Central place 6.0-6's Login Page</TITLE><style type="text/css"input.login{border:1px solid #A9A9A9;height:22px;width:130px;background:#fff url(_art/log_sid.gif) no-repeat left center;padding-left:20px}input.login#pwd{background-image:url(_art/log_pwd.gif)}input.login#uid{background-image:url(_art/log_uid.gif)}input.login#eml{background-image:url(_art/log_eml.gif)}.loginText p{text-align:justify;font-size:9pt}div.loginText{min-height:142px;height:auto !important;height:142px;padding:3px}#lang{position :relative;z-index:111}#lang div{position:absolute;background:#EEEEEE;border:1p x solid #A9A9A9;margin:0 5px;padding:3px;margin-top:3px}#lang div a{display:block;padding:1px 3px;font-size</script></HEAD><BODY style="" vLink='#f00' Class='MA' onload="getElt('uid').focus()"><form name='LoginForm' ACTION="/6.0-6/testprobe/go.asp?" METHOD=Post><center><BR><div class="RBA SDA " style="display:table-cell;"><div style="background-color:#FFF;padding:6px;" class="RBA "><span style='white-space:nowrap'><FONT FACE='Sans-Serif' SIZE=5><B>Enablon DEMO Central place 6.0-6</B></FONT></span></div></div><BR><div class="RBA SDA " style="width:700px"><div style="background-color:#FFF;padding:6px;" class="RBA "><div class=ATL><a href='#' class='ND MN' style='cursorointer;background:url(_art/little_down.gif) no-repeat right center;padding-left:6px' onmouseover='overLang()' onmouseout='outLang()' onclick='return false'>English&nbsp;&nbsp;</a></div><div class=ATL id=lang onmouseover='overLang()' onmouseout='outLang()' style='display:none'><div><a class=ND HREF='go.asp?ulg=1'>English (English)&lrm;</a><a class=ND HREF='go.asp?ulg=2'>Fran&#231;ais (French)&lrm;</a></div></div><table width=100% cellpadding=0 cellspacing=6><tr><td><div class=MTT style='border:0;text-align:center;'>Welcome to the Enablon DEMO Central place 6.0-6 Site</div></div></td></tr></table><div id=errorDiv style='margin:6px;text-align:center'></div><TABLE BORDER=0 cellpadding=0 cellspacing=6 style='width:100%'><TR><TD style='vertical-align:top'><div style="padding:4px;border:1px solid grey;-moz-border-radius:4px;border-radius:4px;"" class=login><div class='loginText'><p><b>Enablon is one of the world's leading providers of corporate responsibility &amp; EHS software solutions and a recognized expert in governance, risk &amp; compliance.</b><br>Enablon offers integrated software solutions and on-demand services for Corporate Responsibility &amp; EHS Management, Risk, Internal Control &amp; Audit Management, Corporate Governance &amp; Legal Management.<br>To learn how Enablon can help your company improve its compliance management, reduce its risks and enhance its performance, please <b><a href='http://www.enablon.com/'>click here</a></b>.</p></div></div></TD><TD style='vertical-align:top;width:236px;padding-left:6px'><div style="padding:4px;border:1px solid grey;-moz-border-radius:4px;border-radius:4px;"min-width:237px;width:auto !important;width:237px;" class=login><table border=0 CLASS=MM width='100%' cellspacing=3><tr><td nowrap valign=middle CLASS="ATR">Site Id</td><td><input NAME=sid VALUE="testprobe" size=15 class=login AUTOCOMPLETE=off></td></tr><tr><td nowrap valign=middle CLASS="ATR">User Id</td><td width='1%'><input id=uid NAME=uid size=15 class=login AUTOCOMPLETE=off></td></tr><tr><td nowrap valign=middle CLASS="ATR">Password</td><td><input NAME=pwd id=pwd type=password size=15 class=login AUTOCOMPLETE=off></td></tr></table><div style='background:url(_art/log_loc.png) no-repeat bottom left;margin:3px 3px 0 0;height:60px;padding:0 0 0 48px;text-align:right;vertical-align:bottom;white-space:nowrap'><button class="IN" onmousedown='changeButtonColor(this)' Type='SUBMIT' name="LogIn" value="Log In"><div class=IN3w><div class="IN2 IN3">Log In</div></div></button></div></div><div style='margin:6px;text-align:right;'><A HREF='http://www.enablon.com/' style='white-space:nowrap;font:italic bold 8pt Arial;text-decoration:none;COLOR:#555'>Powered by <IMG alt="Powered By Enablon" TITLE="Powered By Enablon" width=90 height=26 src='art/log_ena.png' style='vertical-align:middle'></A><* Closing connection #0
    * SSLv3, TLS alert, Client hello (1):
    /div></TD></TR></TABLE></div></div></center></FORM></BODY></HTML>

    Comment

    • psychomoise
      Junior Member
      • Jun 2010
      • 9

      #3
      I found the error, the package available on ubuntu is not correct we really have to rebuild zabbix from sources and be careful on which folder they are built.

      Comment

      Working...