Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Commit

Permalink
Merge pull request #332 from maxime-beck/master
Browse files Browse the repository at this point in the history
JWS-834 - Apache plugin fails to retrieve mod_bmx metrics when listen is set to *:port
  • Loading branch information
burmanm committed Oct 24, 2017
2 parents 52f4e3f + fead536 commit d25ce3b
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -370,6 +370,10 @@ private DiscoveredResourceDetails discoverSingleProcess(
/* try mod_bmx VirtualHost and Location */
String bmxURL = findBMXURL(serverConfig);
if (bmxURL != null) {
String[] split_url = bmxURL.split(":");
if(split_url[1].equals("//*"))
bmxURL = "http://localhost:" + split_url[2];

pluginConfig.put(new PropertySimple(ApacheServerComponent.PLUGIN_CONFIG_PROP_BMX_URL, bmxURL));
}
}
Expand Down

0 comments on commit d25ce3b

Please sign in to comment.