|
Key
This line was removed.
This word was removed. This word was added.
This line was added.
|
Changes (31)
View Page History{include:0 CDK SE Business Monitoring Flow Tracing Propagation 5.8.0}
h1. Monitoring the Petals SE ASE at ActiveMQ level
h1. Monitoring the component
{tip}In this version of the Petals ASE, the monitoring is based mainly on the ActiveMQ monitoring.{tip}
The technical monitoring of the component takes place at two levels:
* the component internals,
* and the ActiveMQ level
* the component internals,
* and the ActiveMQ level
h2. Monitoring of the component internals
h3. Using metrics
Several probes providing metrics are included in the component, and are available through the JMX MBean '{{org.ow2.petals:type=custom,name=monitoring_*<component-id>*}}', where {{*<component-id>*}} is the unique JBI identifier of the component.
h4. Common metrics
{include:0 CDK Component Monitoring Metrics 5.8.0}
h4. Dedicated metrics
No dedicated metric is available.
h3. Receiving alerts
Several alerts are notified by the component through notification of the JMX MBean '{{org.ow2.petals:type=custom,name=monitoring_*<component-id>*}}', where {{*<component-id>*}} is the unique JBI identifier of the component.
{tip}To integrate these alerts with Nagios, see [petalsesbsnapshot:Receiving Petals ESB defects in Nagios].{tip}
h4. Common alerts
{include:0 CDK Component Monitoring Alerts 5.6.0}
h4. Dedicated alerts
No dedicated alert is available.
h2. Monitoring at ActiveMQ level
{tip}In this version of the Petals ASE, the monitoring is based mainly on the ActiveMQ monitoring metrics.{tip}
h3. Using metrics
Several probes providing metrics are included in the component, and are available through the JMX MBean '{{org.ow2.petals:type=custom,name=monitoring_*<component-id>*}}', where {{*<component-id>*}} is the unique JBI identifier of the component.
h4. Common metrics
{include:0 CDK Component Monitoring Metrics 5.8.0}
h4. Dedicated metrics
No dedicated metric is available.
h3. Receiving alerts
Several alerts are notified by the component through notification of the JMX MBean '{{org.ow2.petals:type=custom,name=monitoring_*<component-id>*}}', where {{*<component-id>*}} is the unique JBI identifier of the component.
{tip}To integrate these alerts with Nagios, see [petalsesbsnapshot:Receiving Petals ESB defects in Nagios].{tip}
h4. Common alerts
{include:0 CDK Component Monitoring Alerts 5.6.0}
h4. Dedicated alerts
No dedicated alert is available.
h2. Monitoring at ActiveMQ level
{tip}In this version of the Petals ASE, the monitoring is based mainly on the ActiveMQ monitoring metrics.{tip}
The following indicators are interesting:
* number of requests processed with fault in the persistence area: a fast increase of this value should show:
* number of requests processed with fault in the persistence area: a fast increase of this value should show:
{section}
h23. Monitoring with basic tools
{tip}The command-lines and configuration files mentionned in following sub-chapters are available on Ubuntu 11.10{tip}
h34. JVisualVM
As ActiveMQ is provided with a JMX API, it is very easy to connect the JVisualVM to the ActiveMQ's JVM. See [http://activemq.apache.org/jmx.html].
{info}Don't forget to install into JVisualVM its plugin *VisualVM-MBeans* previously.{info}
h34. Command line tools of ActiveMQ
ActiveMQ is provided with a command-line tools to get statistics: {{activemq-admin}}
{code}activemq-admin query --objname Type=Queue,Destination=testQueue --view QueueSize | grep QueueSize{code}
h23. Monitoring with Nagios
Several options are available to monitor ActiveMQ using Naggios:
* Integrating ActiveMQ with Naggios, using ActiveMQ's JMX API: {color:#ff0000}{*}TODO{*}{color}
h34. Monitoring with ActiveMQ's JMX API
{warning}In progress{warning}
First and foremost, you must have an ActiveMQ instance correctly configured about JMX. You must be able to use JVisualVM with ActiveMQ remotely.
h45. 'check_jmx' installation
First, install the Nagios plugin 'check_jmx' (http://exchange.nagios.org/directory/Plugins/Java-Applications-and-Servers/check_jmx/details).
{code}
h45. ActiveMQ host template
A best practice to an ActiveMQ nodes is to create a template 'ActiveMQ host' that inherites from the 'JVM host'.
{code}
h45. Defining your ActiveMQ host
For the ActiveMQ node of your Petals ESB topology, create an instance of the template 'activemq-host'.
{code}
h45. Adding your ActiveMQ host to the Petals ESB host group
According to our environment defined above, update the file 'petals-esb-hostgroup.cfg' in the directory '/etc/nagios3/conf.d' to add the member 'activemq-node':
{code}
h45. ActiveMQ host services
According to our environment defined above, create the file 'activemq-services.cfg' in the directory '/etc/nagios3/conf.d' with the following content:
{code}
h23. Monitoring with Cacti
{tip}Solution based on an [article of R.I.Pienaar|http://www.devco.net/archives/2010/07/25/monitoring_activemq.php]{tip}
h23. Monitoring with Munin
A plugin ActiveMQ for Munin exists: [http://munin-activemq.sourceforge.net]. It is very easy to install it on a Debian-based system using the Debian package. Don't forget to install Munin previously.
The downloaded package can be installed with the followinf command: {code}sudo dpkg -i munin-java-activemq-plugins_0.0.4_i386.deb{code}
h34. Pre-requisites
The plugin ActiveMQ for Munin requires a remote JMX connection to the ActiveMQ server, so you needs to configure your ActiveMQ to enable the JMX connector:
</beans>{code}
h34. Configuration
Edit the file {{/etc/munin/plugin-conf.d/activemq\_}} to add the queues to monitor in parameter {{env.DESTINATIONS}} of the section ?{{activemq\*}}. :
{code}
h34. Integrating Munin with Naggios using Naggios active checks
{tip}This chapter is based on information available [here|http://exchange.nagios.org/directory/Plugins/Uncategorized/Operating-Systems/Linux/check_munin_rrd/details]{tip}
h45. Installation of the Nagios plugin for Munin
On your Nagios host:
# Check that the owner file and permissions are the same as other ones (root, and 755). Fix them if needed.
h45. Nagios commands definition to interact with a Munin agent
A specific Nagios command to interact with Munin agent must be defined on your Nagios host:
{code}
h45. Nagios template service to interact with a Munin agent
A specific template service to interact with Munin agent must be defined on your Nagios host:
{code}
h45. Define ActiveMQ check as service of a Petals node
{tip}See [petalsesbsnapshot:Monitoring Petals ESB with Nagios] to configure Nagios to monitor Petals ESB{tip}
{code}
h34. Screenshots
h45. Nagios screenshots
!nagios.jpg|align=center!
h45. Munin screenshots
h56. Queue size sample
!munin-activemq-queuesize.jpg|align=center!
h56. Traffic sample
!munin-activemq-traffic.jpg|align=center!
h45. Nagios screenshots
h1. Monitoring the component internals
h2. Using metrics
Several probes providing metrics are included in the component, and are available through the JMX MBean '{{org.ow2.petals:type=custom,name=monitoring_*<component-id>*}}', where {{*<component-id>*}} is the unique JBI identifier of the component.
h3. Common metrics
{include:0 CDK Component Monitoring Metrics 5.8.0}
h3. Dedicated metrics
No dedicated metric is available.
h2. Receiving alerts
Several alerts are notified by the component through notification of the JMX MBean '{{org.ow2.petals:type=custom,name=monitoring_*<component-id>*}}', where {{*<component-id>*}} is the unique JBI identifier of the component.
{tip}To integrate these alerts with Nagios, see [petalsesbsnapshot:Receiving Petals ESB defects in Nagios].{tip}
h3. Common alerts
{include:0 CDK Component Monitoring Alerts 5.6.0}
h3. Dedicated alerts
No dedicated alert is available.