{% if s.ip|string|length > 23 %}
{% elif s.ip|string|length > 20 %}
{% elif s.ip|string|length > 17 %}
{% else %}
{% endif %}
{{s.ip}}:{{s.port}}
{% if s.desc is not none %}
{{s.desc}}
{% else %}
Desc: None
{% endif %}
{% if s.en == 1 %}
{% if s.status == 1 and s.http_status == 1 and s.body_status == 1 %}
Uptime:
{% elif s.status == 0 or s.http_status == 0 or s.body_status == 0 %}
Downtime:
{% else %}
Uptime: N/A
{% endif %}
{% else %}
Uptime: N/A
{% endif %}
{% if s.en == 1 %}
{% if s.status == 1 %}
Resp time:
{% else %}
Last resp time:
{% endif %}
{% if s.responce_time %}
{{s.responce_time|truncate(9)}} ms
{% else %}
N/A
{% endif %}
{% else %}
N/A
{% endif %}
{% if s.en == 1 %}
{% if s.status == 1 and s.http_status == 1 and s.body_status == 1 %}
UP
{% elif s.http_status == 0 %}
HTTP IS FAILURE
{% elif s.body_status == 0 %}
BODY IS FAILURE
{% elif s.status == 3 %}
UNKNOWN
{% else %}
PORT IS DOWN
{% endif %}
{% else %}
Disabled
{% endif %}
{% endfor %}