Skip to content

Commit

Permalink
Add additional parameters to http_check (#599)
Browse files Browse the repository at this point in the history
Add the check_hostname and ssl_server_name parameters
to the http_check integration
  • Loading branch information
asenci authored and albertvaka committed Jan 14, 2020
1 parent 1f5b081 commit 0b24c8d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions manifests/integrations/http_check.pp
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@
$check_certificate_expiration = true,
$days_warning = undef,
$days_critical = undef,
Optional[Boolean] $check_hostname = undef,
Optional[String] $ssl_server_name = undef,
$headers = [],
$allow_redirects = true,
$tags = [],
Expand Down Expand Up @@ -217,6 +219,8 @@
'check_certificate_expiration' => $check_certificate_expiration,
'days_warning' => $days_warning,
'days_critical' => $days_critical,
'check_hostname' => $check_hostname,
'ssl_server_name' => $ssl_server_name,
'headers' => $headers,
'allow_redirects' => $allow_redirects,
'tags' => $tags,
Expand Down
6 changes: 6 additions & 0 deletions templates/agent-conf.d/http_check.yaml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ instances:
<% if instance['days_critical'] -%>
days_critical: <%= instance['days_critical'] %>
<% end -%>
<% if instance['check_hostname'] -%>
check_hostname: <%= instance['check_hostname'] %>
<% end -%>
<% if instance['ssl_server_name'] -%>
ssl_server_name: <%= instance['ssl_server_name'] %>
<% end -%>
<% end -%>
<% end -%>
<% if instance['headers'] and ! instance['headers'].empty? -%>
Expand Down

0 comments on commit 0b24c8d

Please sign in to comment.