Page 1 of 1

(No output on stdout) stderr: execvp(command_line, ...) fail

Posted: Tue Feb 28, 2017 8:46 am
by jyoti22
Hi Team,

I am getting the below error when I am using check_mem plugin to get the memory values correctly for a remote windows server

NSClient ++ version 0.4.3.143

On CLI it works -

[[email protected] libexec]# ./check_nrpe -H 10.164.224.65 -p 5666 -c CheckMEM -a MaxWarn=80% MaxCrit=90% ShowAll=long type=physical
OK: physical: Total: 255.748GB - Used: 204.446GB (79%) - Free: 51.303GB (20%)|'physical'=204.44559GB;204.59852;230.17334;0;255.74815 'physical %'=79%;80;90;0;100

When I added on webconsole and defined the command:

(No output on stdout) stderr: execvp(command_line, ...) failed. errno is 2: No such file or directory

PFA command and service files

Re: (No output on stdout) stderr: execvp(command_line, ...)

Posted: Tue Feb 28, 2017 8:49 am
by jyoti22
NSClient config file also attached

Re: (No output on stdout) stderr: execvp(command_line, ...)

Posted: Tue Feb 28, 2017 11:39 am
by mcapra
Is there a specific reason you put command_line in front of your Command's "Command Line" definition? I would try removing that and having it like this:

Code: Select all

$USER1$/check_nrpe -H $HOSTADDRESS$ -p 5666 -c $ARG1$ $ARG2$

Re: (No output on stdout) stderr: execvp(command_line, ...)

Posted: Tue Feb 28, 2017 10:49 pm
by jyoti22
Hey thanks for that..

But now I get a error

[[email protected]~]# /usr/local/nagios/libexec/check_nrpe -H 10.164.224.65 -p 5666 -c check_MEM -a MaxWarn=80% MaxCrit=90% ShowAll=long type=page Unknown command(s): check_mem

Re: (No output on stdout) stderr: execvp(command_line, ...)

Posted: Wed Mar 01, 2017 4:30 am
by jyoti22
Please close this thread. Its resolved

Re: (No output on stdout) stderr: execvp(command_line, ...)

Posted: Wed Mar 01, 2017 10:45 am
by mcapra
Awesome! Closing this per your request.