Page 1 of 1
Java application monitoring with nagios
Posted: Wed Nov 05, 2014 6:09 am
by madhusudhan
Hi,
How can i monitor java application with nagios xi.
I am install nagios xi(current version) in window's 7 through virtual player centOS 6.5.
Please give me any suggestion.
Thanks in advance.
Re: Java application monitoring with nagios
Posted: Wed Nov 05, 2014 10:50 am
by slansing
What specific java app are you trying to monitor? Tomcat, JMX, etc? And what metrics are you looking to get out of these checks?
Re: Java application monitoring with nagios
Posted: Wed Nov 05, 2014 11:49 am
by madhusudhan
First thank you for your reply.
My java application is completely Restfull application.i want monitor all application logs.for logging purpose I am using log4j and all logs stored in sqlserver.Now my question is how to monitor these logs.
Thank you once again.
Re: Java application monitoring with nagios
Posted: Wed Nov 05, 2014 1:58 pm
by slansing
Okay, so you don't actually want to monitor a Java App like you said, directly. Sounds like you will need to sculpt some sql queries to get that information. If you can also get these logs in flat files (.txt, .log, etc) you could monitor them with plugins that are already in existence. You could also use the MySQL Query wizard in XI to add those queries to your XI server as service checks.
Re: Java application monitoring with nagios
Posted: Thu Dec 11, 2014 1:35 am
by madhusudhan
I am going trough nagios xi and nagios log server for monitoring.I have a java rest full application i want to monitor this application logs.for logging purpose i am using log4j and i am storing these logs in sql server data base in different tables(ex transaction logs,exception logs...etc) now i want monitor these logs table with nagios xi or nagios log server i want show in graphical representation like graphs and charts .It is possible any one of this (nagios xi and nagios log server).please give any suggestion.
I have logs tables in sql server database now i want monitor these logs its possible using nagios xi.if it is possible wich template and how i am using please give me conformation.
rta=0.849ms
pl=0%;80;100
rtmax=1.497ms
rtmin=0.643ms
here what the meaning of rta,pl,rtmax,rtmin.
Re: Java application monitoring with nagios
Posted: Thu Dec 11, 2014 10:39 am
by tmcdonald
1.) The easiest way to get a log file into Nagios Logserver is to have it as a text file and use syslog to send that off, or directly send it as a syslog message. In order to get the logs out of a database you will need to, as slansing mentioned, write a shell script (or perl, python, etc) that will query the database for this information and pass it off to Nagios.
2.) These values are from a ping check:
Code: Select all
RTA = Round-Trip Average
PL = Packet Loss
RTMAX = Maximum Round-Trip time
RTMIN = Minimum Round-Trip time