summaryrefslogtreecommitdiffstats
path: root/lib/Smokeping/probes
diff options
context:
space:
mode:
authorNiko Tyni <ntyni@iki.fi>2005-05-10 19:48:16 +0200
committerNiko Tyni <ntyni@iki.fi>2005-05-10 19:48:16 +0200
commitbd0e56f10d34b874a6d115391c4046199e5b330e (patch)
tree35348711aa9080de6811fce3a89ad8d8ca0ee789 /lib/Smokeping/probes
parentcc63560d93815cac731fefe82f24aee01aba7676 (diff)
downloadsmokeping-bd0e56f10d34b874a6d115391c4046199e5b330e.tar.gz
smokeping-bd0e56f10d34b874a6d115391c4046199e5b330e.tar.xz
* branches/2.0/lib/Smokeping/probes/Curl.pm:
+ added the 'insecure_ssl' (-k) option from Marc Spitzer <mspitzer@gmail.com>
Diffstat (limited to 'lib/Smokeping/probes')
-rw-r--r--lib/Smokeping/probes/Curl.pm13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/Smokeping/probes/Curl.pm b/lib/Smokeping/probes/Curl.pm
index e00c749..af5be29 100644
--- a/lib/Smokeping/probes/Curl.pm
+++ b/lib/Smokeping/probes/Curl.pm
@@ -102,6 +102,16 @@ host to be probed.
DOC
_example => "http://%host%/",
},
+ insecure_ssl => {
+ _doc => <<DOC,
+The "-k" curl(1) option. Accept SSL connections that don't have a secure
+certificate chain to a trusted CA. Note that if you are going to monitor
+https targets, you'll probably have to either enable this option or specify
+the CA path to curl through extraargs below. For more info, see the
+curl(1) manual page.
+DOC
+ _example => 1,
+ },
extrare=> {
_doc => <<DOC,
The regexp used to split the extraargs string into an argument list,
@@ -210,6 +220,9 @@ sub proto_args {
my @args = ("-o", "/dev/null", "-w", "Time: %{time_total} DNS time: %{time_namelookup}\\n");
my $ssl2 = $target->{vars}{ssl2};
push (@args, "-2") if defined($ssl2);
+ my $insecure_ssl = $target->{vars}{insecure_ssl};
+ push (@args, '-k') if defined $insecure_ssl;
+
return(@args);
}