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.
54 lines
971 B
54 lines
971 B
[%
|
|
PROCESS '/usr/lib/ngcp-ngcpcfg/get_hostname';
|
|
hostname = out;
|
|
|
|
argv.host = hostname;
|
|
argv.role = 'proxy';
|
|
PROCESS '/usr/lib/ngcp-ngcpcfg/has_role';
|
|
is_proxy = out;
|
|
|
|
argv.host = hostname;
|
|
argv.role = 'lb';
|
|
PROCESS '/usr/lib/ngcp-ngcpcfg/has_role';
|
|
is_lb = out;
|
|
|
|
argv.host = hostname;
|
|
argv.role = 'rtp';
|
|
PROCESS '/usr/lib/ngcp-ngcpcfg/has_role';
|
|
is_rtp = out;
|
|
-%]
|
|
[% PERL -%]
|
|
my $node_state = qx(ngcp-check-active -v);
|
|
chomp $node_state;
|
|
|
|
$stash->set(node_state => $node_state);
|
|
[% END -%]
|
|
|
|
process:
|
|
glusterfs:
|
|
running: true
|
|
|
|
hb_watchdog:
|
|
running: true
|
|
|
|
heartbeat:
|
|
running: true
|
|
|
|
influxdb-relay:
|
|
running: true
|
|
|
|
monit:
|
|
running: true
|
|
|
|
ngcp-faxserver:
|
|
running: [% is_proxy && node_state == 'active' ? 'true' : 'false' %]
|
|
|
|
ngcp-snmp-agent:
|
|
running: true
|
|
|
|
snmpd:
|
|
running: true
|
|
|
|
voisniff-ng:
|
|
running: [% (is_proxy || is_lb || is_rtp) && node_state == 'active' ? 'true' : 'false' %]
|