Java application monitoring with nagios

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
madhusudhan
Posts: 3
Joined: Wed Nov 05, 2014 4:49 am

Java application monitoring with nagios

Post 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.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Java application monitoring with nagios

Post 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?
madhusudhan
Posts: 3
Joined: Wed Nov 05, 2014 4:49 am

Re: Java application monitoring with nagios

Post 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.
Last edited by madhusudhan on Fri Nov 07, 2014 1:04 am, edited 1 time in total.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Java application monitoring with nagios

Post 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.
madhusudhan
Posts: 3
Joined: Wed Nov 05, 2014 4:49 am

Re: Java application monitoring with nagios

Post 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.
Last edited by slansing on Thu Dec 11, 2014 10:41 am, edited 1 time in total.
Reason: Combined your post with the previous ones, please do not triple post, and please keep questions to one type/incident per-thread.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Java application monitoring with nagios

Post 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
Former Nagios employee
Locked