I have been using the appdynamics java and standalone agent with no issues in our environment, but now that we are attempting to monitor our HA Proxy servers I am running into issues. I installed the HA Proxy Monitor from under monitor folder of the standalone agent:
However it fails to load the HA Proxy Monitor due to a missing library file:
[Agent-Monitor-Scheduler-2] 28 Apr 2015 16:54:47,868 INFO PeriodicTaskRunner - Periodic Task - setup metric feed for [HAProxy Monitor Run Task]
[Agent-Monitor-Scheduler-2] 28 Apr 2015 16:54:47,869 INFO HAProxyMonitor - Starting the HAProxy Monitoring Task
[Agent-Monitor-Scheduler-2] 28 Apr 2015 16:54:48,220 ERROR PeriodicTaskRunner - Error creating environment task
java.lang.NoClassDefFoundError: org/apache/commons/httpclient/HttpConnectionManage
at com.appdynamics.extensions.haproxy.HAProxyMonitor.
I checked the jar that is associated with the monitor and don't actually see http client under there. I am specifying the default value for the host as localhost with port 80. Any ideas why I am having this missing library issue? Thanks!
Hi,
Can you download the commons-httpclient-<version>.jar and add to below xml element after droping the jar in same proxy monttor jar locaiton and see how it goes with restart, we see this class somehow missing in the lib, Hope that information helps
<classpath>haproxy-monitoring-extension.jar</classpath>
Thanks for the reply. I was able to get it working after I contacted AppDynamics support and they provided me with a new AppDynamics jar that included the missing files.