[% hostname = ngcp.get_hostname(); is_proxy = ngcp.has_role(hostname, 'proxy'); is_lb = ngcp.has_role(hostname, 'lb'); is_mgmt = ngcp.has_role(hostname, 'mgmt'); is_db = ngcp.has_role(hostname, 'db'); is_rtp = ngcp.has_role(hostname, 'rtp'); is_li_dist = ngcp.has_role(hostname, 'li_dist'); -%] command: "pgrep -c -f 'lua5\\.. /usr/bin/prosody'": {{if and [% is_proxy && prosody.enable == 'yes' ? 1 : 0 %] .Vars.NODE_ACTIVE}} exit-status: 0 stdout: - "1" {{else}} exit-status: 1 stdout: [] {{end}} stderr: [] "pgrep -c -f '[p]erl-fcgi-pm \\[NGCP::Panel\\]'": [% IF is_mgmt && www_admin.enable == 'yes' -%] exit-status: 0 stdout: - "1" [% ELSE -%] exit-status: 1 stdout: [] [% END -%] stderr: [] "pgrep -n -f '[k]amailio.*kamailio.proxy.pid'": {{if and [% is_proxy && kamailio.proxy.start == "yes" ? 1 : 0 %] .Vars.NODE_ACTIVE}} exit-status: 0 stdout: - "/[0-9]+/" {{else}} exit-status: 1 stdout: [] {{end}} stderr: [] "pgrep -n -f '[k]amailio.*kamailio.lb.pid'": {{if and [% is_lb && kamailio.lb.start == "yes" ? 1 : 0 %] .Vars.NODE_ACTIVE}} exit-status: 0 stdout: - "/[0-9]+/" {{else}} exit-status: 1 stdout: [] {{end}} stderr: [] process: asterisk: running: {{if and [% is_proxy ? 1 : 0 %] .Vars.NODE_ACTIVE}} true {{else}} false {{end}} influxd: running: [% monitoring.backend == 'influxdb' || monitoring.influxdb_migrated == 'no' ? 'true' : 'false' %] prometheus: running: [% monitoring.backend == 'prometheus' && monitoring.prometheus_server == 'prometheus' ? 'true' : 'false' %] # We have to use a truncated process name because that's the COMM limit # on Linux (15 characters). Real name: prometheus-mysqld-exporter. prometheus-mysq: running: [% monitoring.backend == 'prometheus' ? 'true' : 'false' %] # We have to use a truncated process name because that's the COMM limit # on Linux (15 characters). Real name: prometheus-nginx-exporter. prometheus-ngin: running: [% monitoring.backend == 'prometheus' && (is_mgmt || is_lb || is_li_dist) && nginx.enable ? 'true' : 'false' %] # We have to use a truncated process name because that's the COMM limit # on Linux (15 characters). Real name: prometheus-node-exporter. prometheus-node: running: [% monitoring.backend == 'prometheus' ? 'true' : 'false' %] # We have to use a truncated process name because that's the COMM limit # on Linux (15 characters). Real name: prometheus-process-exporter. prometheus-proc: running: [% monitoring.backend == 'prometheus' ? 'true' : 'false' %] # We have to use a truncated process name because that's the COMM limit # on Linux (15 characters). Real name: prometheus-redis-exporter. prometheus-redi: running: [% monitoring.backend == 'prometheus' && (is_mgmt || is_lb || is_proxy || is_db || is_rtp) && redis.enable ? 'true' : 'false' %] kamailio: running: {{if and [% is_lb || is_proxy ? 1 : 0 %] .Vars.NODE_ACTIVE}} true {{else}} false {{end}} ngcp-mediator: running: {{if and [% is_proxy ? 1 : 0 %] .Vars.NODE_ACTIVE}} true {{else}} false {{end}} sems-b2b: 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 ngcp-rate-o-mat: running: {{if and [% is_proxy ? 1 : 0 %] .Vars.NODE_ACTIVE}} true {{else}} false {{end}} nginx: running: [% (is_mgmt || is_lb || is_li_dist) && nginx.enable == 'yes' ? 'true' : 'false' %] perl-fcgi: running: [% is_mgmt ? 'true' : 'false' %] rtpengine: running: {{if and [% is_rtp ? 1 : 0 %] .Vars.NODE_ACTIVE}} true {{else}} false {{end}} # We have to use a truncated process name because that's the COMM limit # on Linux (15 characters). Real name: rtpengine-recording. rtpengine-recor: running: {{if and [% is_rtp && rtpproxy.recording.enable == "yes" ? 1 : 0 %] .Vars.NODE_ACTIVE}} true {{else}} false {{end}} telegraf: running: [% monitoring.backend == 'influxdb' ? 'true' : 'false' %] # We have to use a truncated process name because that's the COMM limit # on Linux (15 characters). Real name: victoria-metrics. victoria-metric: running: [% monitoring.backend == 'prometheus' && monitoring.prometheus_server == 'victoria-metrics' && is_mgmt ? 'true' : 'false' %]