LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Monitoring tomcat application session using nagios (https://www.linuxquestions.org/questions/linux-general-1/monitoring-tomcat-application-session-using-nagios-4175509705/)

manjunathrgm 06-30-2014 10:11 PM

Monitoring tomcat application session using nagios
 
Hi ,

can some one help me in setting up plugin which is called check_tomcatSession which is in /etc/nagios/nrpe.cfg from client side.This is to monitor tomcat session in client machine which is monitored by nagios server.

kirukan 07-01-2014 01:21 AM

As per my knowledge Nagios have better documentation go ahead and read it.
command[check_tomcatSession]=@libexecdir@/check_tomcatSession [ -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) ]

DEFAULTS
hostname=localhost
port=8080
username=Administrator
password=password
session_name=
warning=100
critical=400
tomcat_version=6
http://exchange.nagios.org/directory...ssions/details

manjunathrgm 07-01-2014 01:29 AM

I followed same link , but getting the problem in getting session id of the tomcat for which we have -s option.

kirukan 07-01-2014 02:44 AM

Did you try this
If session_name is omitted (default) then the total number of sessions is calculated

manjunathrgm 07-01-2014 08:03 AM

1 Attachment(s)
Hi ,
When I am using following command "/usr/lib64/nagios/plugins/check_tomcatSessions -s 10 -w 100 -c 400 -V 7", output is as follows

Tomcat sessions 10 UNKNOWN: | sessions=

check_tomcatSessions plugin contains code which you find in attachment .This is the plugin which I have downloaded from link
which you have suggested.

kirukan 07-01-2014 10:42 PM

what is the output without "-s" option.
OR
You may try the session_name going to this the following URL
http://ip_address: port/manager/list (tomcat v6)
http://ip_address: port/manager/text/list (tomcat v7)


All times are GMT -5. The time now is 05:23 PM.