Ad Widget

Collapse

web scenarios / ssl

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dalxxx
    Junior Member
    • Jul 2015
    • 2

    #1

    web scenarios / ssl

    Hi,

    I tried to use an SSL connection in a web scenarios, but without success.
    The result is that zabbix report errors below, but their cause is not very clear to me.
    I even tried to set up proxy (squid) and error is different, but the result is the same.
    I tried to increase logging by using the following command, but nothing new to see.
    zabbix_server --runtime-control log_level_increase="http poller"

    I would expect that the problem is due to the server self-signed certificate, but with curl, wget, links and other system tools I solved it by "adding" certificate in /etc/ssl/certs/ but it did not help to zabbix.

    Error without proxy server:
    cannot process step "home" of web scenario "test" on host "server": SSL connect error: gnutls_handshake() failed: Error in the pull function.

    Error with proxy server:
    cannot process step "home" of web scenario "test" on host "server": SSL connect error: gnutls_handshake() failed: The TLS connection was non-properly terminated.

    Finally, I created external check script with curl, but I don’t like this solution, especially if I wanted to use more complex scenarios.

    I have installed zabbix:2.4.5 (revision 53282) on Debian.

    Does anybody have a clue what I should look at?

    Thank you very much for any information.
  • dalxxx
    Junior Member
    • Jul 2015
    • 2

    #2
    web scenarios / ssl [SOLVED]

    Hello,
    I did more investigation and find the problem.
    One issue was that I was using the stable version of Debian with Zabbix from test version of Debian. Therefore curl worked but libcurl (zabbix) did not.
    At the moment I installed a test environment with test version of Debian, the result was similar.
    Then I created a simple test program, which uses libcurl identically in Zabbix (httptest.c).
    In seeking solutions information from http://curl.haxx.se/mail/tracker-2014-03/0001.html helped me.
    So I then compiled zabbix from Debian source, applied the patch and web scenarios with SSL work without errors.

    Comment

    Working...