Page 1 of 1
Nagios Core - execvp(/usr/local/nagios/libexec/check_ping,
Posted: Mon Feb 08, 2021 3:55 pm
by soufianeadli85
I install the Nagios Core and I was able to change the cfg_file to another directory, but I am getting this attached output below:
d 3h 52m 24s (No output on stdout) stderr: execvp(/usr/local/nagios/libexec/check_ping, ...) failed. errno is 2: No such file or directory
Please help!
Re: Nagios Core - execvp(/usr/local/nagios/libexec/check_pin
Posted: Mon Feb 08, 2021 6:29 pm
by benjaminsmith
Hi,
Where do you have the plugins, are they in the default directory or another location? There's a setting in the resource.cfg file to the path to the plugins directory, check that to make sure it matches with your setup.
root@localhost ~]# cat /usr/local/nagios/etc/resource.cfg
# Path to the plugins
$USER1$=/usr/local/nagios/libexec
Good Luck!
Re: Nagios Core - execvp(/usr/local/nagios/libexec/check_pin
Posted: Mon Feb 08, 2021 6:47 pm
by soufianeadli85
Yes, I have that correct it matches what you posted.
# Sets $USER1$ to be the path to the plugins
$USER1$=/usr/local/nagios/libexec
Re: Nagios Core - execvp(/usr/local/nagios/libexec/check_pin
Posted: Tue Feb 09, 2021 6:19 pm
by benjaminsmith
Hi,
I would check the permissions on that plugin to make sure it's correct or the same as the other ones that are working.
Plugin Permissions
Code: Select all
chown apache:nagios /usr/local/nagios/libexec/check_example
chmod 775 /usr/local/nagios/libexec/check_example
Benjamin
Re: Nagios Core - execvp(/usr/local/nagios/libexec/check_pin
Posted: Wed Feb 10, 2021 9:35 am
by soufianeadli85
I found the problem by checking the config file for the switches, it contains some weird characters such as ";" and "~{" which causes the problem, after I removed the characters, the problem got fixed. Thanks to you all for your input.