{% extends "html/report_base.html" %} {% import 'macros/report_title.macro' as TITLE %} {% set NO_AGENT_SERVER_MSG = _('This group does not have any agent or server.') %} {% set NO_DATA_MSG = _('No data found.') %} {% block title %} {{ _("System Configuration Report") }} {% endblock %} {% block report_header_text %} {{ TITLE.TitleElement("System Configuration Report") }} {%endblock%} {% block loading_text %} {%endblock%} {% block status_element_block %}
{{ _('Go to: ') }}
{% endblock %} {% block css_block %} {# Embed files #} {% for css_file in css_files %} {{ css_file|safe }} {% endfor %} {% endblock %} {% block dashboard_body %}
{{ _('Postgres Enterprise Manager Summary') }}
{% for key, value in pem_info.items() %} {% if key == 'platform' %} {% endif %} {% endfor %}
{{ _('Postgres Enterprise Manager Summary') }}
{{ _('Parameter') }} {{ _('Value') }}
{{ _('Name') }} {{ pem_info.name }}
{{ _('Backend version') }} {{ pem_info.database }}
{{ _('App version') }} {{ pem_info.version }}
{{ _('User') }} {{ pem_info.user }}
{{ _('Python version') }} {{ pem_info.python }}
{{ _('Flask version') }} {{ pem_info.flask }}
{{ key|capitalize }} {% for key, val in value.items() %}
{{ key|capitalize }}
: {{ val }}
{% endfor %}
{{ _('Summary') }}
{{ _('Summary') }}
{{ _('Parameter') }} {{ _('Value') }}
{{ _('Agents') }}
{{ _('Windows') }}
: {{ summary.total_windows_agents }}
{{ _('Linux') }}
: {{ summary.total_unix_linux_agents }}
{{ _('Servers') }}
{{ _('PG') }}
: {{ summary.total_pg_servers }}
{{ _('EPAS') }}
: {{ summary.total_epas_servers }}
{{ _('Unknown') }}
: {{ summary.total_unknwon_servers }}
{{ _('Locally Managed') }}
: {{ summary.total_locally_monitored_servers }}
{{ _('Remotely Managed') }}
: {{ summary.total_remotely_monitored_servers }}
{{ _('Unmanaged') }}
: {{ summary.total_unmanaged_servers }}
{% for key,group in report.items() %} {% set grouploop = loop %}
Group: {{group.name}}
{% if group.agents|length == 0 and group.servers|length == 0%} {{ NO_AGENT_SERVER_MSG }} {% else %} {% for agent in group.agents %} {% set agentloop = loop %}
{{ _('Agent: ') }} {{agent.description}}
{{ _('Agent: ') }} {{agent.description}}
{{ _('Agent Details') }}
{% if agent|length > 0 %}
{% if agent.os_details and agent.os_details.startswith('windows') %} {% endif %} {% if agent.bound_local_servers and agent.bound_local_servers|length > 0 %} {% else %} {% endif %} {% if agent.bound_remote_servers and agent.bound_remote_servers|length > 0 %} {% else %} {% endif %}
{{ _('Agent Details') }}
{{ _('Parameter') }} {{ _('Value') }}
{{ _('Platform') }} {{ agent.platform|capitalize }}
{{ _('OS') }} {{ agent.os_details }}
{{ _('Version') }} {{ agent.version }}
{{ _('Active') }} {{ agent.active }}
{{ _('Hostname') }} {{ agent.hostname }}
{{ _('Domain Name') }} {{ agent.domainname }}
{{ _('Windows Domain') }} {{ agent.windows_domain }}
{{ _('Bound Local Servers') }} (none)
{{ _('Bound Remote Servers') }} (none)
{% endif %}
{{ _('CPU') }}
{{ _('Total CPU Cores: ') }} {{agent.total_cpu_cores}}
{{ _('Average CPU Utilization (%%): ') }} {{agent.avg_cpu_utilization_percentage}}
{% if agent.cpu_core_details|length > 0 %}
{% for cpu in agent.cpu_core_details %} {% endfor %}
{{ _('CPU') }}
{{ _('Core ID') }} {{ _('Load Percentage') }}
{{cpu.core_id}} {{cpu.load_percentage}}
{% endif %}
{{ _('Disk Utilization') }}
{{ _('Total Disk Size (MB): ') }} {{agent.total_disk_size_mb}}
{{ _('Disk Space Used (MB): ') }} {{agent.total_disk_space_used_mb}}
{{ _('Disk Space Available (MB): ') }} {{agent.total_disk_space_available_mb}}
{{ _('Disk Utilization (%%): ') }} {{agent.disk_utilization_percentage}}
{% if agent.disk_utilization_details|length > 0 %}
{% for disk in agent.disk_utilization_details %} {% if disk.size_mb|int > 0 %} {% endif %} {% endfor %}
{{ _('Disk Utilization') }}
{{ _('Mount Point') }} {{ _('File System') }} {{ _('Size (MB)') }} {{ _('Space Used (MB)') }} {{ _('Space Available (MB)') }}
{{disk.mount_point}} {{disk.file_system}} {{disk.size_mb}} {{disk.space_used_mb}} {{disk.space_available_mb}}
{% endif %}
{{ _('Memory Details') }}
{% if agent.mem_details|length > 0 %}
{{ _('Memory Details') }}
{{ _('Parameter') }} {{ _('Value') }}
{{ _('Free RAM (MB)') }} {{agent.mem_details.free_ram_memory_mb}}
{{ _('Memory Usage Percentage') }} {{agent.mem_details.mem_usage_percentage}}
{{ _('Total Swap Memory (MB)') }} {{agent.mem_details.total_swap_memory_mb}}
{{ _('Free Swam Memory (MB)') }} {{agent.mem_details.free_swap_memory_mb}}
{{ _('Swap Usage Percentage') }} {{agent.mem_details.swap_usage_percentage}}
{% else %} {{ NO_DATA_MSG }} {% endif %}
{% endfor %} {% for server in group.servers %} {% set serverloop = loop %}
{{ _('Server: ') }} {{server.description}}
{{ _('Server: ') }} {{server.description}}
{{ _('Server Details') }}
{% if server|length > 0 %}
{% if server.agent_id %} {% else %} {% endif %}
{{ _('Server Details') }}
{{ _('Parameter') }} {{ _('Value') }}
{{ _('Agent') }}{{ server.agent_name }}(none)
{{ _('Host') }} {{ server.host }}
{{ _('Port') }} {{ server.port }}
{{ _('Database') }} {{ server.database }}
{{ _('Version') }} {{ server.version }}
{{ _('Sevice Id') }} {{ server.service_id }}
{{ _('Remote Monitored?') }} {{ server.is_remote_monitoring }}
{{ _('Active') }} {{ server.active }}
{% endif %}
{{ _('Database Details') }}
{% if server.db_details %}
{% for db in server.db_details %} {% endfor %}
{{ _('Database Details') }}
{{ _('Name') }} {{ _('Size (MB)') }} {{ _('Tablespace Name') }}
{{db.database_name}} {{db.database_size_mb}} {{db.tablespace_name}}
{% else %} {{ NO_DATA_MSG }} {% endif %}
{{ _('Tablespace Details') }}
{% if server.tablespace_details %}
{% for tablespace in server.tablespace_details %} {% endfor %}
{{ _('Tablespace Details') }}
{{ _('Name') }} {{ _('Size (MB)') }}
{{tablespace.tablespace_name}} {{tablespace.tablespace_size_mb}}
{% else %} {{ NO_DATA_MSG }} {% endif %}
{% endfor %} {% endif %}
{% endfor %}
{% endblock %} {% block script_block %} {% for js_file in js_files %} {{ js_file|safe }} {% endfor %} {% endblock %}