SlideShare a Scribd company logo
1 of 6
Download to read offline
Monitoring
Apache Tomcat
Page 1
Monitoring Apache Tomcat
OpenOffice/PDF Version
1º Edition , 9 May 2011
© Artica Soluciones Tecnológicas 2011
© Tomás Palacios Bote 2011
Page 2
1 MONITORING APACHE TOMCAT
1.1. Monitorización mediante plugins y módulos
Once we have installed and configured both Pandora and Tomcat servers, we're going to explain
how to obtain info about the server status.
There are different ways to achieve this goal, from plugin agents for XML parsing to SNMP and
JMX monitoring:
1.1.1. Plugin Agent (local method)
Let's suppose we have installed Pandora and Tomcat servers on different machines, with all the
monitoring systems installed and configured. (Pandora Agent, JMX with jconsole)
We need a script to gather the values we want to monitor from the XML file which contains the
Tomcat Server Status.
We've used an Apache Tomcat Turnkey where we can find that file in the following location:
http://<Tomcat-IP-Address>/manager/status?XML=true
Page 3
This script is going to store this file in a local temporal file and parse these values in a Pandora-
compatible XML format, to create modules dynamically.
The script is the following:
pandora_tomcat.pl
Once we have located the script and the values we want to monitor, include this file in
pandora_agent.conf as a plugin agent. This plugin will create a module for each value, visible in
the Pandora server web interface.
By adding new connectors in the Tomcat server, this program will respond by adding new modules
dynamically with new parsed values for each new connector.
A Java connector is a programming interface (API) that provides an interface between a Java
program and a legacy application such as CICS and R/3. Java Connectors, which are part of the
J2EE platform, make legacy applications look like an Enterprise JavaBean (EJB) to the Java
program, making them compatible.
This way, each module will be identified by the connector name plus the data name it gathers.
/etc/pandora/pandora_agent.conf
module_plugin <plugin-path>
module_plugin <plugin-address> --user=username –password=userpass http://<TomcatServer-IP-
Address>/manager/status?XML=true <plugin-name>
Page 4
1.1.2. SNMP Monitoring
You can use one of the multiple SNMP-JMX adaptors in the web to monitor Apache Tomcat.
These are the most important:
– Westhawk SNMP
– Sun JDMK
Each of them allows us to convert JMX notifications into SNMP Traps and extract information
about the server status.
It would be just a matter of introducing the OIDs of the generated MIBs by the adaptor with its
value and data type in the Pandora server and we could start monitoring it.
Another way to monitor Tomcat and other Java servers is JMX.
Page 5
1.1.3. JMX Monitoring
JMX (Java Management Extensions) provides the tools to implement distributed, modular, dynamic
and web based solutions to manage and monitor, devices, applications and network-driven
services, specially designed for Java.
JMX uses an HTTP-adaptor to show all the info it manages via web.
We can take benefit of the HTTP-adaptor data extraction by parsing this data in a Pandora-
compatible XML format. When Pandora processes this XML, it will create modules for each data.
However, it's better to use the other two ways for Tomcat monitoring and leave this as an
alternative.
There's an easier way to monitor Tomcat server using JMX, if we use the twiddle command, a
JMX Client which gathers all kind of info about the server MBeans, into a <dataname>=<data>
format after its execution. We can gather information about the Mbeans attributes which contains
the connector and server status.
Page 6

More Related Content

What's hot

Apache Tomcat 8 Application Server
Apache Tomcat 8 Application ServerApache Tomcat 8 Application Server
Apache Tomcat 8 Application Server
mohamedmoharam
 
Apache Tomcat + Java EE = Apache TomEE
Apache Tomcat + Java EE = Apache TomEEApache Tomcat + Java EE = Apache TomEE
Apache Tomcat + Java EE = Apache TomEE
Jacek Laskowski
 
ZK_Arch_notes_20081121
ZK_Arch_notes_20081121ZK_Arch_notes_20081121
ZK_Arch_notes_20081121
WANGCHOU LU
 

What's hot (20)

Apache Tomcat 8 Application Server
Apache Tomcat 8 Application ServerApache Tomcat 8 Application Server
Apache Tomcat 8 Application Server
 
Tomcat configuration
Tomcat configurationTomcat configuration
Tomcat configuration
 
Introduction of Tomcat
Introduction of TomcatIntroduction of Tomcat
Introduction of Tomcat
 
Tomcat
TomcatTomcat
Tomcat
 
introduction to Tomcat Apache
introduction to Tomcat Apache introduction to Tomcat Apache
introduction to Tomcat Apache
 
Web container and Apache Tomcat
Web container and Apache TomcatWeb container and Apache Tomcat
Web container and Apache Tomcat
 
Tomcat server
 Tomcat server Tomcat server
Tomcat server
 
Apache tomcat
Apache tomcatApache tomcat
Apache tomcat
 
Timer Interceptor in Mule part 2
Timer Interceptor in Mule part 2Timer Interceptor in Mule part 2
Timer Interceptor in Mule part 2
 
Apache Tomcat + Java EE = Apache TomEE
Apache Tomcat + Java EE = Apache TomEEApache Tomcat + Java EE = Apache TomEE
Apache Tomcat + Java EE = Apache TomEE
 
Apache lb
Apache lbApache lb
Apache lb
 
Enabling Security For ActiveMQ JMX Access
Enabling Security For ActiveMQ JMX AccessEnabling Security For ActiveMQ JMX Access
Enabling Security For ActiveMQ JMX Access
 
Using message enricher
Using message enricherUsing message enricher
Using message enricher
 
MuleSoft ESB Sending email using hmailserver
MuleSoft ESB Sending email using hmailserverMuleSoft ESB Sending email using hmailserver
MuleSoft ESB Sending email using hmailserver
 
Mule batch processing
Mule batch processingMule batch processing
Mule batch processing
 
ZK_Arch_notes_20081121
ZK_Arch_notes_20081121ZK_Arch_notes_20081121
ZK_Arch_notes_20081121
 
Mulesoft http connector
Mulesoft http connectorMulesoft http connector
Mulesoft http connector
 
บทที่3
บทที่3บทที่3
บทที่3
 
Splitting with mule part2
Splitting with mule part2Splitting with mule part2
Splitting with mule part2
 
Oracle virtual server-2-t0-3-upgrade
Oracle virtual server-2-t0-3-upgradeOracle virtual server-2-t0-3-upgrade
Oracle virtual server-2-t0-3-upgrade
 

Similar to Pandora FMS: Tomcat Monitoring

Integrating tomcat with apache
Integrating tomcat with apacheIntegrating tomcat with apache
Integrating tomcat with apache
govindraj8787
 
TelScale SNMP and JMX management - Mobicents Summit 2011
TelScale SNMP and JMX management - Mobicents Summit 2011TelScale SNMP and JMX management - Mobicents Summit 2011
TelScale SNMP and JMX management - Mobicents Summit 2011
telestax
 
Pandora fms
Pandora fmsPandora fms
Pandora fms
iLeLviNa
 

Similar to Pandora FMS: Tomcat Monitoring (20)

PandoraFMS: Free Monitoring System
PandoraFMS: Free Monitoring SystemPandoraFMS: Free Monitoring System
PandoraFMS: Free Monitoring System
 
Pandora FMS: Apache server monitoring
Pandora FMS: Apache server monitoring Pandora FMS: Apache server monitoring
Pandora FMS: Apache server monitoring
 
Tomcat Server
Tomcat ServerTomcat Server
Tomcat Server
 
Integrating tomcat with apache
Integrating tomcat with apacheIntegrating tomcat with apache
Integrating tomcat with apache
 
bjhbj
bjhbjbjhbj
bjhbj
 
Tomcat tutorail
Tomcat tutorailTomcat tutorail
Tomcat tutorail
 
BlazeDS
BlazeDS BlazeDS
BlazeDS
 
Opendaylight overview
Opendaylight overviewOpendaylight overview
Opendaylight overview
 
TelScale SNMP and JMX management - Mobicents Summit 2011
TelScale SNMP and JMX management - Mobicents Summit 2011TelScale SNMP and JMX management - Mobicents Summit 2011
TelScale SNMP and JMX management - Mobicents Summit 2011
 
Movimento Management Protocols
Movimento Management ProtocolsMovimento Management Protocols
Movimento Management Protocols
 
Apache
ApacheApache
Apache
 
Information on Tomcat in cPanel & WHM
Information on Tomcat in cPanel & WHMInformation on Tomcat in cPanel & WHM
Information on Tomcat in cPanel & WHM
 
Pandora FMS: Outlook Anywhere Plugin
Pandora FMS: Outlook Anywhere PluginPandora FMS: Outlook Anywhere Plugin
Pandora FMS: Outlook Anywhere Plugin
 
Android session-5-sajib
Android session-5-sajibAndroid session-5-sajib
Android session-5-sajib
 
Apache Stratos Hangout VI
Apache Stratos Hangout VIApache Stratos Hangout VI
Apache Stratos Hangout VI
 
Adobe Flex4
Adobe Flex4 Adobe Flex4
Adobe Flex4
 
Pandora fms
Pandora fmsPandora fms
Pandora fms
 
How to Configure the CA Workload Automation System Agent agentparm.txt File
How to Configure the CA Workload Automation System Agent agentparm.txt FileHow to Configure the CA Workload Automation System Agent agentparm.txt File
How to Configure the CA Workload Automation System Agent agentparm.txt File
 
Apache tomcat
Apache tomcatApache tomcat
Apache tomcat
 
Leveraging BlazeDS, Java, and Flex: Dynamic Data Transfer
Leveraging BlazeDS, Java, and Flex: Dynamic Data TransferLeveraging BlazeDS, Java, and Flex: Dynamic Data Transfer
Leveraging BlazeDS, Java, and Flex: Dynamic Data Transfer
 

More from Pandora FMS

More from Pandora FMS (20)

Pandora FMS: Plugin de Raven DB
Pandora FMS: Plugin de Raven DBPandora FMS: Plugin de Raven DB
Pandora FMS: Plugin de Raven DB
 
Pandora FMS: Raven DB Plugin
Pandora FMS: Raven DB PluginPandora FMS: Raven DB Plugin
Pandora FMS: Raven DB Plugin
 
Pandora FMS: Plugin de Apache Hbase
Pandora FMS: Plugin de Apache HbasePandora FMS: Plugin de Apache Hbase
Pandora FMS: Plugin de Apache Hbase
 
Pandora FMS: Cisco Remote inventory modules
Pandora FMS: Cisco Remote inventory modulesPandora FMS: Cisco Remote inventory modules
Pandora FMS: Cisco Remote inventory modules
 
Pandora FMS: Plugin de exchange de acceso de web
Pandora FMS: Plugin de exchange de acceso  de web Pandora FMS: Plugin de exchange de acceso  de web
Pandora FMS: Plugin de exchange de acceso de web
 
Pandora FMS: Exchange OWA Plugin
Pandora FMS: Exchange OWA PluginPandora FMS: Exchange OWA Plugin
Pandora FMS: Exchange OWA Plugin
 
Pandora FMS: Plugin de monitorización de Outlook Anywhere
Pandora FMS: Plugin de monitorización de Outlook AnywherePandora FMS: Plugin de monitorización de Outlook Anywhere
Pandora FMS: Plugin de monitorización de Outlook Anywhere
 
Pandora FMS: Plugin Enterprise de Exchange
Pandora FMS: Plugin Enterprise de ExchangePandora FMS: Plugin Enterprise de Exchange
Pandora FMS: Plugin Enterprise de Exchange
 
Pandora FMS: Exchange Enterprise plugin
Pandora FMS: Exchange Enterprise pluginPandora FMS: Exchange Enterprise plugin
Pandora FMS: Exchange Enterprise plugin
 
Pandora FMS: Plugin de monitorización de cliente de Exchage
Pandora FMS: Plugin de monitorización de cliente de ExchagePandora FMS: Plugin de monitorización de cliente de Exchage
Pandora FMS: Plugin de monitorización de cliente de Exchage
 
Pandora FMS: End to End Exchange Plugin
Pandora FMS: End to End Exchange PluginPandora FMS: End to End Exchange Plugin
Pandora FMS: End to End Exchange Plugin
 
Pandora FMS: Monitorización de Blackberry Exchange
Pandora FMS: Monitorización de Blackberry ExchangePandora FMS: Monitorización de Blackberry Exchange
Pandora FMS: Monitorización de Blackberry Exchange
 
Pandora FMS: Blackberry Exchange Monitoring
Pandora FMS: Blackberry Exchange MonitoringPandora FMS: Blackberry Exchange Monitoring
Pandora FMS: Blackberry Exchange Monitoring
 
Pandora FMS: Plugin de Exchange ActivSync
Pandora FMS: Plugin de Exchange ActivSyncPandora FMS: Plugin de Exchange ActivSync
Pandora FMS: Plugin de Exchange ActivSync
 
Pandora FMS: Exchange ActivSync Plugin
Pandora FMS: Exchange ActivSync PluginPandora FMS: Exchange ActivSync Plugin
Pandora FMS: Exchange ActivSync Plugin
 
Pandora FMS: Plugin Enterprise de VMware
Pandora FMS: Plugin Enterprise de VMwarePandora FMS: Plugin Enterprise de VMware
Pandora FMS: Plugin Enterprise de VMware
 
Pandora FMS: VMware Enterprise Plugin
Pandora FMS: VMware Enterprise PluginPandora FMS: VMware Enterprise Plugin
Pandora FMS: VMware Enterprise Plugin
 
Pandora FMS: Plugin de monitorización de Hyper V
Pandora FMS: Plugin de monitorización de Hyper VPandora FMS: Plugin de monitorización de Hyper V
Pandora FMS: Plugin de monitorización de Hyper V
 
Pandora FMS: Hyper V Plugin
Pandora FMS: Hyper V PluginPandora FMS: Hyper V Plugin
Pandora FMS: Hyper V Plugin
 
Pandora FMS: Plugin de correo Imap
Pandora FMS: Plugin de correo ImapPandora FMS: Plugin de correo Imap
Pandora FMS: Plugin de correo Imap
 

Recently uploaded

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Recently uploaded (20)

Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 

Pandora FMS: Tomcat Monitoring

  • 2. Monitoring Apache Tomcat OpenOffice/PDF Version 1º Edition , 9 May 2011 © Artica Soluciones Tecnológicas 2011 © Tomás Palacios Bote 2011 Page 2
  • 3. 1 MONITORING APACHE TOMCAT 1.1. Monitorización mediante plugins y módulos Once we have installed and configured both Pandora and Tomcat servers, we're going to explain how to obtain info about the server status. There are different ways to achieve this goal, from plugin agents for XML parsing to SNMP and JMX monitoring: 1.1.1. Plugin Agent (local method) Let's suppose we have installed Pandora and Tomcat servers on different machines, with all the monitoring systems installed and configured. (Pandora Agent, JMX with jconsole) We need a script to gather the values we want to monitor from the XML file which contains the Tomcat Server Status. We've used an Apache Tomcat Turnkey where we can find that file in the following location: http://<Tomcat-IP-Address>/manager/status?XML=true Page 3
  • 4. This script is going to store this file in a local temporal file and parse these values in a Pandora- compatible XML format, to create modules dynamically. The script is the following: pandora_tomcat.pl Once we have located the script and the values we want to monitor, include this file in pandora_agent.conf as a plugin agent. This plugin will create a module for each value, visible in the Pandora server web interface. By adding new connectors in the Tomcat server, this program will respond by adding new modules dynamically with new parsed values for each new connector. A Java connector is a programming interface (API) that provides an interface between a Java program and a legacy application such as CICS and R/3. Java Connectors, which are part of the J2EE platform, make legacy applications look like an Enterprise JavaBean (EJB) to the Java program, making them compatible. This way, each module will be identified by the connector name plus the data name it gathers. /etc/pandora/pandora_agent.conf module_plugin <plugin-path> module_plugin <plugin-address> --user=username –password=userpass http://<TomcatServer-IP- Address>/manager/status?XML=true <plugin-name> Page 4
  • 5. 1.1.2. SNMP Monitoring You can use one of the multiple SNMP-JMX adaptors in the web to monitor Apache Tomcat. These are the most important: – Westhawk SNMP – Sun JDMK Each of them allows us to convert JMX notifications into SNMP Traps and extract information about the server status. It would be just a matter of introducing the OIDs of the generated MIBs by the adaptor with its value and data type in the Pandora server and we could start monitoring it. Another way to monitor Tomcat and other Java servers is JMX. Page 5
  • 6. 1.1.3. JMX Monitoring JMX (Java Management Extensions) provides the tools to implement distributed, modular, dynamic and web based solutions to manage and monitor, devices, applications and network-driven services, specially designed for Java. JMX uses an HTTP-adaptor to show all the info it manages via web. We can take benefit of the HTTP-adaptor data extraction by parsing this data in a Pandora- compatible XML format. When Pandora processes this XML, it will create modules for each data. However, it's better to use the other two ways for Tomcat monitoring and leave this as an alternative. There's an easier way to monitor Tomcat server using JMX, if we use the twiddle command, a JMX Client which gathers all kind of info about the server MBeans, into a <dataname>=<data> format after its execution. We can gather information about the Mbeans attributes which contains the connector and server status. Page 6