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!
Nagios Core - execvp(/usr/local/nagios/libexec/check_ping,
-
soufianeadli85
- Posts: 3
- Joined: Mon Feb 08, 2021 3:28 pm
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Nagios Core - execvp(/usr/local/nagios/libexec/check_pin
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.
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.
Good Luck!root@localhost ~]# cat /usr/local/nagios/etc/resource.cfg
# Path to the plugins
$USER1$=/usr/local/nagios/libexec
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!
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
Yes, I have that correct it matches what you posted.
# Sets $USER1$ to be the path to the plugins
$USER1$=/usr/local/nagios/libexec
# 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
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
Benjamin
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
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!
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
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.