Page 2 of 2

Re: Unable to get check_nrpe to find process on Linux server

Posted: Fri Apr 24, 2015 10:18 am
by jolson
Steve,

If you modify the nrpe.cfg file on your remote client like so:

Code: Select all

command[check_for_route_debug]=/usr/local/nagios/libexec/check_procs -a 'Route /opt/nyfix/abim/current/config/appia FMPQA2-10011 DEBUG'
Then run the following from the Nagios Server CLI:

Code: Select all

./check_nrpe -H 10.10.205.69 -c check_for_route_debug
Do you get proper output?

I want to clarify a little bit about what we're trying to do here.

When we set the 'command' variable in nrpe.cfg, the command (check_for_route_debug) is tied to the arguments that follow (/usr/local/nagios/libexec/check_procs -a 'Route /opt/nyfix/abim/current/config/appia FMPQA2-10011 DEBUG').

What this means is that from NRPE, we simply call the command:

Code: Select all

./check_nrpe -H 192.168.1.1 -c check_for_route_debug
And the NRPE client then runs the arguments that follow that command, and returns the output to Nagios.

This way, we don't pass any arguments through NRPE - it's handled on the client, which simplifies configuration and provides an additional layer of security.

Does that make sense? Let me know if you have any questions.

Re: Unable to get check_nrpe to find process on Linux server

Posted: Mon Apr 27, 2015 7:40 am
by srg1970nj
Jolson thank you so much for assisting me. This last change you recommended finally worked. The process is now being found and I know what to do going forward. Thanks again!

Re: Unable to get check_nrpe to find process on Linux server

Posted: Mon Apr 27, 2015 8:56 am
by tmcdonald
I'll be closing this thread now, but feel free to open another if you need anything in the future!