Page 1 of 1

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

Posted: Tue Oct 09, 2012 7:12 am
by mrochelle
I'm back, with my [STDERR][EC 126]/bin/sh: Cannot execute binary file again after I refreshed my environment with a new copy of nagiosXI.
System:
localhost.localdomain 2.6.32-279.5.1.el6.x86_64 x86_64
CentOS release 6.3 (Final)
Gnome is not installed

However, this time, the problem starts after I install my DNX Server client if that provides any hint. Thoughts, comments, please.

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

Posted: Tue Oct 09, 2012 9:27 am
by lcontreras
Hi

Have you checked directory /usr/local/nagios/libexec permissions ???, or try to execute the check from the command line in order to see if it returns the same message.

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

Posted: Tue Oct 09, 2012 9:55 am
by mrochelle
No problem with permissions and all plugins work without problem from command line.

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

Posted: Tue Oct 09, 2012 10:08 am
by mguthrie
Is your DNX client on a remote machine? Does the plugins directory on the remote machine match the main Nagios server?

Can you post the permissions of the /usr/local/nagios/libexec directory on the DNX client?

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

Posted: Tue Oct 09, 2012 10:42 am
by mrochelle
All Directory Permissions:

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

Posted: Tue Oct 09, 2012 10:53 am
by mguthrie
OH, are these client machines the same architecture? If not then the plugins will probably need to be recompiled for the architecture difference.

Otherwise, can you test these plugins on the actual client machines as the nagios user?

Code: Select all

su nagios -c './check_procs'

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

Posted: Tue Oct 09, 2012 11:22 am
by mrochelle
I believe you nailed it! I disable and DNX and all checks are fine. My DNX clients are 32 bit and my master was 64 bit architecture. I need to go have a conversation with my sysadmin.
Thank You!!!