Page 1 of 1

Getting (No output on stdout) stderr Error in Nagios

Posted: Tue Jan 22, 2019 2:01 am
by dpa.clt
Hello Team

We do have a nagios Core (Version 4.3.4) running on Ubuntu 16.04 successfuly.Tried to install VMware-vSphere-Perl-SDK-6.5.0-4566394.x86_64.tar.gz inorder to monitor ESxi hosts.After follwing the pre-requisites and installation all the monitoring agents (for all the hosts monitored not the ESx hosts) started giving below error.We even uninstalled VMware-vSphere-Perl-SDK-6.5.0 still the same .

Any help is highly appreciated

Thanks in advance

(No output on stdout) stderr: execvp(/check_cpu, ...) failed. errno is 2: No such file or directory Version 4.3.4
CRITICAL 01-22-2019 02:00:45 0d 0h 0m 32s 1/6 (No output on stdout) stderr: execvp(/check_load, ...) failed. errno is 2: No such file or directory
RAM Usage
CRITICAL 01-22-2019 02:01:15 0d 0h 0m 2s 1/6 (No output on stdout) stderr: execvp(/check_mem, ...) failed. errno is 2: No such file or directory
Root Partition
CRITICAL 01-22-2019 02:00:57 0d 0h 0m 20s 1/6 (No output on stdout) stderr: execvp(/check_disk, ...) failed. errno is 2: No such file or directory

Re: Getting (No output on stdout) stderr Error in Nagios

Posted: Tue Jan 22, 2019 12:58 pm
by scottwilkerson
it looks like either the path to check_load us not defined correctly in the command definition, or it is referencing a variable that doesn't exist.

Can you post your command definition along with the resource.cfg from the installation

Re: Getting (No output on stdout) stderr Error in Nagios

Posted: Wed Jan 23, 2019 4:12 am
by dpa.clt
Here is it

define command {

command_name check_local_load
command_line $USER1$/check_load -w $ARG1$ -c $ARG2$
}

define command {

command_name check_local_disk
command_line $USER1$/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$
}

Nothing in resource.cfg file

Not only this but all services swap,memory,uptime everything is giving same std out error

Re: Getting (No output on stdout) stderr Error in Nagios

Posted: Wed Jan 23, 2019 7:54 am
by scottwilkerson
Add the following to resource.cfg where /usr/local/nagios/libexec is the path to your plugins

Code: Select all

# Path to the plugins
$USER1$=/usr/local/nagios/libexec

Re: Getting (No output on stdout) stderr Error in Nagios

Posted: Wed Feb 06, 2019 5:47 am
by dpa.clt
yes did it .. still didnt work .. had to reinstall the nagios core finaly

Re: Getting (No output on stdout) stderr Error in Nagios

Posted: Wed Feb 06, 2019 9:39 am
by scottwilkerson
dpa.clt wrote:yes did it .. still didnt work .. had to reinstall the nagios core finaly
After re-installing Core did it work successfully?