Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In erlang/OTP how do I start appmon to monitor an existing node?

Tags:

I have a running erlang application, launched with this command line

erl -boot start_sasl -config config/cfg_qa -detached -name peasy -cookie peasy -pa ./ebin -pa ./ebin/mochiweb -s peasy start

If I start a new node and run appmon:start(), the 'peasy' node won't show up, even if using the same cookie. The same happens with webtool:start()

Anyone?

like image 582
Matteo Caprari Avatar asked Jul 24 '09 18:07

Matteo Caprari


1 Answers

Found.

As always with erlang, to have two nodes speak to each other, you need to ping:

1> net_adm:ping(other_node_you_want_to_monitor).
pong
2> appmon:start().
{ok,<0.48.0>}

And off you go :)

like image 64
Matteo Caprari Avatar answered Oct 11 '22 11:10

Matteo Caprari