In erlang / OTP, how to run appmon to monitor an existing node?

I have a working erlang application running 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 will not appear even if the same cookie is used. The same thing happens with webtool: start ()

Is anyone

+5
source share
1 answer

Found.

As always with erlang, so that two nodes talk 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 you leave :)

+5
source

All Articles