Build and install the cxf-jmx sample applications
Before you begin
This sample is in <TalendRuntimePath>/examples/talend/tesb/cxf-jmx directory and consists of a number of parts:
Directory | Description |
---|---|
client/ | a sample client application that uses the CXF JAX-WS API to create a SOAP client and make several calls with it. |
common/ | code that is common for both the client and the server. |
features/ | example features for use in OSGi deployment. |
service/ | the CXF web service provider packaged as an OSGi bundle. |
war/ | A WAR archive containing code from common and service modules. This is for Servlet container use only, not used in OSGi deployment. |
Procedure
What to do next
Now we do the Nagios monitoring:
- Add the template configuration file to the existing nagios.cfg,
here are some examples, which depend on where your installation puts config
files: In /usr/local/nagios/etc/nagios.cfg add:
cfg_file=/usr/local/nagios/etc/objects/cxf_host.cfg
Or in /etc/nagios3/nagios.cfg add:cfg_file=/etc/nagios3/etc/objects/cxf_host.cfg
- Then, restart Nagios for the changes to take
effect.
# service nagios restart
Information noteNote: the name of this service may vary, depending on which package you used to install Nagios, so it may be called, for example, nagios3, instead of nagios. - Login to the Nagios Web Interface http://<nagios_host>/<nagios_server>/ for example: http://localhost/nagios/, http://192.168.1.10/nagios3/ or http://192.168.198.5/nagios/.There, you will find the status of metrics for cxf-jmx example.