{%- extends "_layout.html" %} {%- block content %}

{{ hawat_current_view.get_view_title() }}


{{ gettext('Overall status:')}} {{ mentat_status['result'][1] }}

{{ gettext('Information gathered at:') }} {{ babel_format_datetime(mentat_status['dt']) }}


{{ gettext('Real-time message processing modules') }}

{{ gettext('Overall status:')}} {{ mentat_status['resultm'][1] }}

    {%- for modname, moddata in mentat_modules.items() %}
  • {{ modname }}: {{ mentat_status['modules'][modname][1] }}
  • {%- endfor %}

{{ gettext('Cronjob message post-processing modules') }}

{{ gettext('Overall status:')}} {{ mentat_status['resultc'][1] }}

    {%- for modname, moddata in mentat_cronjobs.items() %}
  • {{ modname }}: {{ mentat_status['cronjobs'][modname][1] }}
  • {%- endfor %}
{%- if mentat_status['messages']['error'] or mentat_status['messages']['info'] or mentat_status['messages']['notice'] or mentat_status['messages']['warning'] %}

{{ gettext('Messages:') }}

{%- for msgtype in ['error', 'warning', 'notice', 'info'] %} {%- for msg in mentat_status['messages'][msgtype] %} {%- call macros_site.render_alert(msgtype) %} {{ msg[0] }} {%- endcall %} {%- endfor %} {%- endfor %} {%- endif %}

{{ gettext('Real-time message processing modules') }}

{%- for modname, moddata in mentat_modules.items() %}
{{ modname }}

{{ gettext('Module status:')}}
{{ mentat_status['modules'][modname][1] }}

{%- if modname in mentat_status['runlog_files'] %} {%- for rlf_key, rlf_data in mentat_status['runlog_files'][modname].items() %}

{{ gettext('Module runlog file:')}}
{{ gettext('PID:') }} {{ rlf_data['data']['pid'] }} | {{ gettext('File:') }} {{ rlf_data['path'] }} | {{ gettext('Size:') }} {{ babel_format_bytes(rlf_data['size'], 'B') }} | {{ gettext('Last modification at:') }} {{ babel_format_datetime(rlf_data['mtime']) }} ({{ gettext('%(delta)s ago', delta = babel_format_timedelta(current_datetime_utc - rlf_data['mtime'])) }}) {%- for component_stats in rlf_data['data']['statistics']['components']|dictsort %} {%- for stats_counter in component_stats[1]|dictsort %} {%- if stats_counter[1] is number %} {%- endif %} {%- endfor %} {%- endfor %}
{{ component_stats[0] }}.{{ stats_counter[0] }}   {{ stats_counter[1] }}

{%- endfor %} {%- endif %} {%- if modname in mentat_status['pid_files'] %}

{{ gettext('Module PID files:')}}
{%- for pid, piddata in mentat_status['pid_files'][modname].items() %} {{ gettext('PID:') }} {{ piddata['pid'] }} | {{ gettext('File:') }} {{ piddata['path'] }} | {{ gettext('Size:') }} {{ babel_format_bytes(piddata['size'], 'B') }} | {{ gettext('Last modification at:') }} {{ babel_format_datetime(piddata['mtime']) }} ({{ gettext('%(delta)s ago', delta = babel_format_timedelta(current_datetime_utc - piddata['mtime'])) }}) {%- if not loop.last %}
{%- endif %} {%- endfor %}

{%- endif %} {%- if modname in mentat_status['processes'] %}

{{ gettext('Module processes:')}}
{%- for pid, psdata in mentat_status['processes'][modname].items() %} {{ gettext('PID:') }} {{ psdata['pid'] }} | {{ gettext('Process:') }} {{ psdata['process'] }} {{ psdata['exec'] }}{% if psdata['args'] %}{{ psdata['args'] }}{% endif %} {%- if not loop.last %}
{%- endif %} {%- endfor %}

{%- endif %} {%- if modname in mentat_status['log_files'] %}

{{ gettext('Module log file:')}}
{{ gettext('File:') }} {{ mentat_status['log_files'][modname]['path'] }} | {{ gettext('Size:') }} {{ babel_format_bytes(mentat_status['log_files'][modname]['size'], 'B') }} | {{ gettext('Last modification at:') }} {{ babel_format_datetime(mentat_status['log_files'][modname]['mtime']) }} ({{ gettext('%(delta)s ago', delta = babel_format_timedelta(current_datetime_utc - mentat_status['log_files'][modname]['mtime'])) }})

{%- endif %} {%- if not loop.last %}
{%- endif %} {%- endfor %}

{{ gettext('Cronjob message post-processing modules') }}

{%- for modname, moddata in mentat_cronjobs.items() %}
{{ modname }}

{{ gettext('Module status:')}}
{{ mentat_status['cronjobs'][modname][1] }}

{%- if modname in mentat_status['log_files'] %}

{{ gettext('Module log file:')}}
{{ gettext('File:') }} {{ mentat_status['log_files'][modname]['path'] }} | {{ gettext('Size:') }} {{ babel_format_bytes(mentat_status['log_files'][modname]['size'], 'B') }} | {{ gettext('Last modification at:') }} {{ babel_format_datetime(mentat_status['log_files'][modname]['mtime']) }} ({{ gettext('%(delta)s ago', delta = babel_format_timedelta(current_datetime_utc - mentat_status['log_files'][modname]['mtime'])) }})

{%- endif %} {%- if modname in mentat_status['cron_files'] %}

{{ gettext('Module cron file:')}}
{{ gettext('File:') }} {{ mentat_status['cron_files'][modname]['path'] }} | {{ gettext('Link:') }} {{ mentat_status['cron_files'][modname]['link'] }} | {{ gettext('Size:') }} {{ babel_format_bytes(mentat_status['cron_files'][modname]['size'], 'B') }} | {{ gettext('Last modification at:') }} {{ babel_format_datetime(mentat_status['cron_files'][modname]['mtime']) }} ({{ gettext('%(delta)s ago', delta = babel_format_timedelta(current_datetime_utc - mentat_status['cron_files'][modname]['mtime'])) }})

{%- endif %} {%- if modname in mentat_status['processes'] %}

{{ gettext('Module processes:')}}
{%- for pid, psdata in mentat_status['processes'][modname].items() %} {{ gettext('PID:') }} {{ psdata['pid'] }} | {{ gettext('Process:') }} {{ psdata['process'] }} {{ psdata['exec'] }}{% if psdata['args'] %}{{ psdata['args'] }}{% endif %} {%- if not loop.last %}
{%- endif %} {%- endfor %}

{%- endif %} {%- if not loop.last %}
{%- endif %} {%- endfor %}

    {%- for modname, moddata in mentat_status['log_files'].items() %}
  • {{ modname }}

    {{ gettext('File:') }} {{ moddata['path'] }} | {{ gettext('Size:') }} {{ babel_format_bytes(moddata['size'], 'B') }} | {{ gettext('Last modification at:') }} {{ babel_format_datetime(moddata['mtime']) }} ({{ gettext('%(delta)s ago', delta = babel_format_timedelta(current_datetime_utc - moddata['mtime'])) }})

  • {%- endfor %}

    {%- for modname, moddata in mentat_status['pid_files'].items() %}
  • {{ modname }}

    {%- for pid, piddata in moddata.items() %}

    {{ gettext('PID:') }} {{ piddata['pid'] }} | {{ gettext('File:') }} {{ piddata['path'] }} | {{ gettext('Size:') }} {{ babel_format_bytes(piddata['size'], 'B') }} | {{ gettext('Last modification at:') }} {{ babel_format_datetime(piddata['mtime']) }} ({{ gettext('%(delta)s ago', delta = babel_format_timedelta(current_datetime_utc - piddata['mtime'])) }})

    {%- endfor %}
  • {%- endfor %}

    {%- for modname, moddata in mentat_status['processes'].items() %}
  • {{ modname }}

    {%- for pid, psdata in moddata.items() %}

    {{ gettext('PID:') }} {{ psdata['pid'] }} | {{ gettext('Process:') }} {{ psdata['process'] }} {{ psdata['exec'] }}{% if psdata['args'] %}{{ psdata['args'] }}{% endif %}

    {%- endfor %}
  • {%- endfor %}
{%- if permission_can('developer') %}
            {{ mentat_status | pprint }}
                    
{%- endif %}
{%- endblock content %}