Ad Widget

Collapse

Error doing curl_easy_perform(): [Timeout was reached]

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MartyZellerbach
    Junior Member
    • Dec 2015
    • 14

    #1

    Error doing curl_easy_perform(): [Timeout was reached]

    Hello

    I have a number of Canadian(SIM) and when ZABBIX try to send an SMS to me an error:

    Error doing curl_easy_perform (): [Timeout was reached With]





    Pleas help...
    Attached Files
  • MartyZellerbach
    Junior Member
    • Dec 2015
    • 14

    #2
    I found something else:
    Original script from www.zabbix.com:

    [root@localhost alertscripts]# ./SendingSMSMessagesXML
    Can't connect to app.eztexting.com:443

    Connection timed out at /usr/share/perl5/LWP/Protocol/http.pm line 52.

    --------------------
    Response code: 500
    File does not exist: Can't connect to app.eztexting.com:443

    Connection timed out at /usr/share/perl5/LWP/Protocol/http.pm line 52.
    at ./SendingSMSMessagesXML line 27.


    How to disable certificate verify in perl ?

    Comment

    • MartyZellerbach
      Junior Member
      • Dec 2015
      • 14

      #3
      Because server ZABBIX is on the LAN and the proxy had to add the following lines to the script and the SMS was sent.

      Code:
      $ Proxy = 'http: / IP_PROXY: 8080';
      $ ENV {} = $ HTTP_PROXY proxy;
      $ UA> env_proxy; # Initialize from environment variables
      $ UA> timeout (20);
      But after an hour I was locked.


      Code:
      ./SendingSMSMessagesXML
      <?xml version="1.0" encoding="UTF-8"?>
      <Response>
      <Status>Failure</Status>
      <Code>403</Code>
      <Errors>
      <Error>Access Forbidden</Error>
      </Errors>
      </Response>
      --------------------
      Response code: 403
      Status: Failure
      Code: 403
      Errors: Access Forbidde

      Comment

      Working...