Page 1 of 1

/usr/local/nagios/libexec/php: No such file or directory

Posted: Thu May 31, 2012 1:22 am
by mrochelle
I have added a couple of wizards for checking the Nagios servers locally and remote.
1) Nagiostats Wizard
2) Nagios XI Server

For all the checks I keep getting the following error:
[STDERR][EC 127]/bin/sh: /usr/local/nagios/libexec/php: No such file or directory

However, I can execute any of the checks manually and from the DNX logs, the checks are actually working?

Re: /usr/local/nagios/libexec/php: No such file or directory

Posted: Thu May 31, 2012 2:09 pm
by scottwilkerson
Do you DNX machines have php installed?

Re: /usr/local/nagios/libexec/php: No such file or directory

Posted: Thu May 31, 2012 3:51 pm
by mrochelle
Yes. Actually, the DNX part is working. From the logs the checks are going through successfully. Also I can manually execute the check on any client without a problem. My guess is the results data is not being handle appropriately back on the Master?

Re: /usr/local/nagios/libexec/php: No such file or directory

Posted: Thu May 31, 2012 4:41 pm
by lmiltchev
For all the checks I keep getting the following error:
[STDERR][EC 127]/bin/sh: /usr/local/nagios/libexec/php: No such file or directory
Where exactly do you see this error? Can you post a screenshot?

Re: /usr/local/nagios/libexec/php: No such file or directory

Posted: Thu May 31, 2012 5:08 pm
by mrochelle
I found the fix right after reading your reply. I could not believe it could be that simple but I added the php command in the indicated directory and the problem cleared. Since you asked for the screen shot here it is. They had almost cleared before I captured it. Thanks again...Marcus

Re: /usr/local/nagios/libexec/php: No such file or directory

Posted: Fri Jun 01, 2012 9:14 am
by lmiltchev
I'm glad your problem got resolved!