LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-30-2014, 10:11 PM   #1
manjunathrgm
LQ Newbie
 
Registered: Feb 2012
Posts: 4

Rep: Reputation: Disabled
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.
 
Old 07-01-2014, 01:21 AM   #2
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
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
 
Old 07-01-2014, 01:29 AM   #3
manjunathrgm
LQ Newbie
 
Registered: Feb 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
I followed same link , but getting the problem in getting session id of the tomcat for which we have -s option.
 
Old 07-01-2014, 02:44 AM   #4
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
Did you try this
If session_name is omitted (default) then the total number of sessions is calculated
 
Old 07-01-2014, 08:03 AM   #5
manjunathrgm
LQ Newbie
 
Registered: Feb 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Unhappy

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.
Attached Files
File Type: txt check_tomcatSession.txt (4.0 KB, 134 views)
 
Old 07-01-2014, 10:42 PM   #6
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
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)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Monitoring VMware withe Nagios (Can't locate Nagios/Plugin/Functions.pm) wael.elmasry Linux - Software 9 06-02-2014 11:18 AM
Monitoring VMware withe Nagios (Can't locate Nagios/Plugin/Functions.pm) wael.elmasry Linux - Software 1 05-19-2014 05:50 AM
Tomcat application monitoring tikit Linux - Software 2 01-27-2011 02:43 AM
Session replication using apache+mod_jk+tomcat(5.5.28-veriosn of tomcat) sreejithp Linux - Server 1 12-24-2010 06:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration