Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_tomcatSessions
1.2
2014-04-29
- Nagios 3.x
- Nagios 4.x
148160
---
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)
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)
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 :).
Change /text/list to /html/list
7)
NUMSESS_PATH="manager/html/list"
hope this helps someone :).
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.
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.