{% extends "base_status.html" %} {% block title %}Hostgroups{% endblock %} {% block nav2 %} Hostgroups {% if hostgroup_name %} / {{ hostgroup_name }} {% else %} {% endif %} {% endblock %} {% block smallheader %} {% if hostgroup_name %}hostgroup {% endif %} {% endblock %} {% block largeheader %} {% if hostgroup_name %}{{ hostgroup_name }} {% else %} Hostgroups {% endif %} {% endblock %} {% block content %}
{% if hostgroups %} {% for row in hostgroups %} {% if row.members|length > 0 %} {% for i in row.child_hostgroups %} {% endfor %} {% for i in row.members_with_state %} {% endfor %} {% else %} {% endif %} {% endfor %}
Hostgroup Child Hostgroups Parent Hostgroups Hosts Services Health Service Status
{{ row.name }}
{{ row.child_hostgroups|length }}
{{ row.parent_hostgroups|length }}
{{ row.members|length }} {{ row.total }} {% if row.health > -1 %} {{ row.health|floatformat }}% {% else %} 0 {% endif %}
{{ i }}
{{ i.0 }}
{% else %}
This hostgroup has no hostgroups
{% endif %} {% if hostgroup_name %}
{% if hosts %} {% for row in hosts %} {% if row.state == 0 %} {% else %} {% endif %} {% endfor %}
Host Name Address Status Service Status
{{ row.name }} {{ row.address }}UPDown
{% else %} No hosts in this hostgroup. {% endif %}
{% endif %}
{% endblock %} {% block header %} {{ block.super }} {% endblock %} {% block footer %} {{ block.super }} {% endblock %}