Page 2 of 2

Re: [STDERR][EC 126]/bin/sh: Cannot execute binary file

Posted: Tue Oct 02, 2012 11:02 am
by lmiltchev
Can you show the output of the following command?

Code: Select all

echo $PATH

Re: [STDERR][EC 126]/bin/sh: Cannot execute binary file

Posted: Tue Oct 02, 2012 11:08 am
by mrochelle
[root@nagiosdeva libexec]# whereis ping
ping: /bin/ping /usr/share/man/man8/ping.8.gz

Re: [STDERR][EC 126]/bin/sh: Cannot execute binary file

Posted: Tue Oct 02, 2012 11:11 am
by mrochelle
[root@nagiosdeva libexec]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

Re: [STDERR][EC 126]/bin/sh: Cannot execute binary file

Posted: Tue Oct 02, 2012 11:28 am
by lmiltchev
Can you also show the output of the following command?

Code: Select all

ls -l /bin/ping

Re: [STDERR][EC 126]/bin/sh: Cannot execute binary file

Posted: Tue Oct 02, 2012 12:00 pm
by mrochelle
gios@nagiosdeva libexec]$ ls -l /bin/ping
-rwsr-xr-x. 1 root root 40760 Jul 19 2011 /bin/ping

Well, even though we had this problem, we continued with configurations of some plugins we needed to test. After several apply configurations, we no longer have the problem, so I'm not going to look a gift horse in the mouth.

Thanks for all your support.

Re: [STDERR][EC 126]/bin/sh: Cannot execute binary file

Posted: Tue Oct 02, 2012 12:43 pm
by lmiltchev
I'm glad this got resolved! :)