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.
Remote command execution failed: bash: /usr/local/nagios/lib
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Remote command execution failed: bash: /usr/local/nagios
Did you copy the plugins from a different server?
Usually this error happens when you move a plugin to a server that was compiled elsewhere.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
Re: Remote command execution failed: bash: /usr/local/nagios
No the plugins were there already, I inherited this issue. I was just trying to fix.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Remote command execution failed: bash: /usr/local/nagios
I would recommend installing the nagios plugins from source (a backup first would be recommended)trrampaul wrote:No the plugins were there already, I inherited this issue. I was just trying to fix.
https://support.nagios.com/kb/article.php?id=569
Re: Remote command execution failed: bash: /usr/local/nagios
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.scottwilkerson wrote:I would recommend installing the nagios plugins from source (a backup first would be recommended)trrampaul wrote:No the plugins were there already, I inherited this issue. I was just trying to fix.
https://support.nagios.com/kb/article.php?id=569
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Remote command execution failed: bash: /usr/local/nagios
Great!trrampaul wrote: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.scottwilkerson wrote:I would recommend installing the nagios plugins from source (a backup first would be recommended)trrampaul wrote:No the plugins were there already, I inherited this issue. I was just trying to fix.
https://support.nagios.com/kb/article.php?id=569
Locking thread