{% import 'languages/'+lang|default('en')+'.html' as lang %} {% if service == 'haproxy' %}
{{lang.phrases.bytes_in}}
{% set total = bin_bout.0|int / 1024 %} {% set metric = 'Kb' %} {% if total > 1000 %} {% set total = total / 1024 %} {% set metric = 'Mb' %} {% endif %} {% if total > 1000 %} {% set total = total / 1024 %} {% set metric = 'Gb' %} {% endif %} {{total|round(2)}} {{metric}}
{{lang.phrases.bytes_out}}
{% set total = bin_bout.1|int / 1024 %} {% set metric = 'Kb' %} {% if total > 1000 %} {% set total = total / 1024 %} {% set metric = 'Mb' %} {% endif %} {% if total > 1000 %} {% set total = total / 1024 %} {% set metric = 'Gb' %} {% endif %} {{total|round(2)}} {{metric}}
{% endif %} {% if service == 'nginx' or service == 'haproxy' %}
{{lang.phrases.current_ses}}
{% if service == 'nginx' %} {% endif %}
{{bin_bout.2}}
{{lang.phrases.total_ses}}
{{bin_bout.3}}
{% endif %} {% if service == 'apache' %}
{{lang.phrases.ReqPerSec}}
{{bin_bout.0}}
{{lang.phrases.BytesPerSec}}
{% set total = bin_bout.1|int / 1024 %} {% set metric = 'Kb' %} {% if total > 1000 %} {% set total = total / 1024 %} {% set metric = 'Mb' %} {% endif %} {% if total > 1000 %} {% set total = total / 1024 %} {% set metric = 'Gb' %} {% endif %} {{total|round(2)}} {{metric}}
{% endif %} {% if service == 'keepalived' %}
{{lang.phrases.became_master}}
{% if 'No such' in bin_bout %} {{lang.errors.cannot_get_info}} Keepalived {% else %} {{bin_bout}} {% endif %}
{% endif %}