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_tomcatSessions

Rating
2 votes
Favoured:
1
Current Version
1.2
Last Release Date
2014-04-29
Compatible With
  • Nagios 3.x
  • Nagios 4.x
Owner
Hits
148160
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
This plugin checks the number of active sessions of a specific context or total sessions number on the server.
---

Prerequisites
Tomcat server should have management context (/manager/list or /manager/text/list) enabled.

nagios server runtime prerequisites: bash,basename,awk,wget

---

Usage: check_tomcatSessions [ -H hostname or IP address ] [ -P port ] [ -u username ] [ -p password ] [ -s session_name ] [ -w warning ] [ -c critical ] [ -V tomcat_version (6 for tomcat pre-7 or 7) ]

If session_name is omitted (default) then the total number of sessions is calculated

DEFAULTS
hostname=localhost
port=8080
username=Administrator
password=password
session_name=
warning=100
critical=400
tomcat_version=6

Changelog
1.1: added support fot Tomcat 7
1.2: fixed problems in checking software prerequisites - (Thanks Damian)
Reviews (2)
bythenail, September 2, 2015
0 of 1 people found this review helpful
Had to change a line in the script to get it to work with Tomcat 7.
Change /text/list to /html/list
7)
NUMSESS_PATH="manager/html/list"

hope this helps someone :).
bymtarkowski, July 12, 2012
0 of 1 people found this review helpful
Great plugin! FYI - if you are using Digest Authentication and have the latest version of Wget this plugin will work. This is the only plugin that works with Digest authentication.
Enhancement Request - if you could add a way to check for a string on a web page then it would be the best Nagios plugin for web site monitoring.