tietang / javamelody

Automatically exported from code.google.com/p/javamelody
0 stars 1 forks source link

Monitoring JavaMelody on _unknown: Report IP Address Instead #362

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I am receiving additional emailed JavaMelody reports that are entitled:

Monitoring JavaMelody on _unknown - 1 day
Statistics of JavaMelody monitoring taken at 11/28/13 12:00 AM on _unknown 
(Atlassian JIRA Web Application)

Improvement:  When JavaMelody is unable to resolve a hostname it should use the 
IP address instead of "_unknown".

As things stand, I am unable to tell what server is sending these reports.

1) The "from" email address is for my normal JIRA server.

2) Thanks to a having a rubbish webmail interface I cannot inspect SMTP headers 
& get an IP address from there.

I am pretty sure I know what happened... someone went and cloned the VM on 
which JIRA (and its JavaMelody) was installed - and they never stopped JIRA.

If I knew the IP address of this clone I could find out who owns it.

Original issue reported on code.google.com by msymo...@gmail.com on 28 Nov 2013 at 12:58

GoogleCodeExporter commented 9 years ago
Unfortunately, it seems that the IP address can't be determined (from Java) for 
that host.
In fact, hostName is found by "InetAddress.getLocalHost().getHostName()"
and ip address is found by "InetAddress.getLocalHost().getHostAddress()".
And in both case, InetAddress.getLocalHost() throws an UnknownHostException "to 
indicate that the IP address of a host could not be determined". You can see
http://docs.oracle.com/javase/6/docs/api/java/net/UnknownHostException.html

In this case, javamelody displays "unknown" as you have seen. And I can't 
display anything else.
Can we close this issue as invalid?

Original comment by evernat@free.fr on 29 Nov 2013 at 4:21

GoogleCodeExporter commented 9 years ago
Sure, close the issue.  Thanks for the response.

Original comment by msymo...@gmail.com on 30 Nov 2013 at 10:45

GoogleCodeExporter commented 9 years ago
ok

Original comment by evernat@free.fr on 30 Nov 2013 at 10:53