diff options
author | Niko Tyni <ntyni@iki.fi> | 2005-05-10 19:48:16 +0200 |
---|---|---|
committer | Niko Tyni <ntyni@iki.fi> | 2005-05-10 19:48:16 +0200 |
commit | bd0e56f10d34b874a6d115391c4046199e5b330e (patch) | |
tree | 35348711aa9080de6811fce3a89ad8d8ca0ee789 /lib/Smokeping | |
parent | cc63560d93815cac731fefe82f24aee01aba7676 (diff) | |
download | smokeping-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')
-rw-r--r-- | lib/Smokeping/probes/Curl.pm | 13 |
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); } |