Add net-analyzer/riak_nagios/riak_nagios-9998-r1.ebuild (#67)

This commit is contained in:
niku64 2020-04-17 15:11:02 +03:00 committed by GitHub
parent 46905008e8
commit de77b53026
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 1 deletions

View File

@ -0,0 +1,12 @@
#!/bin/sh
RIAK_COOKIE="$(sudo grep setcookie /etc/riak/vm.args | awk '{ print $2; }')"
command="${1}"
shift
args="${*}"
output="$(${command} --cookie ${RIAK_COOKIE} ${args})"
retcode=$?
echo $output | sed "s|${RIAK_COOKIE}|MASKED|g"
exit $retcode

View File

@ -27,6 +27,6 @@ src_compile() {
src_install() {
exeinto "/usr/$(get_libdir)/nagios/plugins/riak"
doexe check_node bin/*
doexe check_node bin/* "${FILESDIR}/check_node_wrapper"
dodoc README.md
}