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 Servermohamedmoharam
 
Tomcat configuration
Tomcat configurationTomcat configuration
Tomcat configurationDima Gomaa
 
Introduction of Tomcat
Introduction of TomcatIntroduction of Tomcat
Introduction of TomcatDebashis Nath
 
introduction to Tomcat Apache
introduction to Tomcat Apache introduction to Tomcat Apache
introduction to Tomcat Apache Pushpendra Tyagi
 
Web container and Apache Tomcat
Web container and Apache TomcatWeb container and Apache Tomcat
Web container and Apache TomcatAuwal Amshi
 
Apache Tomcat + Java EE = Apache TomEE
Apache Tomcat + Java EE = Apache TomEEApache Tomcat + Java EE = Apache TomEE
Apache Tomcat + Java EE = Apache TomEEJacek Laskowski
 
Apache lb
Apache lbApache lb
Apache lbKsd Che
 
Using message enricher
Using message enricherUsing message enricher
Using message enricherSon Nguyen
 
MuleSoft ESB Sending email using hmailserver
MuleSoft ESB Sending email using hmailserverMuleSoft ESB Sending email using hmailserver
MuleSoft ESB Sending email using hmailserverakashdprajapati
 
ZK_Arch_notes_20081121
ZK_Arch_notes_20081121ZK_Arch_notes_20081121
ZK_Arch_notes_20081121WANGCHOU LU
 
Mulesoft http connector
Mulesoft http connectorMulesoft http connector
Mulesoft http connectorkumar gaurav
 
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-upgradeRavi Kumar Lanke
 

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

PandoraFMS: Free Monitoring System
PandoraFMS: Free Monitoring SystemPandoraFMS: Free Monitoring System
PandoraFMS: Free Monitoring SystemEnrique Verdes
 
Pandora FMS: Apache server monitoring
Pandora FMS: Apache server monitoring Pandora FMS: Apache server monitoring
Pandora FMS: Apache server monitoring Pandora FMS
 
Integrating tomcat with apache
Integrating tomcat with apacheIntegrating tomcat with apache
Integrating tomcat with apachegovindraj8787
 
BlazeDS
BlazeDS BlazeDS
BlazeDS Priyank
 
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 2011telestax
 
Movimento Management Protocols
Movimento Management ProtocolsMovimento Management Protocols
Movimento Management ProtocolsLeo Dumov
 
Information on Tomcat in cPanel & WHM
Information on Tomcat in cPanel & WHMInformation on Tomcat in cPanel & WHM
Information on Tomcat in cPanel & WHMHTS Hosting
 
Pandora FMS: Outlook Anywhere Plugin
Pandora FMS: Outlook Anywhere PluginPandora FMS: Outlook Anywhere Plugin
Pandora FMS: Outlook Anywhere PluginPandora FMS
 
Apache Stratos Hangout VI
Apache Stratos Hangout VIApache Stratos Hangout VI
Apache Stratos Hangout VIpradeepfn
 
Pandora fms
Pandora fmsPandora fms
Pandora fmsiLeLviNa
 
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 FileCA Technologies
 
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 TransferJoseph Labrecque
 

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

Pandora FMS: Plugin de Raven DB
Pandora FMS: Plugin de Raven DBPandora FMS: Plugin de Raven DB
Pandora FMS: Plugin de Raven DBPandora FMS
 
Pandora FMS: Raven DB Plugin
Pandora FMS: Raven DB PluginPandora FMS: Raven DB Plugin
Pandora FMS: Raven DB PluginPandora FMS
 
Pandora FMS: Plugin de Apache Hbase
Pandora FMS: Plugin de Apache HbasePandora FMS: Plugin de Apache Hbase
Pandora FMS: Plugin de Apache HbasePandora FMS
 
Pandora FMS: Cisco Remote inventory modules
Pandora FMS: Cisco Remote inventory modulesPandora FMS: Cisco Remote inventory modules
Pandora FMS: Cisco Remote inventory modulesPandora FMS
 
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
 
Pandora FMS: Exchange OWA Plugin
Pandora FMS: Exchange OWA PluginPandora FMS: Exchange OWA Plugin
Pandora FMS: Exchange OWA PluginPandora FMS
 
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 AnywherePandora FMS
 
Pandora FMS: Plugin Enterprise de Exchange
Pandora FMS: Plugin Enterprise de ExchangePandora FMS: Plugin Enterprise de Exchange
Pandora FMS: Plugin Enterprise de ExchangePandora FMS
 
Pandora FMS: Exchange Enterprise plugin
Pandora FMS: Exchange Enterprise pluginPandora FMS: Exchange Enterprise plugin
Pandora FMS: Exchange Enterprise pluginPandora FMS
 
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 ExchagePandora FMS
 
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 PluginPandora FMS
 
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 ExchangePandora FMS
 
Pandora FMS: Blackberry Exchange Monitoring
Pandora FMS: Blackberry Exchange MonitoringPandora FMS: Blackberry Exchange Monitoring
Pandora FMS: Blackberry Exchange MonitoringPandora FMS
 
Pandora FMS: Plugin de Exchange ActivSync
Pandora FMS: Plugin de Exchange ActivSyncPandora FMS: Plugin de Exchange ActivSync
Pandora FMS: Plugin de Exchange ActivSyncPandora FMS
 
Pandora FMS: Exchange ActivSync Plugin
Pandora FMS: Exchange ActivSync PluginPandora FMS: Exchange ActivSync Plugin
Pandora FMS: Exchange ActivSync PluginPandora FMS
 
Pandora FMS: Plugin Enterprise de VMware
Pandora FMS: Plugin Enterprise de VMwarePandora FMS: Plugin Enterprise de VMware
Pandora FMS: Plugin Enterprise de VMwarePandora FMS
 
Pandora FMS: VMware Enterprise Plugin
Pandora FMS: VMware Enterprise PluginPandora FMS: VMware Enterprise Plugin
Pandora FMS: VMware Enterprise PluginPandora FMS
 
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 VPandora FMS
 
Pandora FMS: Hyper V Plugin
Pandora FMS: Hyper V PluginPandora FMS: Hyper V Plugin
Pandora FMS: Hyper V PluginPandora FMS
 
Pandora FMS: Plugin de correo Imap
Pandora FMS: Plugin de correo ImapPandora FMS: Plugin de correo Imap
Pandora FMS: Plugin de correo ImapPandora 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

Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsNathaniel Shimoni
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rick Flair
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Strongerpanagenda
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesThousandEyes
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityIES VE
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Mark Goldstein
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch TuesdayIvanti
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality AssuranceInflectra
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsRavi Sanghani
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationKnoldus Inc.
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfIngrid Airi González
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 

Recently uploaded (20)

Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a reality
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch Tuesday
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and Insights
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog Presentation
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdf
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 

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