Page 1 of 1

CheckProcState

Posted: Wed Mar 02, 2011 3:05 pm
by rredmond
2 things really. Ive had several requests to monitor 2003 Server Windows Processes. When using the Wizard they allow me to add it nicelly and then when the config is applied they dissapear completely. Frustrated, I then proceded to create my own commands utilizing the NSClient. From everything Ive read this command should work:

$USER1$/check_nrpe -H $HOSTADDRESS$ -p 5666 -c checkprocstate -a showall $ARG1$=started

Service created with ARG1$ as my process. Applies but then returns the following:

CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.

I found nothing in the logs. Ive run the NSClient Test function on the host server AND Ive tested the command from the CL on the server utilizing the port in the command! They return an OK!OK. Im guessing this HAS to be how my service is configured in Nagios XI but Im at a complete loss. Any help on this would be greatly appreciated!

Randy

Re: CheckProcState

Posted: Thu Mar 03, 2011 10:35 am
by mguthrie
Could you show us a sample service definition that has that $ARG1$ in it?

Does that argument have any spaces in it? It will need to be quoted if it does.

Re: CheckProcState

Posted: Wed Mar 23, 2011 1:55 pm
by rredmond
I will try the quotes. Thank You!

Re: CheckProcState

Posted: Wed Mar 23, 2011 2:13 pm
by rdedon
Just post here if this doesn't work for you, thanks! :-)