summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rabbit_nodes.erl19
1 files changed, 12 insertions, 7 deletions
diff --git a/src/rabbit_nodes.erl b/src/rabbit_nodes.erl
index dfec8ec579..3150cc017c 100644
--- a/src/rabbit_nodes.erl
+++ b/src/rabbit_nodes.erl
@@ -75,13 +75,18 @@ current_node_details() ->
diagnostics_node(Node) ->
{Name, Host} = parts(Node),
- case names(Host) of
- {error, EpmdReason} ->
- {"- unable to connect to epmd on ~s: ~s",
- [Host, rabbit_misc:format_inet_error(EpmdReason)]};
- {ok, NamePorts} ->
- [{"~s:", [Node]} | diagnostics_node0(Name, Host, NamePorts)]
- end.
+ [{"~s:", [Node]} |
+ case names(Host) of
+ {error, Reason} ->
+ EpmdPort = case os:getenv("ERL_EPMD_PORT") of
+ false -> "4369";
+ P -> P
+ end,
+ [{" * unable to connect to epmd (port ~s) on ~s: ~s~n",
+ [EpmdPort, Host, rabbit_misc:format_inet_error(Reason)]}];
+ {ok, NamePorts} ->
+ diagnostics_node0(Name, Host, NamePorts)
+ end].
diagnostics_node0(Name, Host, NamePorts) ->
case [{N, P} || {N, P} <- NamePorts, N =:= Name] of