Ad Widget

Collapse

SSL connect error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • roborative
    Junior Member
    • Feb 2009
    • 6

    #1

    SSL connect error

    I'm trying to monitor a web service but the check fails with an SSL connect error (the log contains: Error doing curl_easy_perform [SSL connect error]). I tried connecting to the service via curl directly from a console and it does not exhibit this error. Is there something I might try to resolve the issue?
  • roborative
    Junior Member
    • Feb 2009
    • 6

    #2
    So the lack of response on this issue suggest to me that this may be a bug. Should I go ahead and submit this as an issue?

    Comment

    • xs-
      Senior Member
      Zabbix Certified Specialist
      • Dec 2007
      • 393

      #3
      The lack of response is probably due to a lack of sufficient information.

      But i'll go ahead and give it a try
      - Is the ssl certificate of webservice a valid one or did you self-sign it?
      - Can you curl/wget it without any error/warning?
      - Is the hostname of the service resolvable via DNS? is there a conflicting /etc/hosts entry? (you aren;t using an IP address for this in zabbix right?)
      - Do other SSL sites work from zabbix?
      - is your CURL a stock one or did you compile it yourself?

      Comment

      • roborative
        Junior Member
        • Feb 2009
        • 6

        #4
        Thanks for the taking the time to respond.

        Is the ssl certificate of webservice a valid one or did you self-sign it?

        The server uses an Equifax certificate.

        Can you curl/wget it without any error/warning?

        Yes, curl works fine from the command line with the URL.

        Is the hostname of the service resolvable via DNS? is there a conflicting /etc/hosts entry? (you aren;t using an IP address for this in zabbix right?)

        Yes. It's a thirdparty's public site and the test uses the hostname.

        Do other SSL sites work from zabbix?

        Yes.

        is your CURL a stock one or did you compile it yourself?

        It's the standard version provided in Ubuntu Intrepid.

        Comment

        • xs-
          Senior Member
          Zabbix Certified Specialist
          • Dec 2007
          • 393

          #5
          Well, if other ssl sites work from zabbix, my guess would be a typo or something weird with the ssl negotiation / certificate.

          Comment

          • roborative
            Junior Member
            • Feb 2009
            • 6

            #6
            I just double-checked the URL (cut and pasted it from the Zabbix config) and it doesn't exhibit the error. Are there some arguments that are passed to Curl that might explain the difference in the results I'm seeing? I just pass in the URL w/o any specific options.

            In case anyone wants to try this at home the URL I'm requesting is:

            Comment

            • roborative
              Junior Member
              • Feb 2009
              • 6

              #7
              BTW, I'm seeing this with Zabbix 1.6.1 running on Ubuntu Intrepid

              Comment

              • roborative
                Junior Member
                • Feb 2009
                • 6

                #8
                I've opened an issue for this error:

                Comment

                • StefanJ
                  Junior Member
                  • May 2009
                  • 15

                  #9
                  Hello,

                  we have Zabbix 1.6.4 running on Debian 5.0.1 Lenny and the same problem.

                  Is there a solution?

                  Curl works fine, but in Zabbix we have the "SSL connect error" too.

                  Comment

                  • perlboy
                    Junior Member
                    • Jun 2010
                    • 1

                    #10
                    I've created a fix for this which can be found here

                    Comment

                    • enkrypt3d
                      Member
                      • Oct 2013
                      • 32

                      #11
                      Seeing the same problems in 2.2.1.... I posted my notes in the jira ticket.

                      Comment

                      • dimir
                        Zabbix developer
                        • Apr 2011
                        • 1080

                        #12
                        See latest comment in https://support.zabbix.com/browse/ZBX-727 for the fix. The solution is to install libcurl OpenSSL version (instead of GNU TLS) and recompile zabbix.

                        Comment

                        Working...