mirror of
https://github.com/valitydev/gentoo-overlay.git
synced 2024-11-06 09:55:21 +00:00
Add net-analyzer/riak_nagios/riak_nagios-9998-r1.ebuild (#67)
This commit is contained in:
parent
46905008e8
commit
de77b53026
12
net-analyzer/riak_nagios/files/check_node_wrapper
Executable file
12
net-analyzer/riak_nagios/files/check_node_wrapper
Executable 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
|
@ -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
|
||||
}
|
Loading…
Reference in New Issue
Block a user