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

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jyoti22
Posts: 254
Joined: Mon Mar 23, 2015 4:50 am

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

Post 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 -

[root@xx.xx.xx.xx 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
You do not have the required permissions to view the files attached to this post.
jyoti22
Posts: 254
Joined: Mon Mar 23, 2015 4:50 am

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

Post by jyoti22 »

NSClient config file also attached
You do not have the required permissions to view the files attached to this post.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

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

Post 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$
Former Nagios employee
https://www.mcapra.com/
jyoti22
Posts: 254
Joined: Mon Mar 23, 2015 4:50 am

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

Post by jyoti22 »

Hey thanks for that..

But now I get a error

[nagios@xx.xx.xx.xx~]# /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
jyoti22
Posts: 254
Joined: Mon Mar 23, 2015 4:50 am

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

Post by jyoti22 »

Please close this thread. Its resolved
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

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

Post by mcapra »

Awesome! Closing this per your request.
Former Nagios employee
https://www.mcapra.com/
Locked