Page 1 of 1

Remote command execution failed: bash: /usr/local/nagios/lib

Posted: Thu Aug 15, 2019 10:19 am
by trrampaul
Good day,

I have Nagios setup on some Linux servers, but some of the checks show this error:

Remote command execution failed: bash: /usr/local/nagios/libexec/check_ssh: /usr/lib/ld.so.1: bad ELF interpreter: No such file or directory

The check file is there in libexec, but I'm missing the ld.so.1 file, I searched the internet but was unable to get a solution.

Re: Remote command execution failed: bash: /usr/local/nagios

Posted: Thu Aug 15, 2019 10:34 am
by scottwilkerson
Did you copy the plugins from a different server?
trrampaul wrote:Remote command execution failed: bash: /usr/local/nagios/libexec/check_ssh: /usr/lib/ld.so.1: bad ELF interpreter: No such file or directory
Usually this error happens when you move a plugin to a server that was compiled elsewhere.

Re: Remote command execution failed: bash: /usr/local/nagios

Posted: Thu Aug 15, 2019 11:21 am
by trrampaul
No the plugins were there already, I inherited this issue. I was just trying to fix.

Re: Remote command execution failed: bash: /usr/local/nagios

Posted: Thu Aug 15, 2019 11:28 am
by scottwilkerson
trrampaul wrote:No the plugins were there already, I inherited this issue. I was just trying to fix.
I would recommend installing the nagios plugins from source (a backup first would be recommended)

https://support.nagios.com/kb/article.php?id=569

Re: Remote command execution failed: bash: /usr/local/nagios

Posted: Thu Aug 15, 2019 11:35 am
by trrampaul
scottwilkerson wrote:
trrampaul wrote:No the plugins were there already, I inherited this issue. I was just trying to fix.
I would recommend installing the nagios plugins from source (a backup first would be recommended)

https://support.nagios.com/kb/article.php?id=569
Thanks very much you pointed me in the right direction. I deleted the check_ file that was returning the error and replaced it with a newer check_ file, changed permissions and ownership and it works now.

Re: Remote command execution failed: bash: /usr/local/nagios

Posted: Thu Aug 15, 2019 11:36 am
by scottwilkerson
trrampaul wrote:
scottwilkerson wrote:
trrampaul wrote:No the plugins were there already, I inherited this issue. I was just trying to fix.
I would recommend installing the nagios plugins from source (a backup first would be recommended)

https://support.nagios.com/kb/article.php?id=569
Thanks very much you pointed me in the right direction. I deleted the check_ file that was returning the error and replaced it with a newer check_ file, changed permissions and ownership and it works now.
Great!

Locking thread