Hi Ron

I just tried this yesterday , I had a requirment to monitor a java process on a windows box and return a critical alert if it has stopped working. I used the following on as the nagios configuration , this should be added to the object configuration file:

define service{
    use            generic-service
    host_name
    service_description    Java
    check_command        check_nt!PROCSTATE!-d SHOWALL -l java.exe
    }

This is working perfectly fine for me , Next step i am trying is to set up a notification email if the process stops functioning. Hope this helps.

Thanks
Jatin

On 3/4/2010 6:57 AM, Ron Wilson wrote:

I have NSclient on my servers and use NRPE to access client. On the whole it works fine but I have great difficulty detecting if a windows process is running or stopped. I have a java.exe that has to run in a cmd window.

I need to know if that process stops for any reason.

Using command line from Nagios and with Wordpad.exe as a test I have tried using this

./check_nrpe -H server01 -p 5666 -c CheckProcState -a wordpad.exe=running

I get All processes running regardless if Wordpad is open or not.

I have read the manual and tried the various combinations mentioned in there and it does not help.

Can anyone please supply a command line for NRPE that will tell me when a windows process is running and when it is stopped I want it to return critical

Thanks

------------------------------------------------------------------------

--

Ron Wilson

Systems Engineer

Television New Zealand

P.O. Box 3819

Auckland, New Zealand

Phone 649-916-7560

/Evolution is a harsh mistress./

------------------------------------------------------------------------
==========================================================
For more information on the Television New Zealand Group, visit us
online at tvnz.co.nz
==========================================================
CAUTION:  This e-mail and any attachment(s) contain information that
is intended to be read only by the named recipient(s).  This information
is not to be used or stored by any other person and/or organisation.

------------------------------------------------------------------------------
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
[email protected]
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
------------------------------------------------------------------------------
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
[email protected]
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

Reply via email to