diff --git a/conf/monitorix.conf b/conf/monitorix.conf index 61c65e8..5c0b047 100644 --- a/conf/monitorix.conf +++ b/conf/monitorix.conf @@ -567,7 +567,9 @@ secure_log_date_format = %b %e list = {% for interface in net_interface_list.splitlines() %}{% if loop.index > 1 %}, {% endif %}{{ interface.split(',')[0] }}{% endfor %} {%- for interface in net_interface_list.splitlines() %} - {{ interface.split(',')[0] }} = Interface {{ interface.split(',')[0] }}, 0, {{ interface.split(',')[1] }} + {%- set interface_name = interface.split(',')[0] %} + {%- set interface_speed = interface.split(',')[1] %} + {{ interface_name }} = Interface {{ interface_name }}, 0, {{ interface_speed }} {%- endfor %} gateway = {{ net_gateway }}