Hi Alex,
Thanks.
I am completely new to erlang. When googling how to run an erlang program, I
came across
http://www.erlang.org/documentation/doc-5.3/doc/getting_started/getting_started.html
. That's how I got started.
To run the script using escript, based on
http://www.erlang.org/doc/man/escr
Hi Kathleen,
If you’d like to run riak_nagios from the erl command line, you’ll need to
compile everything in src and include it in the path along with the getopt
library.
You can compile everything with a simple call to make, and then include it in
the path with "erl -pa deps/*/ebin ebin”.
Thanks Hector.
Here is how I executed the script.
I downloaded and installed the erlang shell from
http://www.erlang.org/documentation/doc-5.3/doc/getting_started/getting_started.html
started erlang OTP:
root@MYRIAKNODE otp_src_R16B02]# erl -s toolbar
Erlang R16B02 (erts-5.10.3) [source] [64-
Hello Kathleen,
Have you executed the `make encrypt` target to build the `check_node`
binary? [0] From there, I copied it to the Riak node and invoked it
like this:
$ /usr/lib/riak/erts-5.9.1/bin/escript check_node --node
riak@127.0.0.1 riak_kv_up
OKAY: riak_kv is running on riak@127.0.0.1
I use
Also, when running
https://github.com/basho/riak_nagios/blob/master/src/check_node.erl
I ran into the error:
** exception error: undefined function getopt:parse/2
in function check_node:main/2 (check_node.erl, line 15)
--
View this message in context:
http://riak-users.197444.n3.nabb