mirror of
https://github.com/YunoHost-Apps/monitorix_ynh.git
synced 2024-09-03 19:46:06 +02:00
Fix port config
This commit is contained in:
parent
35f45b59f0
commit
69ca8d4661
2 changed files with 5 additions and 4 deletions
|
@ -723,12 +723,13 @@ secure_log_date_format = %b %e
|
||||||
<port>
|
<port>
|
||||||
max = 50
|
max = 50
|
||||||
rule = 24000
|
rule = 24000
|
||||||
list = 22v4, 22v6, 25v4, 25v6, 80v4, 80v6, 443v4, 443v6, 587v4, 587v6, 993v4, 993v6
|
list = {{ ssh_port }}v4, {{ ssh_port }}v6, 25v4, 25v6, 80v4, 80v6, 443v4, 443v6, 587v4, 587v6, 993v4, 993v6
|
||||||
{%- for port_info in port_infos.splitlines() -%}
|
{%- for port_info in port_infos.splitlines() -%}
|
||||||
{%- set port_info_array = port_info.split(',') -%}
|
{%- set port_info_array = port_info.split(',') -%}
|
||||||
|
{%- set proto = port_info_array[2] -%}
|
||||||
{%- set ip_version = port_info_array[1] -%}
|
{%- set ip_version = port_info_array[1] -%}
|
||||||
{%- set port = port_info_array[0] -%}
|
{%- set port = port_info_array[0] -%}
|
||||||
, {{ port }}v{{ ip_version }}
|
, {{ port }}{{ proto }}{{ ip_version }}
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
<desc>
|
<desc>
|
||||||
{{ ssh_port }}v4 = SSH, tcp, in, 0, {{ net_max_speed }}
|
{{ ssh_port }}v4 = SSH, tcp, in, 0, {{ net_max_speed }}
|
||||||
|
@ -749,7 +750,7 @@ secure_log_date_format = %b %e
|
||||||
{%- set ip_version = port_info_array[1] %}
|
{%- set ip_version = port_info_array[1] %}
|
||||||
{%- set port = port_info_array[0] %}
|
{%- set port = port_info_array[0] %}
|
||||||
{%- set name = port_info_array[3] %}
|
{%- set name = port_info_array[3] %}
|
||||||
{{ port }}v{{ ip_version }} = {{ name }}, {{ proto }}{% if ip_version == '6' %}6{% endif %}, in, 0, {{ net_max_speed }}
|
{{ port }}{{ proto }}{{ ip_version }} = {{ name }}, {{ proto }}{% if ip_version == '6' %}6{% endif %}, in, 0, {{ net_max_speed }}
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
</desc>
|
</desc>
|
||||||
graphs_per_row = 3
|
graphs_per_row = 3
|
||||||
|
|
|
@ -7,7 +7,7 @@ name = "Monitorix"
|
||||||
description.en = "A system monitoring tool"
|
description.en = "A system monitoring tool"
|
||||||
description.fr = "Un outil de monitoring système"
|
description.fr = "Un outil de monitoring système"
|
||||||
|
|
||||||
version = "3.15.0~ynh6"
|
version = "3.15.0~ynh7"
|
||||||
|
|
||||||
maintainers = ["Josué Tille"]
|
maintainers = ["Josué Tille"]
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue