Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,
$check_hostname = undef,
Comment thread
asenci marked this conversation as resolved.
Outdated
$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,
Comment thread
asenci marked this conversation as resolved.
Outdated
'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