fix correct host name jmx
 support fedora