[smokeping-users] curl: (35) Unknown SSL protocol error in connection
Michael McCarn
mmccarn at sierracorp.us
Sat Nov 5 17:01:54 MET 2005
I could not figure out how to make my Linksys WRT54G respond to "ping",
so I'm using Curl to monitor it using https.
The router has a self-signed certificate, requiring "insecure_ssl = 1"
When using 'ssl2' I get an SSL protocol error trying to connect
Changing "ssl2 = 1" to "ssl2 = 0" does not remove '-2' from the Curl
invocation, but adding "-3" to "extraargs" lets my probe work.
extract from *** Probes *** in etc/config:
============================
+Curl
binary = /usr/bin/curl
forks = 5
offset = 50%
step = 300
# The following variables can be overridden in each target section
agent = User-Agent: Lynx/2.8.4rel.1 libwww-FM/2.14 SSL-MM/1.4.1
OpenSSL/0.9.6c
extraargs = --head --user user:password
extrare = / /
insecure_ssl = 1
interface = ppp0
pings = 5
ssl2 = 0
timeout = 20
urlformat = http://%host%/ # mandatory
extract from *** Targets *** in config:
===========================
+++ <removed>
menu = <removed>
title = <removed> - Linksys WRT54G v5
probe = Curl
host = <removed>
urlformat = https://%host%/
extraargs= ---head --user admin:<removed>
--debug output:
=============
Curl: executing command list '/usr/bin/curl','-m','20','-A','User-Agent:
Lynx/2.8.4rel.1 libwww-FM/2.14 SSL-MM/1.4.1
OpenSSL/0.9.6c','--interface','ppp0','-o','/dev/null','-w','Time:
%{time_total} DNS time:
%{time_namelookup}\n','-2','-k','--head','--user','admin:<removed>','htt
ps://<removed>/'
curl: (35) Unknown SSL protocol error in connection to <removed>:443
--debug output after adding "-3" to "extraargs"
=================================
Curl: executing command list '/usr/bin/curl','-m','20','-A','User-Agent:
Lynx/2.8.4rel.1 libwww-FM/2.14 SSL-MM/1.4.1
OpenSSL/0.9.6c','--interface','ppp0','-o','/dev/null','-w','Time:
%{time_total} DNS time:
%{time_namelookup}\n','-2','-k','-3','--head','--user','admin:<removed>'
,'https://<removed>/'
Curl Results after adding "-3":
Curl: <removed>: got 0.379 0.381 0.381 0.385 0.397
Version Information
===============
# curl -V
curl 7.12.1 (i686-redhat-linux-gnu) libcurl/7.12.1 OpenSSL/0.9.7a
zlib/1.2.1.2 libidn/0.5.6
# bin/smokeping -V
2.000004
# uname -a
Linux xxx 2.6.9-11.EL #1 Wed Jun 8 16:59:52 CDT 2005 i686 i686 i386
GNU/Linux
--
Unsubscribe mailto:smokeping-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:smokeping-users-request at list.ee.ethz.ch?subject=help
Archive http://lists.ee.ethz.ch/smokeping-users
WebAdmin http://lists.ee.ethz.ch/lsg2.cgi
More information about the smokeping-users
mailing list