{% extends "wagtailadmin/base.html" %} {% load i18n %} {% block titletag %}{% trans "uWSGI Status" %}{% endblock %} {% block bodyclass %}uwsgi{% endblock %} {% block content %} {% if unavailable %} {% trans 'ERROR: uWSGI is not available!' as uwsgi_header %} {% include "wagtailadmin/shared/header.html" with title=uwsgi_header icon="cogs" %} {% else %} {% trans "uWSGI Status" as uwsgi_header %} {% include "wagtailadmin/shared/header.html" with title=uwsgi_header subtitle=version icon="cogs" tabbed="true" merged="true" %}

{% trans 'Information' %}

{% for key, value in stats %} {% endfor %}
{% trans "Option" %} {% trans "Value" %}

{{ key }}

{{ value }}

{% trans 'Options' %}

{% for key, value in options %} {# uWSGI allows to use options without values if value = true #} {% endfor %}
{% trans "Option" %} {% trans "Value" %}

{{ key }}

{% if value %}{{ value }}{% else %}true{% endif %}

{% trans 'Magic table' %}

{{ magic }}

{% trans 'Workers' %}

{% for w in workers %} {% endfor %}
{% trans "id" %} {% trans "pid" %} {% trans "status" %} {% trans "requests" %} {% trans "exceptions" %} {% trans "signals" %} {% trans "running time(ms)" %} {% trans "avg response time(ms)" %} {% trans "load" %} {% trans "last spawn" %} {% trans "respawn count" %} {% trans "address space (vsz)" %} {% trans "resident memory (rss)" %}
{{ w.id }} {{ w.pid }} {{ w.status }} {{ w.requests }} {{ w.exceptions }} {{ w.signals }} {{ w.running_time }} {{ w.avg_rt }} {{ w.load|floatformat:2 }} % {{ w.last_spawn }} {{ w.respawn_count }} {{ w.vsz|filesizeformat }} {{ w.rss|filesizeformat }}

{% trans 'Applications' %}

{% for w in workers %} {% for app in w.apps %} {% endfor %} {% endfor %}
{% trans "#" %} {% trans "modifier1" %} {% trans "mountpoint" %} {% trans "interpreter" %} {% trans "callable" %} {% trans "chdir" %} {% trans "requests" %} {% trans "exceptions" %}
{{ app.id }} {{ app.modifier1 }} {{ app.mountpoint }} {{ app.interpreter }} {{ app.callable }} {{ app.chdir }} {{ app.requests }} {{ app.exceptions }}

{% trans 'Spooler' %}

{% for j in jobs %} {% endfor %}
{% trans "job filename" %} {% trans "environment" %}
{{ j.file }} {{ j.env }}
{% endif %} {% endblock %}