1
0
Fork 0
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:
Josué Tille 2024-05-13 21:44:19 +02:00
parent 35f45b59f0
commit 69ca8d4661
No known key found for this signature in database
GPG key ID: 5F259226AD51F2F5
2 changed files with 5 additions and 4 deletions

View file

@ -723,12 +723,13 @@ secure_log_date_format = %b %e
<port>
max = 50
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() -%}
{%- set port_info_array = port_info.split(',') -%}
{%- set proto = port_info_array[2] -%}
{%- set ip_version = port_info_array[1] -%}
{%- set port = port_info_array[0] -%}
, {{ port }}v{{ ip_version }}
, {{ port }}{{ proto }}{{ ip_version }}
{%- endfor %}
<desc>
{{ 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 port = port_info_array[0] %}
{%- 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 %}
</desc>
graphs_per_row = 3

View file

@ -7,7 +7,7 @@ name = "Monitorix"
description.en = "A system monitoring tool"
description.fr = "Un outil de monitoring système"
version = "3.15.0~ynh6"
version = "3.15.0~ynh7"
maintainers = ["Josué Tille"]