search cancel

APM WebServer PowerPack Agent is not reporting metrics for Apache IBM_HTTP_SERVER Web Server with TLS enabled.


Article ID: 8846


Updated On:


CA Application Performance Management Agent (APM / Wily / Introscope) INTROSCOPE


APM WebServer PowerPack agent showing the following errors in APM agent log.

PM EDT [ERROR] [WebServerMonitor] Could not get metrics from server : https://<Web-Server-Hostname>:547 Connection refused
 at Method)
 at Source)
 at Source)
 at Source)
 at Source)
 at Source)
 at Source)
 at<init>(Unknown Source)
 at Source)
 at com.wily.webservermonitor.AuthSSLProtocolSocketFactory.createSocket(
 at com.wily.webservermonitor.AuthSSLProtocolSocketFactory.createSocket(
 at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(
 at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(
 at org.apache.commons.httpclient.HttpClient.executeMethod(
 at org.apache.commons.httpclient.HttpClient.executeMethod(
 at com.wily.webservermonitor.AWebServerMonitor$


The WebServerConfig.xml file is configured as follows:

<WebServer Type="Apache:IBM_HTTP_SERVER" Enabled="true" Protocol="TLS" ServerURL="https://<Web-Server-Hostname>:547" DisplayName="WebServer-IHS" RefreshFrequencyInSeconds="15" Mode="Permissive"/>   



Apache IBM_HTTP_SERVER Web Server when using TLS 1.1 and 1.2 protocols.APM WebServer PowerPack Agent Version 10.5.1.


The root cause is a firewall and an older JRE on the Operating System.



APM cannot remotely monitor the web server due to the configuration (with some type of firewall in place). This is causing the connection refused condition.
In this case APM must monitor WebServer with APM WebServer PowerPack Agent installed locally. 

There could potentially be another issue when Apache IBM_HTTP_SERVER Web Server is on an older version of RHEL - 5.X or earlier.
In this case, the default JRE may not support the TLS protocols. You would need to use a newer version of the JRE for APM WebServer PowerPack Agent.