Remote command execution failed while using SSH Proxy

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
naveenreddyv
Posts: 18
Joined: Wed Jan 16, 2013 6:25 am

Remote command execution failed while using SSH Proxy

Post by naveenreddyv »

Hi Team,

Nagios Details:
Nagios XI Version : 2012R1.3
2.6.18-308.16.1.el5 i686
CentOS release 5.8 (Final) 32bit
Manual install of XI
Gnome is not installed

I am using SSH Proxy to connact to remote and I am receiving the belwo error, Ping is the only one service working.

Root Disk Space
Remote command execution failed: bash: /usr/local/nagios/libexec/check_disk: No such file or directory

Current Users
Remote command execution failed: bash: /usr/local/nagios/libexec/check_users: No such file or directory

Total Processes
Remote command execution failed: bash: /usr/local/nagios/libexec/check_procs: No such file or directory

Ping
OK - IPaddress: rta 0.382ms, lost 0%

I have installed nagios-plugins-1.4.16.tar.gz on the remote machine

On the remote machine I have noticed that /usr/local/nagios/libexec is not existing...
[root@remote nagios]# ls
include
[root@remote nagios]# pwd
/usr/local/nagios

Thanks
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: Remote command execution failed while using SSH Proxy

Post by yancy »

naveenreddyv,

try doing a locate to find where the plugins are installed.

Code: Select all

 updatedb 

Code: Select all

  locate check_disk 
you may need to install and update locate

Code: Select all

 yum install mlocate 

Code: Select all

 updatedb 
regards,

-Yancy
naveenreddyv
Posts: 18
Joined: Wed Jan 16, 2013 6:25 am

Re: Remote command execution failed while using SSH Proxy

Post by naveenreddyv »

Please find the result from the locate
remote machine result
locate check_disk
/home/username/nagios-plugins-1.4.16/plugins/check_disk
/home/username/nagios-plugins-1.4.16/plugins/check_disk.c
/home/username/nagios-plugins-1.4.16/plugins/check_disk.o
/home/username/nagios-plugins-1.4.16/plugins/.deps/check_disk.Po
/home/username/nagios-plugins-1.4.16/plugins/t/check_disk.t
/home/username/nagios-plugins-1.4.16/plugins-scripts/check_disk_smb.pl
/home/username/nagios-plugins-1.4.16/plugins-scripts/t/check_disk_smb.t

Nagios machine result
locate check_disk
/usr/local/nagios/libexec/check_disk
/usr/local/nagios/libexec/check_disk_smb
/usr/local/nagios/share/pnp/templates.dist/check_disk.php
/usr/local/nrdp/plugins/AIX/check_disk_smb
/usr/local/nrdp/plugins/AIX/powerpc/check_disk
/usr/local/nrdp/plugins/Darwin/i386/check_disk
/usr/local/nrdp/plugins/Generic/check_disk_smb
/usr/local/nrdp/plugins/Linux/i386/check_disk
/usr/local/nrdp/plugins/Linux/x86_64/check_disk
/usr/local/nrdp/plugins/SunOS/check_disk_smb
/usr/local/nrdp/plugins/SunOS/i386/check_disk
/usr/local/nrdp/plugins/SunOS/sparc/check_disk


Thanks
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Remote command execution failed while using SSH Proxy

Post by slansing »

The plugin is looking for the remote machine's plugin in:

Code: Select all

/usr/local/nagios/libexec/check_disk
Thus that plugin should be in that directory after transferring it there try running the command which calls the check from your Nagios machines CLI.
naveenreddyv
Posts: 18
Joined: Wed Jan 16, 2013 6:25 am

Re: Remote command execution failed while using SSH Proxy

Post by naveenreddyv »

thanks a lot for the great support...

issue resolved after moving the plugin to the exact location on the remote machine

Thanks,
Naveen Reddy
Locked