Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

check_tomcat.py

Current Version
2.1
Last Release Date
2014-10-14
Compatible With
  • Nagios 3.x
  • Nagios 4.x
License
GPL
Hits
28252
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
Check tomcat servers:
-Status
-Memory
-Threads
-Applications status

Proyect page:
https://github.com/dduenasd/check_tomcat.py
check_tomcat.py
===============
Check tomcat server plugin for nagios

Author: Daniel Dueñas Domingo (dduenasd@gmail.com)


Version 2.0

Description
===========
This plugin uses the tomcat manager webapp, this app usually is located in the URL:
http://tomcat-host-name:xxxx/manager
which "tomcat-host-name" is the dns name or ip of the tomcat server and "xxxx" is the port number of the tomcat service (the tomcat port is 8080 by default)
This plugin works in tomcat6 and tomcat7 versions, i don't know if works in previous versions.
This plugin can monitorize this items:
1- tomcat server status
2- tomcat server memory
3- tomcat server thread connectors
4- application status on tomcat server

This plugin uses the nagios plugin python template in
https://github.com/dduenasd/nagios_plugin_template_python


Requirements
============
- python 2
Python must be installed in nagios server.
I use python 2.7, python 3 is not tested for this plugin.
- Tomcat Manager Webapp
The tomcat server for monitorize must be installed the manager web app
The documentation of the manager of tomcat:
- Tomcat 6 -> [Manager_Howto_Tomcat6](http://tomcat.apache.org/tomcat-6.0-doc/manager-howto.html)
- Tomcat 7 -> [Manager_Howto_Tomcat7](http://tomcat.apache.org/tomcat-7.0-doc/manager-howto.html)


Installation
============
Copy check_tomcat.py file to a plugins nagios directory, usually in this path:
/usr/local/nagios/libexec
Reviews (2)
bypmunoz, May 20, 2016
Hello

The plugins works great in tomcat 7, but have migrated to tomcat 8 and stopped working.

Could I indicate to be changed in the code to be compatible with Tomcat 8?

Thank you very much for your time and disposition.

#############

Hola

El plugins funciona excelente en tomcat 7, pero he migrado a tomcat 8 y ha dejado de funcionar.

¿Me podría indicar que se debe modificar en el código para que sea compatible con Tomcat 8?

Muchas gracias por tu tiempo y disposición.
bymohit.badhe, July 1, 2015
Every hit to manager application for status increases number of sessions by 3. Why these sessions are not cleared? How to clear these sessions?