Nagios Core - execvp(/usr/local/nagios/libexec/check_ping,

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
soufianeadli85
Posts: 3
Joined: Mon Feb 08, 2021 3:28 pm

Nagios Core - execvp(/usr/local/nagios/libexec/check_ping,

Post 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!
Attachments
screenshot
screenshot
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Nagios Core - execvp(/usr/local/nagios/libexec/check_pin

Post 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!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
soufianeadli85
Posts: 3
Joined: Mon Feb 08, 2021 3:28 pm

Re: Nagios Core - execvp(/usr/local/nagios/libexec/check_pin

Post 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
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Nagios Core - execvp(/usr/local/nagios/libexec/check_pin

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
soufianeadli85
Posts: 3
Joined: Mon Feb 08, 2021 3:28 pm

Re: Nagios Core - execvp(/usr/local/nagios/libexec/check_pin

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