Getting (No output on stdout) stderr Error in Nagios

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.
Locked
dpa.clt
Posts: 15
Joined: Tue Jan 02, 2018 4:42 am

Getting (No output on stdout) stderr Error in Nagios

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
dpa.clt
Posts: 15
Joined: Tue Jan 02, 2018 4:42 am

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

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
dpa.clt
Posts: 15
Joined: Tue Jan 02, 2018 4:42 am

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

Post by dpa.clt »

yes did it .. still didnt work .. had to reinstall the nagios core finaly
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post 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?
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked