LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-22-2013, 11:50 AM   #1
sarah allali
LQ Newbie
 
Registered: Jan 2013
Location: Morocco
Distribution: Debian , ubunto
Posts: 15

Rep: Reputation: Disabled
Monitor tomcat remotely with nagios


Hi everyone.

I am using tomcat version 7.0.34 and nagios for monitoring services and harware resources. Can someone help me to monitor tomcat status remotely from nagios server? Is tomcat up or down.

So any suggestion how to integrate it with nagios?

Many thanks in advance.
 
Old 02-22-2013, 12:22 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,753

Rep: Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983
Quote:
Originally Posted by sarah allali View Post
Hi everyone.
I am using tomcat version 7.0.34 and nagios for monitoring services and harware resources. Can someone help me to monitor tomcat status remotely from nagios server? Is tomcat up or down.

So any suggestion how to integrate it with nagios?
Did you try looking on the Nagios website?? Google?? Putting in "how to monitor tomcat with nagios" pulls up lots. The VERY FIRST HIT is:
http://www.nagios.com/solutions/tomcat-monitoring

...which tells you that yes, Nagios can do it, and even has a link to where you can get one of several plug-ins. You can also write your own plugin, if what's there doesn't fit your needs.
 
Old 02-22-2013, 12:35 PM   #3
sarah allali
LQ Newbie
 
Registered: Jan 2013
Location: Morocco
Distribution: Debian , ubunto
Posts: 15

Original Poster
Rep: Reputation: Disabled
Thank you ,

yes i saw that already , so what do i have to do to make it work then , can you show me because i already tried and it didn't work for me.

and i found that there is another method to monitor it by defining a check :

define command{
command_name Check_Http_Tomcat
command_line $USER1$/check_http -H hostname -p port
}
but it didn't work either i know that i am missing something but i dont know exactly what it is i am new with nagios and everything so i hope you undestand me please .

thank you

Last edited by sarah allali; 02-22-2013 at 12:41 PM.
 
Old 02-22-2013, 01:00 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,753

Rep: Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983
Quote:
Originally Posted by sarah allali View Post
Thank you ,
yes i saw that already , so what do i have to do to make it work then, can you show me
If you saw it already, then you saw the pages that have installation instructions. You READ the instructions, and FOLLOW THEM.
Quote:
because i already tried and it didn't work for me.
...and without telling us WHAT you tried (which plugin out of the several?), or how it failed (what error(s)/message(s) did you get?), we can't tell you anything. We're not going to guess.
Quote:
and i found that there is another method to monitor it by defining a check :

define command{
command_name Check_Http_Tomcat
command_line $USER1$/check_http -H hostname -p port
}
but it didn't work either i know that i am missing something but i dont know exactly what it is i am new with nagios and everything so i hope you undestand me please
Again, no idea what you mean by "it didn't work", past the obvious. You posted it as "hostname" and "port"...did you actually put YOUR hostname and port in the check???
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Start Tomcat Server Remotely bhaumik Linux - Newbie 31 06-27-2014 10:49 AM
i am unable to monitor or connect remote linux server uning nagios 3.3 on nagios linn nandunay Linux - Server 2 05-09-2012 04:56 AM
Tomcat Log monitor with Nagios ayush1440 Linux - Software 1 03-21-2012 10:06 AM
Need to monitor tomcat using Nagios server call_krushna Linux - Server 7 02-02-2012 04:42 AM
Tomcat Start remotely bhaumik Linux - Newbie 9 09-18-2010 02:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:01 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