You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
101 lines
3.1 KiB
101 lines
3.1 KiB
[%
|
|
hostname = ngcp.get_hostname();
|
|
|
|
is_proxy = ngcp.has_role(hostname, 'proxy');
|
|
is_lb = ngcp.has_role(hostname, 'lb');
|
|
is_rtp = ngcp.has_role(hostname, 'rtp');
|
|
-%]
|
|
|
|
process:
|
|
glusterfs:
|
|
running: true
|
|
|
|
# We have to use a truncated process name because that's the COMM limit
|
|
# on Linux (15 characters). Real name: ngcp-hb-watchdog.
|
|
ngcp-hb-watchdo:
|
|
running: [% ha.gcs == 'heartbeat-2' || ha.crm == 'heartbeat-2' && heartbeat.hb_watchdog.enable == 'yes' ? 'true' : 'false' %]
|
|
|
|
heartbeat:
|
|
running: [% ha.gcs == 'heartbeat-2' || ha.crm == 'heartbeat-2' ? 'true' : 'false' %]
|
|
|
|
corosync:
|
|
running: [% ha.gcs == 'corosync' ? 'true' : 'false' %]
|
|
|
|
pacemakerd:
|
|
running: [% ha.crm == 'pacemaker' ? 'true' : 'false' %]
|
|
|
|
pacemaker-based:
|
|
running: [% ha.crm == 'pacemaker' ? 'true' : 'false' %]
|
|
|
|
# We have to use a truncated process name because that's the COMM limit
|
|
# on Linux (15 characters). Real name: pacemaker-fenced.
|
|
pacemaker-fence:
|
|
running: [% ha.crm == 'pacemaker' ? 'true' : 'false' %]
|
|
|
|
pacemaker-execd:
|
|
running: [% ha.crm == 'pacemaker' ? 'true' : 'false' %]
|
|
|
|
pacemaker-attrd:
|
|
running: [% ha.crm == 'pacemaker' ? 'true' : 'false' %]
|
|
|
|
# We have to use a truncated process name because that's the COMM limit
|
|
# on Linux (15 characters). Real name: pacemaker-shedulerd.
|
|
pacemaker-sched:
|
|
running: [% ha.crm == 'pacemaker' ? 'true' : 'false' %]
|
|
|
|
# We have to use a truncated process name because that's the COMM limit
|
|
# on Linux (15 characters). Real name: pacemaker-controld.
|
|
pacemaker-contr:
|
|
running: [% ha.crm == 'pacemaker' ? 'true' : 'false' %]
|
|
|
|
influxdb-relay:
|
|
running: false
|
|
|
|
monit:
|
|
running: [% general.process_handler == 'monit' ? 'true' : 'false' %]
|
|
|
|
ngcp-licensed:
|
|
running: [% general.license_key != '' || general.anonymous_usage_statistics == 'yes' ? 'true' : 'false' %]
|
|
|
|
ngcp-faxserver:
|
|
running: {{if and [% is_proxy ? 1 : 0 %] .Vars.NODE_ACTIVE}} true {{else}} false {{end}}
|
|
|
|
ngcp-snmp-agent:
|
|
running: true
|
|
|
|
ngcp-voisniff:
|
|
running: {{if and [% (is_proxy || is_lb || is_rtp) && voisniff.daemon.start == 'yes' ? 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: prometheus-haproxy-exporter.
|
|
prometheus-hapr:
|
|
running: [% monitoring.backend == 'prometheus' && is_lb && haproxy.enable && general.ngcp_type == 'carrier' ? 'true' : 'false' %]
|
|
|
|
snmpd:
|
|
running: true
|
|
|
|
janus:
|
|
running: {{if and [% is_proxy && (janus.enable == 'yes' || (rtcengine.conference.enable == 'yes' && rtcengine.conference.type == 'janus')) ? 1 : 0 %] .Vars.NODE_ACTIVE}} true {{else}} false {{end}}
|
|
|
|
command:
|
|
"pgrep -c -n -f '[r]tcengine.js'":
|
|
{{if and [% is_proxy && rtcengine.enable == "yes" ? 1 : 0 %] .Vars.NODE_ACTIVE}}
|
|
exit-status: 0
|
|
stdout:
|
|
- "1"
|
|
{{else}}
|
|
exit-status: 1
|
|
stdout: []
|
|
{{end}}
|
|
stderr: []
|
|
|
|
"pgrep -c -n -f '[c]omx-fileshare.js'":
|
|
{{if and [% is_proxy && fileshare.enable == "yes" ? 1 : 0 %] .Vars.NODE_ACTIVE}}
|
|
exit-status: 0
|
|
stdout:
|
|
- "1"
|
|
{{else}}
|
|
exit-status: 1
|
|
stdout: []
|
|
{{end}}
|