Java check

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
ariarlet
Posts: 61
Joined: Wed Apr 22, 2015 11:04 am

Java check

Post by ariarlet »

Good Morning

How could monitor the process of a java web application. I am not able to find a check that works.

Thank you
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Java check

Post by rkennedy »

Can you provide a bit more information about this java check? There are multiple scenarios that could work.

check_http for example, has a -r flag that can match HTML strings.

Alternatively, you could check if the java process is running from the host.
Former Nagios Employee
ariarlet
Posts: 61
Joined: Wed Apr 22, 2015 11:04 am

Re: Java check

Post by ariarlet »

Hello

I would like to monitor a corresponding java websharpe

Thanks
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Java check

Post by Box293 »

JMX is probably the answer. While this guide is for Nagios XI, the concepts are the same and it will work the same in Core.

https://assets.nagios.com/downloads/nag ... ios-XI.pdf
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
ariarlet
Posts: 61
Joined: Wed Apr 22, 2015 11:04 am

Re: Java check

Post by ariarlet »

Inside there is a java command line where you specify which service is one that owns that java, but not how to draw that line and if there is a check that already monitor this. It is a very long line with a lot of data.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Java check

Post by rkennedy »

ariarlet wrote:Inside there is a java command line where you specify which service is one that owns that java, but not how to draw that line and if there is a check that already monitor this. It is a very long line with a lot of data.
Can you provide clarification on this and where you're talking about?
Former Nagios Employee
Locked