Monitor Java Process
Michael Gargiullo
mgargiullo at pivotpointsecurity.com
Wed Mar 3 16:41:58 CET 2010
-----Original Message-----
From: Jatin Davey [mailto:jashokda at cisco.com]
Sent: Wednesday, March 03, 2010 3:20 AM
To: Edwin Zoeller
Cc: Nagios Mailinglist
Subject: Re: [Nagios-users] Monitor Java Process
Hi Edwin
Did you mean that you are using the Process ID of the process running on
the remote box to monitor its status ?
Thanks
Jatin
On 3/2/2010 8:10 PM, Edwin Zoeller wrote:
> We monitor the port number assigned to the process.
>
> -----Original Message-----
> From: Jim Avery [mailto:jim at jimavery.me.uk]
> Sent: Tuesday, March 02, 2010 7:35 AM
> To: Jatin Davey
> Cc: Nagios Mailinglist
> Subject: Re: [Nagios-users] Monitor Java Process
>
> On 2 March 2010 11:26, Jatin Davey<jashokda at cisco.com> wrote:
>
>> Hi
>>
>> I want to know how i can monitor the java process running on remote
>> box , basically i want to keep monitoring it and raise an email alert
>> if it has re-started or stopped functioning. Please let me know how
>> this can be achieved using nagios.
>>
>> Thanks
>> Jatin
>>
>
> Someone hereabouts recently mentioned you can use jmx4perl
> http://labs.consol.de/lang/de/jmx4perl/
>
> I can't say I've tried it myself yet.
>
>
------------------------------------------------------------------------
If I understand this, you have a java process that you want to monitor.
To see if the process is 'running' your best bet is using check_proc,
however, if you want to see if the process is still functioning and not
hung, you'll need to interact with the process.
As Edwin stated, if your process opens a port, you can connect to it and
check for a default response using check_tcp (or udp).
If you wrote the java process (or have access to the developers) you can
ask that they build in monitoring responses. I have a java listener
that I added a hook for a specific string. If I send a specific string
to its UDP port, it returns it's PID and Timestamp.
What does the Java process do? If it doesn't open a port, does it write
to its log that you can check modification times on?
If you can interact with the process you can monitor it. If it just
runs and doesn't interact with others, you can at least monitor that the
process is still running. In general if you can check its health
manually, you can write something for Nagios to use.
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list