Page 1 of 1

(No output on stdout) stderr: execvp(/usr/local/nagios/libexec/check_nrpe, ...) failed. errno is 2: No such file or dire

Posted: Thu Jul 27, 2023 10:29 am
by pnikhade
Hi,

I have newly setup Nagios and added one host for monitoring the CPU load & memory. But facing the below error,

(No output on stdout) stderr: execvp(/usr/local/nagios/libexec/check_nrpe, ...) failed. errno is 2: No such file or directory

On my remote host nrpe is already installed & /usr/local/nagios/libexec has check_nrpe with proper permissions.

So please anyone suggest what can be the possible reason for this error because I believe check_nrpe is already present.

Thanks,
Piyush N

Re: (No output on stdout) stderr: execvp(/usr/local/nagios/libexec/check_nrpe, ...) failed. errno is 2: No such file or

Posted: Mon Aug 14, 2023 12:30 pm
by danderson
Thanks for reaching out @pnikhade,

Just to clarify, you have "/usr/local/nagios/libexec/check_nrpe" on the Nagios host and NRPE installed on the remote host, and you are getting this error on the Nagios host?

Re: (No output on stdout) stderr: execvp(/usr/local/nagios/libexec/check_nrpe, ...) failed. errno is 2: No such file or

Posted: Mon Aug 14, 2023 12:42 pm
by Butters
Would recommend to check if check_nrpe is with proper permissions and what check You are actually calling with it. Look for Your Command definition and the script/plugin you are calling and of course its permission and ownership.