LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Monitor tomcat remotely with nagios (https://www.linuxquestions.org/questions/linux-newbie-8/monitor-tomcat-remotely-with-nagios-4175451299/)

sarah allali 02-22-2013 11:50 AM

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.

TB0ne 02-22-2013 12:22 PM

Quote:

Originally Posted by sarah allali (Post 4897617)
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.

sarah allali 02-22-2013 12:35 PM

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

TB0ne 02-22-2013 01:00 PM

Quote:

Originally Posted by sarah allali (Post 4897643)
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???


All times are GMT -5. The time now is 04:34 PM.