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

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
mrochelle
Posts: 238
Joined: Fri May 04, 2012 11:20 am
Location: Heart of America

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

Post 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.
You do not have the required permissions to view the files attached to this post.
lcontreras
Posts: 48
Joined: Thu Sep 13, 2012 7:15 pm

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

Post 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.
User avatar
mrochelle
Posts: 238
Joined: Fri May 04, 2012 11:20 am
Location: Heart of America

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

Post by mrochelle »

No problem with permissions and all plugins work without problem from command line.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

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

Post 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?
User avatar
mrochelle
Posts: 238
Joined: Fri May 04, 2012 11:20 am
Location: Heart of America

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

Post by mrochelle »

All Directory Permissions:
You do not have the required permissions to view the files attached to this post.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

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

Post 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'
User avatar
mrochelle
Posts: 238
Joined: Fri May 04, 2012 11:20 am
Location: Heart of America

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

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