{% extends "base_status.html" %} {% load adagiostags %} {% load static %} {% load i18n %} {% block title %}{{ my_object.display_name }}{% endblock %} {% block smallheader %} {% endblock %} {% block largeheader %} {% if object_type == 'service' %} {% trans "Service" %}
{{ service.display_name }}{% trans " on" %} {% endif %} {% trans "host" %}
{{ host.display_name }} {% endblock %} {% block nav1 %}{% trans "status" %}{% endblock %} {% block nav2 %}{{ host_name }} {% if primary_object.object_type == 'service' %}- {{ service_description }}{% endif %}{% endblock %} {% block view_buttons %}{% endblock %} {% block content %}
{% if my_object %} {% if service %} {% endif %}
{% trans "Status" %} {% if my_object.last_check != 0 %}
{{ my_object.status }} for {{ my_object.last_state_change|timestamp|timesince }} {% if my_object.state != 0 %} {% if my_object.acknowledged == 1 %}{% trans "(has been acknowledged)" %} {% else %}{% trans "(not acknowledged)" %} {% endif %} {% endif %} {% else %}
{% trans " Pending" %} {% endif %}
{% trans "Host Name" %} {% if my_object.last_check != 0 %}
{% else %}
{% endif %} {{ host.display_name }}
{% trans "Host Address" %} {{ host.address }}
{% trans "Host Alias" %} {{ host.alias }}
{% trans "Service Name" %} {{ service.display_name }}
{% trans "Check output" %} {% if my_object.last_check == 0 %}
{% trans "Has not run yet." %}
{% else %} {% if my_object.long_plugin_output %}
{{ my_object.plugin_output }}

{{ my_object.long_plugin_output }}
{% else %}
{{ my_object.plugin_output }}
{% endif %} {% endif %}
{% trans "Performance Metrics" %} {% if perfdata %} {% if settings.enable_pnp4nagios %} {% endif %} {% if settings.enable_graphite %} {% endif %} {% for i in perfdata %} {% if settings.enable_pnp4nagios %} {% endif %} {% if settings.enable_graphite %} {% endif %} {% endfor %}
{% trans "label" %} {% trans "value" %} {% trans "warn" %} {% trans "crit" %} {% trans "unit" %} {% trans "min" %} {% trans "max" %}{% trans "pnp" %}{% trans "graphite" %}
{{ i.label }} {{ i.value }} {{ i.warn }} {{ i.crit }} {{ i.uom }} {{ i.min }} {{ i.max }}
{% else %} {% trans "No Perfdata available." %} {% endif %}
{% endif %}

{% trans "Information available via livestatus:" %}

{% for k,v in my_object.items %} {% endfor %}
{{ k }} {{ v }}

{% blocktrans with ot=my_object.object_type ci=my_object.check_interval %} This {{ ot }} is checked every {{ ci }} minutes. {% endblocktrans %} {% blocktrans with mca=my_object.max_check_attempts ri=my_object.retry_interval %} When a problem occurs it will be checked {{ mca }} times every {{ ri }} minutes before going to hard state and start sending out notifications. {% endblocktrans %}

{% if my_object.notes %}

{% trans "Notes:" %} {{ my_object.notes }}

{% endif %}
{% trans "Last Check" %} {% if my_object.last_check %} {{ my_object.last_check|timestamp|date:'Y-m-d H:i' }} ({{ my_object.last_check|timestamp|timesince }}{% trans " ago)" %} {% else %} {% trans "check has never been executed." %} {% endif %}
{% trans "Next Check" %} {% if my_object.next_check %} {{ my_object.next_check|timestamp|date:'Y-m-d H:i' }} ({{ my_object.next_check|timestamp|timeuntil }}{% trans " from now)" %} {% else %} {% trans "Check is not scheduled to be executed." %} {% endif %}
{% trans "Check Period" %} {% if my_object.check_period %} {{ my_object.check_period }} {% else %} {% trans "Unknown" %} {% endif %} (currently {% if my_object.in_check_period %}inside{% else %}outside{% endif %} check_period)
{% trans "Notification Period" %} {% if my_object.notification_period %} {{ my_object.notification_period }} {% else %} {% trans "Unknown" %} {% endif %} (currently {% if my_object.in_notification_period %}inside{% else %}outside{% endif %} notification period)
{% trans "Check command" %} {% trans " Loading..." %}
{% trans "Active Checks" %} {% if my_object.active_checks_enabled == 1 %} {% trans "Enabled" %} {% else %} {% trans "Disabled" %} {% endif %}
{% trans "Passive checks" %} {% if my_object.accept_passive_checks == 1 %} {% trans "Enabled" %} {% else %} {% trans "Disabled" %} {% endif %}
{% trans "Obsessing" %} {% if my_object.host_obsess_over_host == 1 %} {% trans "Enabled" %} {% else %} {% trans "Disabled" %} {% endif %}
{% trans "Notifications" %} {% if my_object.notifications_enabled == 1 %} {% trans "Enabled" %} {% else %} {% trans "Disabled" %} {% endif %}
{% trans "Event Handler" %} {% if my_object.event_handler_enabled == 1 %} {% trans "Enabled" %} {% else %} {% trans "Disabled" %} {% endif %}
{% trans "Flap Detection" %} {% if my_object.flap_detection_enabled == 1 %} {% trans "Enabled" %} {% else %} {% trans "Disabled" %} {% endif %}
{% trans "Downtimes:" %} {% if my_object.downtimes_with_info %}
{% for i in my_object.downtimes_with_info %}
{{ i.1 }}: {{ i.2 }}
{% endfor %}
{% else %} {% trans "No Downtimes are scheduled." %} {% endif %}
{% trans "Comments:" %}
{% if my_object.comments_with_info %} {% for i in my_object.comments_with_info %}
{{ i.1 }}: {{ i.2 }}
{% endfor %} {% else %}

{% blocktrans with ot=my_object.object_type %}This {{ ot }} has no comments.{% endblocktrans %}

{% endif %}
{% if my_object.object_type == 'service' %} {% endif %} {{ remote_user }}:
{% trans "Network Parents" %} {% if network_parents %} {% for parent_level in network_parents %} {% for parent in parent_level %} {% endfor %} {% endfor %}
{% else %} {% blocktrans with ot=my_object.object_type %}This {{ ot }} has no configured network parents.{% endblocktrans %} {% endif %}
{% trans "Some checks have custom variables defined. These can be defined for example to define warning/critical thresholds for custom plugins." %}

{% if my_object.custom_variables %} {% for k,v in my_object.custom_variables.items %} {% endfor %}
{% trans "Variable Name" %} {% trans "Value" %}
{{ k }}
{% else %} {% trans "This check has no custom variables defined." %} {% endif %}

{% if my_object.host_custom_variables %} Host {{ host_name }} also has some custom variables. {% for k,v in my_object.host_custom_variables.items %} {% endfor %}
{% trans "Variable Name" %} {% trans "Value" %}
{{ k }} {{ v }}
{% else %} {% endif %} See also {% trans "Configure check command" %}
{% trans "This tab should update when the tab is clicked" %}
{% if settings.enable_pnp4nagios %}
{% if graph_urls %} {% else %} {% if pnp4nagios_error %}
{% blocktrans %}We got an error while trying to talk with PNP4nagios: {{ pnp4nagios_error }}{% endblocktrans %}
{% trans "Please check that:" %}
  • pnp4nagios{% trans " is installed and working" %}
  • {% trans "PNP Filepath" %}{% trans " is correctly configured under " %}{% trans "settings" %}
  • {% trans "User running nagios is a member of the unix groups apache or www-data" %}
  • {% url 'pnp.views.pnp' "json" as the_url %} {% blocktrans %}Click here to see pnp4nagios output{% endblocktrans %}
{% endif %} {% blocktrans with ot=my_object.object_type %}No Performance data is available for this {{ ot }}.{% endblocktrans %} {% endif %}
{% endif %} {% if settings.enable_graphite %}
{% for graph in graphite %}
{% for k,v in graph.metrics.items %}

{% endfor %}
{% endfor %}
{% endif %}
{% if host.services_with_info %}
{% trans "Services on this host" %}
{% endif %}
{% trans "External Links" %}
{% if hostgroup_name %} {% if hostgroups %}
{% trans "Is a member of hostgroup:" %}
{% endif %} {% endif %} {% if host.parents %}
{% trans "Network Parents" %}
{% endif %} {% if host.groups %}
{% trans "Is a member of hostgroups" %}
{% endif %} {% if my_object.contact_groups %}
{% trans "Is a member of contactgroups" %}
{% endif %} {% if service.groups %}
{% trans "Is a member of servicegroups" %}
{% endif %}
{% endblock %} {% block header %} {{ block.super }} {% endblock %} {% block footer %} {{ block.super }} {% endblock %} {% block sidebar %} {% endblock %} {% block action_buttons %} {{ block.super }} {% endblock %}