diff options
Diffstat (limited to 'packaging/runtime-check.sh')
-rwxr-xr-x | packaging/runtime-check.sh | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/packaging/runtime-check.sh b/packaging/runtime-check.sh index de6e22071..d297a6e22 100755 --- a/packaging/runtime-check.sh +++ b/packaging/runtime-check.sh @@ -48,3 +48,43 @@ curl -sfS http://127.0.0.1:19999/index.html || exit 1 curl -sfS http://127.0.0.1:19999/v0/index.html || exit 1 curl -sfS http://127.0.0.1:19999/v1/index.html || exit 1 curl -sfS http://127.0.0.1:19999/v2/index.html || exit 1 + +NETDATA_LIBEXEC_PARTS=" +plugins.d/apps.plugin +plugins.d/cgroup-network +plugins.d/charts.d.plugin +plugins.d/cups.plugin +plugins.d/debugfs.plugin +plugins.d/ebpf.plugin +plugins.d/freeipmi.plugin +plugins.d/go.d.plugin +plugins.d/ioping.plugin +plugins.d/local-listeners +plugins.d/logs-management.plugin +plugins.d/ndsudo +plugins.d/network-viewer.plugin +plugins.d/nfacct.plugin +plugins.d/perf.plugin +plugins.d/python.d.plugin +plugins.d/slabinfo.plugin +plugins.d/xenstat.plugin +" + +if [ -d "${NETDATA_LIBEXEC_PREFIX}" ]; then + success=1 + for part in ${NETDATA_LIBEXEC_PARTS}; do + # shellcheck disable=SC2254 + if echo "${part}" | grep -qE "${NETDATA_SKIP_LIBEXEC_PARTS}"; then + continue + fi + + if [ ! -x "${NETDATA_LIBEXEC_PREFIX}/${part}" ]; then + success=0 + echo "!!! ${NETDATA_LIBEXEC_PREFIX}/${part} is missing" + fi + done + + if [ "${success}" -eq 0 ]; then + exit 1 + fi +fi |