Page 1 of 1

Remote command execution failed while using SSH Proxy

Posted: Thu Jan 17, 2013 10:08 am
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

Re: Remote command execution failed while using SSH Proxy

Posted: Thu Jan 17, 2013 10:39 am
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

Re: Remote command execution failed while using SSH Proxy

Posted: Fri Jan 18, 2013 8:45 am
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

Re: Remote command execution failed while using SSH Proxy

Posted: Fri Jan 18, 2013 10:17 am
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.

Re: Remote command execution failed while using SSH Proxy

Posted: Fri Jan 18, 2013 11:05 am
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