Page 1 of 1

Can not monitor hosts using SSH?!

Posted: Sat Sep 17, 2011 1:22 am
by xpertech
For some reason, I don't use NRPE agent instead of using SSH to monitor remote hosts.
I download NagiosXI virtual machine ISO file and test, I follow this document to config but without success (http://library.nagios.com/library/produ ... -using-ssh)

1. On page2, I can SSH login from NagiosXI to remote host(passwordless), but I can't find check_by_ssh command in NagiosXI to do next test?! there is no check_by_ssh plugin in NagiosXI or Exchange plugin site.

2. On page3, after I config "SSH proxy" wizard(with command check_users or others), it displayed "Return code of 127 is out of bounds - plugin may be missing" (see attached file) ?! my config procedure are:
2.1 Copy plugin file to remote host same folder.
2.2 Config "SSH proxy" wizard.

Re: Can not monitor hosts using SSH?!

Posted: Mon Sep 19, 2011 11:24 am
by nscott
Thanks for pointing this out, we had a kink in the CentOS 6 base package not including the openssh-client by default so those plugins didn't build during the compilation. Here is a quick workaround

yum install openssh-client nagios-plugins-by_ssh -y
mv /usr/lib/nagios/plugins/* /usr/local/nagios/libexec/

That will install the check_by_ssh plugin to the /usr/lib/nagios/plugins and then move them to the proper directory. I apologize for the inconvenience, this will be rectified at the next VM update.