{% extends 'layout-single.html' %} {% block title %}SkyNet {{host}} Host Info{% endblock %} {% block styles %} {% endblock %} {% block scripts %} {% endblock %} {% block content %}

Host {{host}}

{% if hostversions %} {% for hostinfo in hostversions %}

Version {{ hostinfo['skynet']['version'] }}

Exitcode: {{hostinfo['gosky']['exitcode']}}

Installed: {{hostinfo['skynet']['installed']}}

{% if hostinfo['skynet'].get('reason') %}

Install Status: Failed

Reason: {{hostinfo['skynet']['reason']}}

{% else %}

Install Status: OK

{% endif %} {% if hostinfo['skynet'].get('stderr') %}

Stderr:

[Show]

{% endif %} {% if hostinfo.get('os') %} {% if hostinfo['os'].get('name') %}

Kernel: {{hostinfo['os']['name']}} {{hostinfo['os']['version']}}

{% endif %} {% if hostinfo['os'].get('os_name') %}

Distributive: {{hostinfo['os']['os_name']}} {{hostinfo['os']['os_version']}}

{% endif %} {% endif %} {% if hostinfo['skynet'].get('srvmngr') %} {% if hostinfo['skynet']['srvmngr'].get('deploy_type') %}

Deploy type: {{hostinfo['skynet']['srvmngr']['deploy_type']}}

{% endif %} {% if hostinfo['skynet']['srvmngr'].get('services') %}

SrvMngr Service Status:

{% for service, state in hostinfo['skynet']['srvmngr']['services'].items() %} {% if state %}

{{service}}: OK [{{hostinfo['skynet']['srvmngr'].get('versions',{}).get(service, 'Unknown')}}]

{% else %}

{{service}}: Not OK [{{hostinfo['skynet']['srvmngr'].get('versions',{}).get(service, 'Unknown')}}]

{% endif %} {% endfor %} {% endif %} {% endif %} {% if hostinfo['skynet'].get('skycore') %}

Skycore Service Status:

{% for service, state in hostinfo['skynet']['skycore']['services'].items() %} {% if 'RUNNING' in state['state'] %}

{{service}}: {{state['state']}} [{{state['version']}}]

{% else %}

{{service}}: {{state['state']}} [{{state['version']}}]

{% endif %} {% endfor %} {% endif %}
{% endfor %} {% else %}

Host info is not available.

{% endif %} {% endblock %}