{
"checks":
{
{% if elite_receipt_active_domains is defined %}
{% for check in elite_receipt_active_domains %}
"{{ check.domain }}-cert_check": {
"command": "/etc/sensu/plugins/check-https-cert.rb --url https://{{ check.domain }} --warning 30 --critical 10",
"handlers": [
{{ check.handlers | to_nice_json }}
],
"interval": {{ ssl_cert_check_interval }},
"standalone": true,
"subscribers": ["test"]
},
{% endfor %}
{% for check in elite_receipt_active_domains %}
"{{ check.domain }}-http_redirect_check": {
"command": "/etc/sensu/plugins/check-http.rb --url https://{{ check.domain }} -s false --response-code 301 --redirect-to https://{{ check.domain }} ",
"handlers": [
{{ check.handlers | to_nice_json }}
],
"interval": {{ http_redirect_checK_interval }},
"standalone": true
},
{% endfor %}
{% for check in elite_receipt_active_domains %}
"{{ check.domain }}-https_check": {
"command": "/etc/sensu/plugins/check-http.rb --url https://{{ check.domain }} -s true ",
"handlers": [
{{ check.handlers | to_nice_json }}
],
"interval": {{ http_check_interval }},
"standalone": true
},
{% endfor %}
{% endif %}
}
}