{% extends base.html %} {% block title %}[{{instance}}] - About{% end %} {% block content %}

{{ instance }} {{ instance.groups[0].group_name }}

{% if len(instance.groups) > 1 %}

{% for group in instance.groups %} {{ group.group_name }} {% end %}

{% end %}

{{ instance.pg_version_summary }} serving {{ instance.pg_data }}.

{# Default if discover is None, this happen in development mode only. #} {% set discover = instance.discover or dict(postgres={}, temboard={}, system={}) %} {% set d = discover['postgres'] %} {% set settings = ['listen_address', 'max_connections', 'data_checksums'] %} {% for setting in settings %} {% if setting in d %} {% end %} {% end %} {% set d = discover['system'] %} {% if 'cpu_model' in d %} {% end %} {% if 'memory' in d %} {% end %} {% if 'swap' in d %} {% end %} {% set d = discover['temboard'] %} {% if 'pythonbin' not in d %} {% end %} {% if 'plugins' in d %} {% end %} {% if 'configfile' in d %} {% end %} {% if 'python_version' in d %} {% end %} {% set components = ['psycopg2', 'libpq', 'bottle', 'cyptography'] %} {% for component in components %} {% set key = '%s_version' % component %} {% if key in d %} {% end %} {% end %}

PostgreSQL {{ d.get('cluster_name', '') }}

Full version
{{ d.get('version', 'Unknown').replace(', ', '\n') }}
{{ setting }} {% set value = d[setting] %} {% if type(value) is bool %} {% else %}
{{ value }}
{% end %}

{{ d.get('distribution', 'System') }}

CPU {{ d['cpu_count'] }} x {{ d['cpu_model'] }}
Memory {{ '%.2f' % (d['memory'] / 1024. / 1024. / 1024.) }} GiB
Swap {{ '%.2f' % (d['swap'] / 1024. / 1024. / 1024.) }} GiB
Kernel {{ d.get('os', 'Linux') }} {{ d.get('os_version', '') }}

temBoard Agent {{ d.get('agent_version', '') }}

Agent User {% try %} {{ '@' + agent_username }} {% except %} Not logged in {% end %}
Plugins
    {% for plugin in d['plugins'] %}
  • {{ plugin }}
  • {% end %}
Configuration file {{ d['configfile'] }}
Python {{ d['python_version'] }} {{ d['pythonbin'] }}
{{ component }} {{ d[key] }}
{% end %}