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.
30 lines
591 B
30 lines
591 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;
|
|
-%]
|
|
[% PERL -%]
|
|
my $node_state = qx(ngcp-check-active -v);
|
|
chomp $node_state;
|
|
|
|
$stash->set(node_state => $node_state);
|
|
[% END -%]
|
|
|
|
command:
|
|
|
|
lsmod | grep -Eq "^sunrpc ":
|
|
exit-status: 0
|
|
stdout: []
|
|
stderr: []
|
|
[% IF is_proxy && node_state == 'active' && rtpproxy.enabled == "yes" -%]
|
|
|
|
lsmod | grep -c xt_RTPENGINE:
|
|
exit-status: 0
|
|
stdout:
|
|
- '/^2$/'
|
|
stderr: []
|
|
[% END -%] |