Skip to content

Commit 23ae39c

Browse files
authored
Merge pull request #556 from zabacad/http_ignore_ssl_warn
Add ignore_ssl_warning to HTTP check
2 parents c2b39ec + 046a14e commit 23ae39c

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

manifests/integrations/http_check.pp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@
6969
# problematic SSL server certificates. To maintain backwards
7070
# compatibility this defaults to false.
7171
#
72+
# ignore_ssl_warning
73+
# When SSL certificate validation is enabled (see setting above), this
74+
# setting will allow you to disable security warnings.
75+
#
7276
# skip_event
7377
# The (optional) skip_event parameter will instruct the check to not
7478
# create any event to avoid duplicates with a server side service check.
@@ -175,6 +179,7 @@
175179
$http_response_status_code = undef,
176180
$collect_response_time = true,
177181
$disable_ssl_validation = false,
182+
$ignore_ssl_warning = false,
178183
$skip_event = true,
179184
$no_proxy = false,
180185
$check_certificate_expiration = true,
@@ -206,6 +211,7 @@
206211
'http_response_status_code' => $http_response_status_code,
207212
'collect_response_time' => $collect_response_time,
208213
'disable_ssl_validation' => $disable_ssl_validation,
214+
'ignore_ssl_warning' => $ignore_ssl_warning,
209215
'skip_event' => $skip_event,
210216
'no_proxy' => $no_proxy,
211217
'check_certificate_expiration' => $check_certificate_expiration,

templates/agent-conf.d/http_check.yaml.erb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ instances:
5050
<% unless instance['disable_ssl_validation'].nil? -%>
5151
disable_ssl_validation: <%= instance['disable_ssl_validation'] %>
5252
<% end -%>
53+
<% unless instance['ignore_ssl_warning'].nil? -%>
54+
ignore_ssl_warning: <%= instance['ignore_ssl_warning'] %>
55+
<% end -%>
5356
<% unless instance['skip_event'].nil? -%>
5457
skip_event: <%= instance['skip_event'] %>
5558
<% end -%>

0 commit comments

Comments
 (0)