Unable to get check_nrpe to find process on Linux server

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.
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

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

Post 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.
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
srg1970nj
Posts: 23
Joined: Wed Apr 08, 2015 12:10 pm

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

Post 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!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

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

Post by tmcdonald »

I'll be closing this thread now, but feel free to open another if you need anything in the future!
Former Nagios employee
Locked