Split nagios-checkhttp into nagios-checkhttp{,s}
This commit is contained in:
parent
fe971cc9a4
commit
d67bc370ac
@ -153,22 +153,25 @@ define host {
|
||||
{% for tag in service.value.tags %}
|
||||
{# #}
|
||||
{% if tag.slug == "nagios-checkhttp" %}
|
||||
{% if 80 in service.value.ports %}
|
||||
{% for port in service.value.ports %}
|
||||
define service {
|
||||
use ansible-generic-service
|
||||
service_description HTTP - {{ service.value.name }}
|
||||
check_command check_http!-H {{ service.value.name }} -f sticky
|
||||
service_description HTTP - {{ service.value.name }} - {{ port }}
|
||||
check_command check_http!-H {{ service.value.name }} -p {{ port }} -f sticky
|
||||
host_name {{ host_name }}
|
||||
}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% if 443 in service.value.ports %}
|
||||
{# #}
|
||||
{% if tag.slug == "nagios-checkhttps" %}
|
||||
{% for port in service.value.ports %}
|
||||
define service {
|
||||
use ansible-generic-service
|
||||
service_description HTTPS - {{ service.value.name }}
|
||||
check_command check_http!--ssl -H {{ service.value.name }} -f sticky
|
||||
service_description HTTPS - {{ service.value.name }} - {{ port }}
|
||||
check_command check_http!--ssl -H {{ service.value.name }} -p {{ port }} -f sticky
|
||||
host_name {{ host_name }}
|
||||
}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{# #}
|
||||
{% if tag.slug == "nagios-checktcp" %}
|
||||
|
Loading…
Reference in New Issue
Block a user