From d8865df989a877d17023052302ac9cb34ff3a4b5 Mon Sep 17 00:00:00 2001 From: Victor Seva Date: Wed, 29 Jul 2020 12:16:22 +0200 Subject: [PATCH] TT#87502 Add monitoring of sems-pbx process, take two * check sems depending on the config Change-Id: Ica27a4ee4899012dee5b8ebea1fc12323dc91451 --- templates/410_process-ngcp.yaml.tt2 | 5 ++++- templates/821_network-ports-ngcp.yaml.tt2 | 18 ++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/templates/410_process-ngcp.yaml.tt2 b/templates/410_process-ngcp.yaml.tt2 index c5bead2..f528032 100644 --- a/templates/410_process-ngcp.yaml.tt2 +++ b/templates/410_process-ngcp.yaml.tt2 @@ -69,7 +69,10 @@ process: running: {{if and [% is_proxy ? 1 : 0 %] .Vars.NODE_ACTIVE}} true {{else}} false {{end}} sems-b2b: - running: {{if and [% is_proxy ? 1 : 0 %] .Vars.NODE_ACTIVE}} true {{else}} false {{end}} + running: {{if and [% is_proxy && b2b.enable == "yes"? 1 : 0 %] .Vars.NODE_ACTIVE}} true {{else}} false {{end}} + + ngcp-sems: + running: {{if and [% is_proxy && sems.enable == "yes"? 1 : 0 %] .Vars.NODE_ACTIVE}} true {{else}} false {{end}} ngcp-witnessd: running: true diff --git a/templates/821_network-ports-ngcp.yaml.tt2 b/templates/821_network-ports-ngcp.yaml.tt2 index 2f5a236..ba45ae4 100644 --- a/templates/821_network-ports-ngcp.yaml.tt2 +++ b/templates/821_network-ports-ngcp.yaml.tt2 @@ -159,7 +159,24 @@ port: tcp:5582: listening: {{.Vars.NODE_ACTIVE}} ip: ["[% sip_int_ips.0 %]"] +[% IF sems.enable == "yes" -%] + # SEMS + tcp:8090: + listening: {{.Vars.NODE_ACTIVE}} + ip: ["[% sip_int_ips.0 %]"] + + # SEMS + udp:5040: + listening: {{.Vars.NODE_ACTIVE}} + ip: ["[% sip_int_ips.0 %]"] + + # SEMS + udp:5080: + listening: {{.Vars.NODE_ACTIVE}} + ip: ["[% sip_int_ips.0 %]"] +[% END -%] +[% IF b2b.enable == "yes" -%] # sems-pbx tcp:5088: listening: {{.Vars.NODE_ACTIVE}} @@ -180,6 +197,7 @@ port: listening: {{.Vars.NODE_ACTIVE}} ip: ["[% sip_int_ips.0 %]"] +[% END -%] # Asterisk tcp:5038: listening: {{.Vars.NODE_ACTIVE}}